Skip to main content

Get-AutopilotHash

Summary

This the RMM version of Automate script Get-AutopilotHash. It retrieves the Hardware Hash required for Autopilot device registration.

Note: The Hardware Hash cannot be stored in a custom field due to character limitations. Check the script logs to view the Hash key of a device.

Sample Run

Sample Run

Task Creation

Create a new Script Editor style script in the system to implement this task.
Create Script
Script Creation

Name: Get - Autopilot Hash Description: This task retrieves the Hardware Hash for Autopilot device registration. Category: Custom
Category

Task

Navigate to the Script Editor section and start by adding a row. You can do this by clicking the Add Row button at the bottom of the script page.
Add Row

A blank function will appear.
Blank Function

Row 1 Function: CMD Script

Search and select the Command Prompt Script function.
CMD Function

The following function will pop up on the screen:
Function Popup

Paste in the following Command and set the expected time of script execution to 300 seconds. Click the Save button.

Bash Script

Row 2: Function: Script Log

In the script log message, simply type %output% so that the script will send the results of the PowerShell script above to the output on the Automation tab for the target device.
Script Log

Completed Task

Completed Task

Output

  • Script Logs

Changelog

2025-04-10

  • Initial version of the document