Run PowerShell command

genesisayoub

New Member
Messages
4
Reaction score
0
Hello Everyone,

If i add this command in post-setup, you think will run with not internet? i don't think so, if so when will work? i want this work before login

powershell.exe -Command "install-script -name get-windowsautopilotinfo -Force -AcceptAll -Scope CurrentUser"
powershell.exe -Command "set-executionpolicy unrestricted -Force -Scope CurrentUser"
powershell.exe -Command "get-windowsautopilotinfo.ps1 -GroupTag Tst -Online"
 
If your install image has the right network drivers, and DHCP is correct, then Internet access will be ready during Post-Setup (Before logon).

The third line should be:
Code:
powershell.exe -File C:\path\get-windowsautopilotinfo.ps1" -GroupTag Tst -Online
 
Back
Top