Importing "Offline" Hardware Hash into Microsoft Intune for Windows Autopilot
Windows Autopilot provides a seamless deployment experience for new devices in an organization. For devices that are not connected to the internet during deployment, you can manually extract and import the hardware hash into Microsoft Intune. This blog outlines the offline process using PowerShell.
Prerequisites
- Windows PowerShell: Ensure the latest version of Windows PowerShell is installed.
- Admin Permissions: Run PowerShell as an administrator.
- Network Access: Required only for uploading the hardware hash file to Microsoft Intune.
- Export Folder: Create a folder to store the exported CSV file, e.g.,
C:\Devices.
Steps to Export and Import Offline Hardware Hash
Install the Script
TheGet-WindowsAutopilotInfoscript is used to capture the hardware hash. Install it using the following command:Set the Execution Policy
To run scripts that are not digitally signed, change the execution policy temporarily:Export the Hardware Hash
Use the script to export the hardware hash to a CSV file:- What It Does:
- Captures hardware details (hardware hash, serial number, etc.).
- Saves the output to the specified file (
C:\Devices\Device1.csv).
- What It Does:
Upload the CSV File to Intune
- Log in to the Microsoft Endpoint Manager admin center.
- Navigate to Devices > Windows > Windows enrollment > Devices.
- Select Import and upload the CSV file containing the hardware hash.
Assign Deployment Profile
After the import is successful:- Navigate to Deployment profiles under Windows enrollment.
- Assign the desired profile to the imported devices.
Restore Execution Policy
For security purposes, reset the execution policy:
No comments:
Post a Comment