Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

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.

0

Comments

2 comments
Date Votes
  • Yes, you can call PDQInventory.exe from PowerShell.

    PDQInventory.exe help
    PDQInventory.exe GetCollectionComputers
    0
  • Fantastic! Thank you Colby!

    0