Get - AutoPilot Hash
Overview
This script fetches the device's 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.
Sample Run
Play Button > Run Automation > Script

Dependencies
Automation Setup/Import
Output
- Activity Details
- Custom Field
Changelog
2026-02-20
- Initial version of the document