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.

AD Inventory Filter

Hey Folks,

 

Trial running PDQ Inventory.

Want to inventory my AD domain from the root but only want to add windows servers without having to dig into OUs. Is this possible?

0

Comments

3 comments
Date Votes
  • Do your servers follow a naming convention? If not, I think I can put together a PowerShell script to search through AD by OS type.

    0
  • Negative, they do not!

    0
  • Ok, give this PowerShell script a whirl:

    $Servers = Get-ADComputer -Filter "*" -Properties "OperatingSystem" | Where-Object OperatingSystem -Like "*Server*" | Select-Object -ExpandProperty DNSHostName
    PDQInventory.exe AddComputers -IgnoreDnsErr -Computers $Servers
    0