Skip to content

Commit

Permalink
powershell hwid
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyDuong00 committed Aug 6, 2024
1 parent 6a95773 commit 35e8e43
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions content/2 Azure Services/Obtaining Hardware ID for Autopilot.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
In order to on board an endpoint device, we need to obtain the hardware ID of the device.
We can use this Powershell Script below:
To begin, run PowerShell as Administrator:

![[Pasted image 20240806074914.png]]

We can use this PowerShell Script to create a folder to save the information to:

```
New-Item -Type Directory -Path "C:\HWID"
Set-Location -Path "C:\HWID"
$env:Path += ";C:\Program Files\WindowsPowershell\Scripts"
Set-ExecutionPolicy -Scope Processes -ExecutionPolicy RemoteSigned
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned
Install-Script -Name Get-WindowsAutoPilotInfo
Get-WindowsAutopilotInfo -OutputFile AutoPilotHWID.csv
```
```

Paste this script into the PowerShell command line and run the script:

![[Pasted image 20240806075123.png]]

The execution policy will popup and agree to all:

![[Pasted image 20240806075210.png]]

Once the script has run, navigate to where the script created a folder and saved the .csv file:

![[Pasted image 20240806075334.png]]

As you can see here, the file has been created containing the Device Serial Number, Windows Product ID, and Hardware Hash.
Binary file added content/Pictures/Pasted image 20240806074914.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/Pictures/Pasted image 20240806075123.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/Pictures/Pasted image 20240806075210.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/Pictures/Pasted image 20240806075334.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 35e8e43

Please sign in to comment.