Forum Discussion
SimonAllison
Jul 05, 2018Iron Contributor
Get-WindowsAutoPilotInfo - A quicker way...
Hi All Just a Tip from me to make it easier (if you got other ways, let me know, would be interested) Starting to deploy via Autopilot but first grabbing the information - so I am using ...
arvind1727
Mar 01, 2023Copper Contributor
Steps
1. For OOBE device, Connect to Internet using accessibility (Click on the Boy icon next to Sound icon). Navigate to Network and Internet. Connect to Wifi with your password and make it a private network in Wifi network's properties. Minimize the window.
2. You will see the screen where Country or region selection to be made after selecting language.
3. Press Windows+R to launch the RUN box
4. Type CMD and press CTRL+Shift+Enter to launch command prompt with administrative privileges.
5. Type Start MSEdge and press Enter to launch Microsoft Edge browser.
6. Minimize Edge as we will need it later.
7. Use Alt+Tab to bring back the Command prompt window on the screen.
8. Type the following command to change the directory of the PowerShell and launch it
C:\Windows\System32>cd\
C:\>cd Program Files\WindowsPowerShell
C:\Program Files\WindowsPowerShell>PowerShell.exe
9. Run the following PowerShell script to update the existing Powershell version to 3.5
PS C:\Program Files\WindowsPowerShell> Install-Script -Name Get-WindowsAutoPilotInfo -RequiredVersion 3.5 -Force
10. Once done run the following script to export the HWID in CSV format
New-Item -Type Directory -Path "C:\HWID"
Set-Location -Path "C:\HWID"
$env:Path += ";C:\Program Files\WindowsPowerShell\Scripts"
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned
Install-Script -Name Get-WindowsAutopilotInfo
Get-WindowsAutopilotInfo -OutputFile AutopilotHWID.csv
11. You can locate the CSV file named AutopilotHWID.csv in C drive in a folder named HWID
12. Use Alt+Tab to launch Microsoft Edge which you have minimized during Step 6.
13. Login to your email and send an email to yourself with AutopilotHWID.csv
14. Thank the gentleman who started this post.
1. For OOBE device, Connect to Internet using accessibility (Click on the Boy icon next to Sound icon). Navigate to Network and Internet. Connect to Wifi with your password and make it a private network in Wifi network's properties. Minimize the window.
2. You will see the screen where Country or region selection to be made after selecting language.
3. Press Windows+R to launch the RUN box
4. Type CMD and press CTRL+Shift+Enter to launch command prompt with administrative privileges.
5. Type Start MSEdge and press Enter to launch Microsoft Edge browser.
6. Minimize Edge as we will need it later.
7. Use Alt+Tab to bring back the Command prompt window on the screen.
8. Type the following command to change the directory of the PowerShell and launch it
C:\Windows\System32>cd\
C:\>cd Program Files\WindowsPowerShell
C:\Program Files\WindowsPowerShell>PowerShell.exe
9. Run the following PowerShell script to update the existing Powershell version to 3.5
PS C:\Program Files\WindowsPowerShell> Install-Script -Name Get-WindowsAutoPilotInfo -RequiredVersion 3.5 -Force
10. Once done run the following script to export the HWID in CSV format
New-Item -Type Directory -Path "C:\HWID"
Set-Location -Path "C:\HWID"
$env:Path += ";C:\Program Files\WindowsPowerShell\Scripts"
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned
Install-Script -Name Get-WindowsAutopilotInfo
Get-WindowsAutopilotInfo -OutputFile AutopilotHWID.csv
11. You can locate the CSV file named AutopilotHWID.csv in C drive in a folder named HWID
12. Use Alt+Tab to launch Microsoft Edge which you have minimized during Step 6.
13. Login to your email and send an email to yourself with AutopilotHWID.csv
14. Thank the gentleman who started this post.