I’m currently looking into setting up Windows AutoPilot for a number of our customers and as part of the setup, there is a requirement to obtain the hardware ID from the device and add it to intune.
The process for obtaining the hardware ID is by installing and running a PowerShell script, running the script with the -OutputFile flag to a CSV then uploading that CSV to the Intune portal.
Is it possible that we can get a C1 script that can install and run the script and then log a ticket with the CSV attached to reduce the connection requirements to customer devices for this.
Thanks for the script. I’ve imported and tested. unfortunately, it comes up as failed on the test machine i have used.
2018/06/20 10:50:23 AM Failed
WindowsAutoPilotInfo Script Installation Started...
Name Version Source Summary
---- ------- ------ -------
nuget 2.8.5.208 https://onege... NuGet provi...
Traceback (most recent call last):
File "<string>", line 28, in <module>
File "<string>", line 14, in pilot
WindowsError: [Error 2] The system cannot find the file specified: 'C:\\Program Files\\WindowsPowerShell\\Scripts'
I’ve now tested the update. I have found that it generates the CSV now, however, it is not formatted correctly and doesn’t log a ticket with this as an attachment.
The formatting of the CSV requires us to go in and update the CSV by hand. The formatting issues are as follows:
Extra comma on the 'Row Titles' row
Each value is seperated by a comma and 2 line breaks.
Hi @curatrix_pl
The script developers have been informed already of your observations. They will reply here soon enough with the updated version of the requested script.
The script seems to work fine for the Windows 10 Devices i’ve run it against, and it prints the output in ITSM so i dont have to arrange FTP / File Transfer from the device of the CSV. Ideally, i would like the script to create a ticket in helpdesk, but understand that may not currently be achievable.
Actually, We have done the same methodology as before and also share with you but you have faced some error at the time so we have tried some different way to achieve your goals. In order to use the Microsoft official documented Power Shell scripts which require some power shell modules called Nuget. and also they have skipped the product key in the script as well. If your system doesn’t have the nuget module that might problem and also I have quoted some useless sequence of code. From our analysis this windowsautopilot mode is only working with the physical environment not in virtual environment. Anyway we are happy have a customer like you with the technical knowledge.