Forum Discussion
Get-WindowsAutoPilotInfo - A quicker way...
firebladez Try these, put them on the USB stick
I did run them with the OS installed and through OOBE stage you can get to the command prompt by pressing , press Shift + F10
I have put them here...
https://github.com/simonallisonuk/Scripts
Thanks SimonAllison - I'll give it a go today... 🙂
- SimonAllisonNov 08, 2019Iron Contributor
I have just tested and there is an error, but this one works - all I did was remove the "p" as this gives the path and not just the drive. updating scripts
@ECHO ON
PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command %~d0\Get-WindowsAutoPilotInfo.ps1 -ComputerName $env:computername -OutputFile %~d0\$env:computername.csv- Andycap147Nov 09, 2020Copper Contributor
SimonAllison Do you know if it's possible to use this without completing Windows setup. ie During OOBE after networking has been setup?
- AcominatusMar 04, 2022Copper Contributor
Andycap147 Yes, pressing Caps+F10
- firebladezNov 11, 2019Copper Contributor
hi SimonAllison - sorry could not get this to work - after running the cmd as admin it had a heap of error then the powershell page closed - it was something like, the client can not connect to the destination specified in the request - and you can not call a method on a null-valued expression... this is what I managed to get from the quick vid I got on my phone
- AndrewSkouldingJan 03, 2020Copper Contributor
firebladezI had to run the following in an elevated CMD prompt:
winrm quickconfig
That fixed the mass of red being thrown back from the PS script. Hope this helps you