Skip to content

cyberhamza/Get-AutopilotHardwareHash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Get-AutopilotHardwareHash

Overview

PowerShell script to extract hardware hash from local or remote Windows devices for Windows Autopilot enrollment in Microsoft Intune.

Problem It Solves

Registering devices in Windows Autopilot requires extracting the hardware hash from each device. This script automates that process for single or bulk devices and exports an Autopilot-ready CSV file.

Features

  • Extract hash from local machine or multiple remote computers
  • Supports Group Tag for Autopilot profile assignment
  • Supports Assigned User pre-assignment
  • Exports CSV ready for direct import into Intune Autopilot
  • Error handling for offline or unreachable devices

Requirements

  • PowerShell 5.1 or later
  • Must run as Administrator
  • WinRM enabled for remote devices

Usage

# Extract from local machine
.\Get-AutopilotHardwareHash.ps1

# Extract from multiple remote computers
.\Get-AutopilotHardwareHash.ps1 -ComputerName "PC001","PC002","PC003"

# With Group Tag and Assigned User
.\Get-AutopilotHardwareHash.ps1 -GroupTag "Corporate" -AssignedUser "john@company.com"

Output

  • Autopilot CSV file ready to import at: Intune > Devices > Enroll devices > Windows Autopilot > Devices

Author

Hamza Ali — IT Cybersecurity Engineer | Dubai, UAE

About

PowerShell script to extract hardware hash from devices for Windows Autopilot enrolment

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors