Powershell Access to Inventory Data
Is there a way to access the data stored in Inventory from Powershell?
For example, I have a collection in Inventory of computers that do not have a certain local administrator account set up on it. I would love to be able to use a powershell cmdlet to get the list of computers from this group to run a script on.
I realize that I can use Deploy and target the collection, but I would also like to be able to do it outside of Deploy and run it from my desktop without having to manually export the collection to a csv file each time I want to do this.
Comments
Yes, you can call PDQInventory.exe from PowerShell.
Fantastic! Thank you Colby!