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 +...
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
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
AB21805
Jan 07, 2022Bronze Contributor
Hi Rudy
Where would I find the get-windowsautopilot.ps1 and how would I run it from cmd after running powershell?
Where would I find the get-windowsautopilot.ps1 and how would I run it from cmd after running powershell?
- Jan 07, 2022Hi
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- AB21805Jan 07, 2022Bronze ContributorI have used powershell.exe -executionpolicy bypass D:\Get-WindowsAutopiletinfo.ps1
this works however the details needed for intune go into the cmd window ideally it would be great if this could go straight into intune. I have seen this done by adding -online but I cant seem to get it to work or if this isnt possible how to I add it to a csv on to the memory stick- Jan 07, 2022Normally it would be
Get-WindowsAutoPilotInfo.ps1 -online -addtogroup “AutoPilotstaticgroup” -assign
You can also download the autopilot module from this blog as I am not sure if the one you downloaded it totally up to date
https://call4cloud.nl/2020/10/autopilot-the-group-membership-war/