Category filter
Provisioning Windows devices with Windows Autopilot
Windows Autopilot helps IT admins prepare new devices for use by pre-configuring and making them ready for work within minutes of unboxing. With Windows Autopilot, enrolling and configuring Windows devices will become much simpler and faster. This device will be automatically enrolled in Hexnode when the user powers on the device for the first time. Autopilot enrollment allows new devices to be set up automatically with predefined configurations and policies. This is especially useful for large organizations that need to deploy a significant number of devices efficiently.
Step 1: Configuring Microsoft Entra ID in Hexnode
- On your Hexnode UEM console, navigate to Enroll > Platform-Specific. Under Windows, choose Windows Autopilot.
- Start by configuring Microsoft Entra ID and provide the Custom domain/Directory (Tenant) ID and then click on Configure.
- Select either Allow self enroll or Map UPN to email address.
- Under Scheduled sync choose how often the AD domain should be synced with Hexnode. Specify the hours and minutes at which the sync to be initiated. Also, choose the frequency of sync (Weekly/Daily).
- Click Save.
Configuring Autopilot settings:
Policies are applied after enrollment. You can choose to associate policies with the devices from the Hexnode UEM console.
- Under Configure Autopilot Settings, click Select Default Policy > Associate policies.
- Select the policies that should be applied to the devices.
- Click Save.
- On the subsequent page, the MDM terms of use URL and the MDM discovery URL will be shown. These URLs are required when adding the Hexnode UEM app to the Microsoft Entra ID portal.
Step 2: Adding Hexnode UEM app to Microsoft Entra ID portal
- Log in to your Microsoft Entra ID portal.
- Click on the menu bar on the top left
- Navigate to Microsoft Entra ID.
- Navigate to the Mobility (MDM & WIP) tab within the Manage section. Click the + Add application option on the top and select Hexnode UEM app from the available applications.
- The app will be added to the list.
- Now click on the Hexnode UEM app from the list.
- Copy the URLs for both MDM terms of use URL and MDM discovery URL from the Hexnode portal (Enroll > Platform-Specific > Windows > Windows Autopilot) and paste it here.
Step 3: Extracting the hardware IDs of the Windows devices
The next step is to extract the hardware IDs of the devices. You can get the hardware IDs of the devices using either of the following two ways:
- From vendor: You can get the hardware IDs from the vendor or reseller from where you have procured the devices. The vendor will provide you a CSV file that can be uploaded to the Microsoft Entra ID portal.
- Using script: If you want to enroll your devices to Autopilot, then you can use the script provided below. Please follow the steps below to extract the Hardware IDs.
- Copy this script file to the PC.
- Once copied, on the target device open the command prompt with administrator privileges and execute the PowerShell file.
12345678910[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12New-Item -Type Directory -Path "C:\HWID"Set-Location -Path "C:\HWID"$env:Path += ";C:\Program Files\WindowsPowerShell\Scripts"Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSignedInstall-Script -Name Get-WindowsAutopilotInfo -ForceInstall-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force -Confirm:$false -ForceBootstrapGet-WindowsAutopilotInfo -OutputFile AutopilotHWID.csvWrite-Host "`n Hardware Hash: "(Import-Csv AutopilotHWID.csv).{Hardware Hash}
Once the PowerShell file is executed, it generates a CSV file named AutopilotHWID.csv in the C:\HWID directory. This file is then copied to the current directory where the PowerShell script was run.
This CSV file has 3 columns: Device Serial Number, Windows Product ID and Hardware Hash.
You can also execute the above script using Hexnode’s Execute Custom Script remote action on a group of Windows devices and fetch the hardware IDs directly to the Hexnode console. Once the action is successful, you can view the fetched hardware IDs by clicking on the Show Output button corresponding to it on the Action History tab of the device.
Step 4: Uploading the Hardware IDs to Microsoft Intune admin center
Once you get the CSV file, the next step is to add it to the Microsoft Intune admin center. Follow the steps below:
- Login into Microsoft Intune admin center.
- Click Devices > Windows > Device onboarding > Enrollment.
- Under the section Windows Autopilot, select Devices.
- Click Import.
- Upload the *.csv file obtained in
Step 3
and click Import. - Once the CSV file is imported, the screen will be updated to show the devices that are imported from the CSV.
Step 5: Assign Users to hardware IDs
Once you have uploaded the hardware IDs, you can assign the users. This will make sure that only the assigned user can complete the enrollment on the Windows device using their credentials.
If you choose to assign a user, you need to make sure that the user is a licensed Intune user.
Follow the steps below to assign a user,
- Navigate to Devices > By platform > Windows > Enrollment. Under the Windows Autopilot section, click on Devices.
- Choose the device and click Assign user.
Step 6: Creating Deployment Profile
- Login into Microsoft Intune admin center.
- Navigate to Devices > Windows > Device onboarding > Enrollment.
- Under the section Windows Autopilot, select Deployment profiles.
- Select Create profile > Windows PC.
- Provide a name and description for the profile and click Next.
- Set up the Out-of-Box Experience (OOBE) on the next page.
- In the following step, assign the profile to devices by selecting either Add groups or Add all devices.
- Finally, review the configured settings, then click Create.
The newly created profile will be added to the list of Windows Autopilot deployment profiles.
Checking the Autopilot devices in the Hexnode portal
After creating the configuration profile, the details of the devices that are synced from your Microsoft Entra ID portal will be listed in the Hexnode UEM console under Enroll > Platform-Specific > Windows > Windows Autopilot. From this list, you can manage and associate the policies with devices. To modify/delete the Autopilot configuration, click on the Actions menu in the upper right corner.