Skip to content

WDS lab

jasper-zanjani edited this page Aug 3, 2020 · 1 revision
# PLABDC01
Set-DHCPServerv4Scope -ScopeId '192.168.0.0' -Type Both -State Active
wdsutil /initialize-server /remInst:"D:\RemoteInstall"
wdsutil /enable-server
wdsutil /start-server

Import install and boot images

New-WDSInstallImageGroup -Name Win10-DVDImage
Get-WindowsImage -ImagePath \\plabdm01\win10\sources\install.wim
Import-WDSInstallImage -Path \\plabdm01\win10\sources\install.wim -ImageGroup Win10-DVDImage -ImageName 'Windows 10 Enterprise'
Import-WdsBootImage -Path \\plabdm01\win10\sources\boot.wim -NewImageName 'Microsoft Windows Setup (x64)' -NewDescription 'Microsoft Windows Setup (x64)'

Configure server to accept clients

::wdsutil /start-transportserver
wdsutil /set-server /answerclients:all
wdsutil /set-server /authorize:yes
wdsutil /set-server /NewMachineNamingPolicy:PLABSA%#03

Configure VM to boot from PXE

# PLABDM01
Rename-VMSwitch Intel* External
Add-VMNetworkAdapter -IsLegacy $true -VMName PLABSA02 -SwitchName External
Remove-VMAssignableDevice -VMName PLABSA02
Start-VM PLABSA02
# While connected to VM, when prompted to "press F12 for network service boot", press F12.
Clone this wiki locally