Forum Discussion
AB21805
Jan 07, 2022Bronze Contributor
Retrieve device info from CMD for autopilot
Hi all, I want to start using AutoPilot on some devices, but I am getting issues with sending device info into "Windows Autopilot Devices" in intune. When I am on the OOBE of a device I press Shift + F10 to get CMD, then
- Powershell
- Set-Executionpolicy bypass
- Install-Script Get-WindowsAutoPilotInfo
I then Select Y which works for the first but then on the second I get an error:
Any ideas why this is failing?
10 Replies
Sort By
- You could try this command line to get a better error output
Install-Script -Name Get-WindowsAutopilotInfo -Force -Verbose -Debug
Another possibility would be to indeed download the get-windowsautopilot.ps1 file and place it on a USB stick... We are also doing the same and built in some additional checks- AB21805Bronze ContributorHi Rudy
Where would I find the get-windowsautopilot.ps1 and how would I run it from cmd after running powershell?- Hi
You could search the powershell galery https://www.powershellgallery.com/packages/Get-WindowsAutoPilotInfo/3.5
Download it and save it something like autopilot.ps1 you can run it like this (if the cmd is in the same folder as the autopilot file)
powershell.exe -executionpolicy bypass .\autopilot.ps1
- TrasmusenLindbergCopper ContributorI've never had this issue personally, however i have always plugged in a USB with the Script on so i can easily extract the CSV file and import it on demand.
- AB21805Bronze ContributorHi, How do I do this?