Forum Discussion

AB21805's avatar
AB21805
Bronze Contributor
Jan 07, 2022

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
 
  1. Powershell
  2. Set-Executionpolicy bypass
  3. 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

  • 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
  • I'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.

Resources