Importing Windows Autopilot Device in Intune | Intune-Hybrid

Dear Intune Admin,

In today’s blog I will be going over the importing process of Windows Autopilot devices in Microsoft Intune.  For the longest time, Intune Admin’s would have to use the Microsoft Store for Business to import devices so that they may be able to utilize the Autopilot process.  Now that the feature (being able to import devices via Intune) has been added to Intune, there is a very easy solution that will utilize PowerShell in gathering our devices identity/device hash.


Pre-Requisites

Ø  Intune Subscription

Ø  Windows automatic enrollment enabled

Ø  Azure Active Directory Premium Subscription

Required Permissions

Ø  Device enrollment will be done by an Intune Administrator or a Policy/Profile Manager

Now we can get into the fun part!

 

Collecting your Hardware Hash

For my example today, I will be using purely PowerShell to gather our devices identity through a CSV file output.

Step 1:

To install directly and capture your hardware hash from the local computer, please run the following commands from an elevated Windows PowerShell prompt.

Note: As each line of the PowerShell script gets read, you will be prompted multiple times to accept a download or allow a permission for the script itself to be installed and used.

New-Item -Type Directory -Path “C:\HWID” – Creating a new directory path
Set-Location -Path “C:\HWID” – Setting where we would like the CSV to be placed after creation
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted – Allows any script to be run
Install-Script -Name Get-WindowsAutoPilotInfo – Installs the script
Get-WindowsAutoPilotInfo.ps1 -OutputFile AutoPilotHWID.csv – This is where you will be able to see your new .CSV file in the C:\HWID folder.

Step 2:

After the Output file has been created, you should be able to see it within your C:\HWID Folder.

Note: In my example picture shown below, my path is “C:\Temp\Importing Example for Intune”, please do not get confused with this, your .CSV file should appear in “C:\HWID”.

Congrats! You have now successfully gathered your devices ID/hash and you are now ready to import it onto Intune!

 

Importing your Device into Intune

The reason why Microsoft Intune can now process these .CSV files is because of Intune’s ability to handle header rows and empty columns for the Windows Product ID. This was not possible in the past, forcing Admins to use the Store for Business as an only option.

Step 1:

Endpoint Manager -> Devices -> Windows -> Windows Enrollment -> Devices (Under Windows Autopilot Deployment Program)

Step 2:

Click Import -> “Specify the path to the list you want to import” -> Select your .CSV file that we created above

Step 3:

After selecting your .CSV file and seeing a Green check, click on “Import

Note: It may take up to 5-10 minutes for your device to appear post import.

Step 4:

To check to see the status of your newly imported device, please navigate to –

Devices -> Windows -> Windows Enrollment -> Devices (Under Windows Autopilot Deployment Program) -> Sync

Hitting the Sync button will display a notification telling you that “A Sync is in progress. Check back again soon”

Giving it a minute or so, you should be able to now see your imported device on the Device list.

Congrats! You have now successfully imported a .CSV file to Intune so that you may be able to enroll your device during the Autopilot provisioning.

Nicholas Seo