0
0
PowerShellscripting~5 mins

Get-ADUser in PowerShell - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the <code>Get-ADUser</code> cmdlet do in PowerShell?
It retrieves information about Active Directory user accounts. You can get details like username, email, and other properties.
Click to reveal answer
beginner
How do you get a user by their username with Get-ADUser?
Use the -Identity parameter with the username. Example: Get-ADUser -Identity "jsmith".
Click to reveal answer
intermediate
What parameter do you use to select specific properties to display with Get-ADUser?
Use the -Properties parameter to specify which properties you want. For example, -Properties EmailAddress, Department.
Click to reveal answer
intermediate
How can you find all users in a specific organizational unit (OU) using Get-ADUser?
Use the -SearchBase parameter with the OU's distinguished name. Example: Get-ADUser -SearchBase "OU=Sales,DC=example,DC=com" -Filter *.
Click to reveal answer
beginner
What does the -Filter * parameter do in Get-ADUser?
It tells PowerShell to get all users without filtering. The asterisk means 'all'.
Click to reveal answer
Which parameter of Get-ADUser lets you specify the user by username?
A-Filter
B-Identity
C-Properties
D-SearchBase
How do you retrieve all users in Active Directory using Get-ADUser?
AGet-ADUser -Identity *
BGet-ADUser -Properties *
CGet-ADUser -Filter *
DGet-ADUser -SearchBase *
Which parameter helps you get users only from a specific OU?
A-SearchBase
B-Properties
C-Filter
D-Identity
If you want to see a user's email address with Get-ADUser, what should you do?
AUse -SearchBase EmailAddress
BUse -Filter EmailAddress
CUse -Identity EmailAddress
DUse -Properties EmailAddress
What does Get-ADUser -Identity jsmith do?
AGets the user with username 'jsmith'
BGets all users named 'jsmith'
CDeletes the user 'jsmith'
DUpdates the user 'jsmith'
Explain how to use Get-ADUser to find all users in a specific organizational unit (OU).
Think about limiting the search scope to an OU.
You got /3 concepts.
    Describe how to retrieve a user's email address using Get-ADUser.
    Remember default properties do not include email.
    You got /3 concepts.