

$password = "Mypass" | ConvertTo-SecureString -asPlainText -Force Ps1.ps joins computer to domain $domain = "" SetupComplete.cmd calls jd.ps1 powershell script powershell.exe -nologo -executionpolicy bypass -noprofile -file "C:\Windows\Setup\Scripts\jd.ps1"īy default,powershell doesn’t allows running custom PS scripts,that’s why we need to bypass it


To overcome this issue i had to add PowerShell script to c:\windows\setup\scripts folderĪfter last restart in installation process,Windows will serach for any script in Scripts folder and if find any,it will be executed
WINDOWS 10 SETUP EXE UNATTEND DOWNLOAD DOWNLOAD
On boot tab,we can set if clients can download boot image from WDS without need to press F12 buttonĪlthough i specified domain username/password in xml file,i couldn’t get win 10 to be domain member,i tried many,many times,with no success Error WDS In WDS console,rught click on server name and choose configure serverīecause WDS and DHCP are on the same machine,i checked both check-boxesĭecide if you want to respond to computers objects first created in AD (prestaged) or to any computers on which F12 is pressed (unknown)Īfter you click Next,WDS service will start.Right click again on server name in WDS console,click AD DS tab to choose naming convention and where to store domain joined clients.Because for me domain join didn’t work,these settings weren’t neccessary. To configure WDS,from server manager click WDS on the left and right click on server name on the left In this post i configured DHCP scope.New client machines will use addresses from this scope. I installed WDS using PowerShell: get-windowsfeature wds* | install-windowsfeature
