Get Active Directory and Azure Users by Department PowerShell

Опубликовано: 25 Октябрь 2024
на канале: Active Directory Pro
1,101
12

Learn how to get Active Directory and Azure Users by department using PowerShell.

For Active Directory Domain Services I'll use the Get-ADUser command to get users by department.

For Azure Active Directory I'll use the Get-MgUser command.

Examples in this video:

1. Get all users and their department attribute.
2. Search for users in a specific department.
3. Get a count of users in each department.

Blog post with commands:
https://activedirectorypro.com/how-to...

How to use the Get-MgUser command:
https://activedirectorypro.com/powers...

Active Directory GUI Reporting Tool:
https://activedirectorypro.com/report...

Active Directory Blog
https://activedirectorypro.com/blog/