Forum Discussion
How do we set PurchaseOrderId using Get-WindowsAutoPilotInfo.ps1
Hi Rajesh,
that's pretty simple just add ",Order ID" in the header row and append your custom Order ID ",MyOrderID" at the end of a device entry row. Simplified example to make it more clear:
Device Serial Number,Windows Product ID,Hardware Hash,Order ID
1234-1234-1234-1234-1234-1234-12,,T0GqAwEAHAAAAAoAAQDuQgA....,MyOrderID
best,
Oliver
Hi Oliver,
This requires opening the CSV file and adding the order id to the end of the file and also modifying or removing the header, we have tried and this and it works. But this is not practical for us, we are planning to use Windows Configuration Packages on USB drive to pre-configure the device and fetch the CSV file (to be executed by remote non-IT users), we are capturing the CSV file via Azure storage account. We would like to automate the adding of order id, we are able to do this by using our own PowerShell script, but we are wondering if we can pass an additional parameter to Get-WindowsAutoPilotInfo.ps1 script to add the order id, looks this is not possible at the moment.
Best regards,
Rajesh Khanikar
- Oct 11, 2018
Correct there is no support in the script at the moment but you can easily modify and extend the script to support it. Then you can target group of devices with different OrderIDs to accomplish your goal. Just add a new parameter in the beginning of the script and add this new variable to the custom ps object and modify the csv output to include ",Order ID". Pretty straight forward 👍
- Ewan MonroApr 03, 2019Copper Contributor
Oliver Kieselbach Hi Oliver, you say to use (or add) the OrderID column in the Autopilot CSV file, however this is used as a tag. According to a few articles Ive seen there is also a PurchaseOrderID colum that can be added to the CSV. However I can not get this to work.
On one technet article it says this can only be set by OEM. Is this true?
- Jerome WinkMar 17, 2021Copper Contributor
We have the same issue. It appears that PurchaseOrderID is a closely guarded secret and the only work around I have seen online is to cheat and use OrderId (Group Tag) and shove multiple items in to it so that you can do muliple things.
Example. AADUserJoined-Accounting