How to List All Computers in an OU

Опубликовано: 03 Август 2023
на канале: Active Directory Pro
3,753
29

How to get a list of all computers in an OU.

With the AD Pro Toolkit follow these steps.

1. Click on Computers Reports
2. Click on a report (for example all computers).
3. Click the browse button and select one or more organizational units (OU).
4. Click run.
5. If you want to export the list of computers click the export button.

Get a list of computers from an OU using PowerShell.

1. You will need to get the DistinguishedName of the OU, you can get this from the ADUC tool.

2. Use the following PowerShell command:
Get-ADComputer -filter * -SearchBase "OU=DEMO,OU=ADPRO Computers,DC=ad,DC=activedirectorypro,DC=com"

To list only specific computer fields use this command:
Get-ADComputer -filter * -SearchBase "OU=DEMO,OU=ADPRO Computers,DC=ad,DC=activedirectorypro,DC=com" | select name, DNSHostName, DistinguishedName

To export the list of computers us this command:
Get-ADComputer -filter * -SearchBase "OU=DEMO,OU=ADPRO Computers,DC=ad,DC=activedirectorypro,DC=com" | select name, DNSHostName, DistinguishedName | export-csv -path c:\it\computers.csv

The AD Pro Toolkit includes over 200 reports for users, computers, groups, and group policy. You can customize reports by adding and remove columns. Reports can also be set to run on an automated schedule.

(Download Free Trial)
https://activedirectorypro.com/report...

More Active Directory Tutorials:
https://activedirectorypro.com/blog/


Смотрите видео How to List All Computers in an OU онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Active Directory Pro 03 Август 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,753 раз и оно понравилось 29 людям.