Skip to main content

Get - AutoPilot Hash - NinjaOne

Purpose

The purpose of the soultion to check and update the Autopilot Hash into a custom field.

Associated Content

Custom Fields

ContentTypeFunction
cPVAL AutoPilot HashCustom FieldThis field stores the Windows Autopilot hardware hash value.

Device Group

ContentTypeDescription
cPVAL Autopilot Hash - Not UpdatedGroupThis Group shows machines where custom field cPVAL AutoPilot Hash is not updated.

Automation

ContentTypeDescription
Get - AutoPilot HashScriptThis script fetches the device Autopilot Hardware Hash using CIM/WMI from the MDM namespace. Once retrieved, it validates the hash format and updates the cPVAL AutoPilot Hash custom field with the value. Must be run with Administrator privileges.

Task

ContentTypeDescription
Check Autopilot HashTaskThis task is used to run the script to update the Autopilot hash under the Custom Filed.

Implementation

  1. Create the following custom fields:

  2. Create the following device group:

  3. Create the Automation:

  4. Create the Task:

Changelog

2026-02-24

  • Initial version of the document