Alpha Wave | How to generate hash ID for PC and add pc to Intune via Auto Pilot/ OOBE

Alpha Wave | How to generate hash ID for PC and add pc to Intune via Auto Pilot/ OOBE

Step 1: On another machine open PowerShell with elevated privileges and run Install-Script -Name Get-WindowsAutoPilotInfo 

Step 2:  Next, navigate to C:\Program Files\WindowsPowerShell\Scripts and copy the Get-WindowsAutoPilotInfo.ps1 file to your USB drive

Step 3: Next create a .CMD file with the script block below. You can simply open notepad, paste the text below, and save it as GetAutoPilot.CMD
@ECHO OFF
echo Enabling WinRM
PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command Enable-PSRemoting -SkipNetworkProfileCheck -Force
echo Gathering AutoPilot Hash
PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command %~dp0Get-WindowsAutoPilotInfo.ps1 -ComputerName $env:computername -OutputFile %~dp0compHash.csv -append
echo Done! 
pause

Step 4: Now on your new computer, attach your USB drive to it. We don’t need to boot from the USB, we just need it to be available for us to use. When we first turn on the computer we should be greeted with the region information or something similar. This means we are in the out of box experience
Now on your new computer, attach your USB drive to it. We don’t need to boot from the USB, we just need it to be available for us to use. When we first turn on the computer we should be greeted with the region information or something similar. This means we are in the out of box experience.

Step 5: To bring up the Command Prompt, press Shift + F10 on the keyboard

Step 6: Next, we need to figure out the drive letter for our USB drive. Enter DISKPART and then list volume. In my example, my USB drive did not get a drive letter so I will select my USB volume (volume 4) by running select volume 4, and then assign it drive letter R by running assign letter=R

NOTE: Most often your drive will automatically be assigned the letter D. If this is the case you can skip this part and proceed past the DiskPart portion


Step 7: By running list volume again I can now see my USB drive has the letter ‘R’ assigned to it
Step 8: Type exit to desk DiskPart

Step 9: Now we can change over to that drive by simply typing the drive letter and then a colon. In my example I will run R: 

Step 10: The last step we need to do is to run the CMD script. So, in your command prompt just type GetAutoPilot.cmd and then press ENTER. Once it is finished running I can simply turn off the machine until I finish importing the hash into Auto Pilot, the next time it boots it will still be at the OOBE process, but since I would have imported the hash and assigned an Auto Pilot profile, it will automatically go through the Auto Pilot process.














Step 11: If we were to plug the USB back into our main machine we can now see there is a CSV on there called compHash, and it contains our AutoPilot hash for our machine. We can either upload this into our Auto Pilot in Azure, or run this on other machines as it will keep appending the csv file.


Step 12: Once we get the Hash ID for new pcs send these details to Abdul (asalam@alphawaveglobal.com) or Jeff ( jzinkerman@alphawaveglobal.comto ask them to upload to Auto Pilot in azure to enroll new pcs/laptops to auto Pilot.

    • Related Articles

    • VAM | How to install Leversys Excel Add-in

      Purpose Purpose of the article is to show you how to install Leversys Excel Add-in. Client VAM Type Internal Category How To, Installation request Steps 1. Copy the installer from PMM1 to user's PC. Location: \\VAM-HK-AZ-PMM1\c$\Temp\Sft\Leversys 2. ...
    • NMC | Cloud PC Set-up for Support

      Purpose This article will show the steps for Citrix Set-up as well as Eze OMS in Cloud PC for NMC Client: NMC Type Internal Category: Troubleshooting, Error, General Information Important Information/ Note/Warning Steps 1. Access Win365 Cloud PC via ...
    • VAM | Meeting Room Set-up

      Purpose Purpose of the article is to have an overview of what is the current set-up in VAM Meeting room Client VAM Type Internal Category: Troubleshooting, Error, General Information We have removed the Poly Studio in their meeting room. They are now ...
    • IBL | How to Add new Users to the Impersonation protection List

      Purpose Purpose of the article is to show you how you can add new joiner to impersonation protection list Client: IBL Type Internal Category: General Information Steps 1. Sign in to Microsoft 365 Admin Center 2. Navigate to the Security admin portal ...
    • Citrix Workspace Remote Desktop/Apps | Tips in troubleshooting

      Purpose: This article will show you some tips that will help your troubleshooting with Citrix Workspace Remote Desktop/ App issues. Client: ARCM, LCA, VAM Category: Troubleshooting, General Information Keep in mind that any changes you make, (e.g. ...