Azure Autopilot info via Get-WindowsAutoPilotInfo.ps1 - Getting empty results
Trying to capture hardware ID using a script from https://www.powershellgallery.com/packages/Get-WindowsAutoPilotInfo/2.1 for our Upcomign Azure AD deployment, but having no luck so far. We have plenty of PS1 and bat files already setup, even using x86 and x64 environments. By using 2&>1, @echo ON and etc, it seems script can't resolve hostname, but it's optional parameter really. Tried localhost, %hostname%, $env:computername "$env:computername", $(env:computername ) and a lot of other crazy stuff to get this working. No luck alas. So far the only progress is empty file output created for this.
tried via bat, PS1 files, coupled with SYSTEM , admin accounts and etc.
Any advice is highly appreciated.
Be the first to answer this question