Hi there,
There are many ways to correct hardware harsh.The following methods are available to harvest a hardware hash from existing devices:
-Using Microsoft Endpoint Configuration Manager
-Using Windows PowerShell
-During OOBE by using the Diagnostics Page (Windows 11 only)
-From the Desktop using Settings > Accounts
You can try an alternate script from the below thread and see if that helps.
How to get hardware hash by all version of windows which support PowerShell https://answers.microsoft.com/en-us/windows/forum/all/how-to-get-hardware-hash-by-all-version-of-windows/14355e5b-cdab-4456-b376-ddf616220e4c
--If the reply is helpful, please Upvote and Accept it as an answer--