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?✗ Incorrect
The -Identity parameter is used to specify the username or distinguished name of the user you want to get.
How do you retrieve all users in Active Directory using
Get-ADUser?✗ Incorrect
Using -Filter * tells PowerShell to return all users without filtering.
Which parameter helps you get users only from a specific OU?
✗ Incorrect
The -SearchBase parameter limits the search to a specific organizational unit (OU).
If you want to see a user's email address with
Get-ADUser, what should you do?✗ Incorrect
You must specify additional properties like EmailAddress with the -Properties parameter to retrieve them.
What does
Get-ADUser -Identity jsmith do?✗ Incorrect
It retrieves the user account with the username '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.