August 2019
Intermediate to advanced
786 pages
20h 22m
English
In the previous section, we learned about the Get-ADUser and Get-ADComputer cmdlets and how they can be used with other commands to filter out objects from AD. They can also be used to retrieve specific attribute values from filtered objects:
Get-ADUser -Identity user1 -Properties *
The preceding command will list all of the attributes and values associated with user1. This helps us to find the exact attribute names and common values, which can be used for further filtering.
I need to know the values for Name, UserPrincipalName, and Modified for all of the users. The following command will create a table with relevant attributes and their values:
Get-ADUser -Filter * -Properties Name,UserPrincipalName,Modified ...