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
- Navigate to Admin > Integrations on your Hexnode UEM console.
- Click on the Windows Autopilot tile from the available integrations.
- If you’ve already configured Microsoft Entra ID, select the configured domain from the dropdown and proceed with configuring Autopilot settings.
If Microsoft Entra ID hasn’t been set up in Hexnode, a window will prompt you to enter your organization’s Microsoft Entra custom domain/Directory (Tenant) ID. Enter the ID and click Configure.
- You will be prompted to sign in with your Microsoft Entra ID credentials.
- A pop-up will request permission for the Hexnode Azure Directory Services app. Check the box and click Accept.
- You will be redirected back to the Hexnode UEM console, completing the Microsoft Entra ID integration.
- Select either Allow self-enroll or Map UPN to email address.
- Under Scheduled Sync, configure the sync settings for the Active Directory domain:
- Specify the time (hours and minutes) when the sync should be initiated.
- Choose the sync frequency (Daily or Weekly).
- Click Next.
Configuring Autopilot settings:
- In the next window, under Configure Autopilot Settings, select the policies to be applied to devices. These policies will be applied post-enrollment.
- Click Next.
- Upon successful setup of Windows Autopilot, you will be prompted to optionally configure Conditional Access.
- To verify the configuration, navigate to Enroll > Platform-Specific > Windows > Windows Autopilot. From here, you can click the Sync button to import devices from the configured Microsoft Entra ID.
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.