This script creates a .csv file with all relevant information for MDM (serial number, Windows product ID, hardware hash).
This script is for Windows only.
Creat an Automatic Task (Task Scheduler) which executes the startup.cmd (elevated privileges are required).