
If you need further properties in addition to the name, or if you want to add a filter to the query, the Get-ADcomputer cmdlet is helpful. If you omit the -o switch with the rdn value, you receive a list of Distinguished Names. The result would be a list of computer names. You could run the following dsquery command: dsquery computer "OU=IT,DC=contoso,DC=com" -o rdn Say you want to find out which computers will be affected if you link a GPO to a certain OU.

Winget: Install multiple apps - Fri, Mar 25 2022.


