To get Windows 10 AutoPilot Hardware ID and Hashes to upload as CSV file. Run PowerShell ISE as Administrator. Copy and Paste below code in the Editor part on Top Window. You will get a few Prompts with Yes, Yes to All etc. Click YES and Yes to All in all Prompts.
Your CSV wile will be created in a a C:\AutoPilot. Upload the file in InTune or Windows Store for Business, Assign the profile and you are done.