Windows Autopilot

Get-WindowsAutopilotInfo.ps1 updated, but not by Microsoft?

The original version of Get-WindowsAutopilotInfo.ps1 was designed to solve a specific problem: How to get the hardware hash from an existing machine and put it into a (somewhat non-standard) CSV file that can be uploaded to Intune, Microsoft Store for Business, or even Partner Center. I created this initially while still working in Windows marketing because “normal people” couldn’t figure this out themselves, and because it was something that was tedious enough for me to do myself that it saved me time.

I was surprised to see that this script is now showing up in the “top 10” list on the PowerShell Gallery site:

Four million downloads in six weeks? Kind of shocking, but even more shocking are the overall totals:

48 million total downloads. Yikes. So you would think that something used so often would actually get some attention. Since I no longer work at Microsoft and haven’t since shortly after version 3.5 was published (had to get that one done before I left), I can’t update it any more — only Microsoft people can. But in over two years, no changes. Not a big deal I guess, as I had piled in the features before I left (anything to encourage Autopilot adoption) and nothing broke — until now.

So what broke? The AzureAD module being used when leveraging the -online switch in the script to directly upload hashes is no longer supported. This was announced back in June 2020, with a June 2022 date when this would no longer work, requiring a change to use the Microsoft Authentication Library (MSAL) or MSGraph module instead. Two years should be plenty of time right? Apparently not, as the date was extended another year to June 2023. So here we are, three years later, and it’s finally happened.

So what do you do if you still want to use this? Fortunately, Andrew Taylor has posted an updated version on GitHub that he fixed that you can use instead. Maybe eventually Microsoft will update that on PowerShellGallery, but until then, Andrew’s version will work fine.

1 reply »