(115) Windows Autopilot - New community modules
- Mr B SOE way
- Mar 26, 2024
- 1 min read
I only recently discovered that the https://www.powershellgallery.com/packages/Get-WindowsAutoPilotInfo/3.9 doesn't work correctly, and it errors out when trying to export it out which led me to finding out this https://oofhours.com/2023/12/27/use-the-new-community-modules-for-autopilot/. I previously covered the PowerShell script get-windowsautopilotinfo.ps1 mentioned in this post: https://soeintunedevice.wixsite.com/home/post/14-windows-autopilot-export-and-import-device-hash-to-mem
By navigating to https://www.powershellgallery.com/packages/get-windowsautopilotinfocommunity/4.0.11, you can see that it has recently been updated.
Run PowerShell as administrator, enter the following:
Install-Script -Name get-windowsautopilotinfocommunity
Install-module -Name get-windowsautopilotinfocommunity [Select Y when prompted]
get-windowsautopilotinfocommunity.ps1 -online [Prompt to login with your UPN and password]
If for any reason after running you get an error, make sure to run this: get-windowsautopilotinfocommunity.ps1 -online
Make sure to run the following in PowerShell:
install-script Microsoft.Graph.Identity.DirectoryManagement
install-script Microsoft.Graph.Authentication Then re-run the following in PowerShell
Install-Script -Name get-windowsautopilotinfocommunity
Install-module -Name get-windowsautopilotinfocommunity [Select Y when prompted]
get-windowsautopilotinfocommunity.ps1 -online [Prompt to login with your UPN and password]
Comments