Forum Discussion
SimonAllison
Jul 05, 2018Iron Contributor
Get-WindowsAutoPilotInfo - A quicker way...
Hi All Just a Tip from me to make it easier (if you got other ways, let me know, would be interested) Starting to deploy via Autopilot but first grabbing the information - so I am using ...
mac-e
Apr 18, 2019Copper Contributor
Slight improvement to your batch file, added -append and set the drive letters to be the drive the bat file is executed from:
PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command %~dp0\Get-WindowsAutoPilotInfo.ps1 -ComputerName $env:computername -OutputFile %~dp0\computers.csv -append
PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command %~dp0\Get-WindowsAutoPilotInfo.ps1 -ComputerName $env:computername -OutputFile %~dp0\computers.csv -append
- SimonAllisonNov 05, 2019Iron Contributor
mac-e updated! thanks makes it even easier