Challenge - 5 Problems
AD Management Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Why is Active Directory (AD) management crucial for sysadmins?
Which of the following best explains why sysadmins must manage Active Directory effectively?
Attempts:
2 left
💡 Hint
Think about what AD controls in a network environment.
✗ Incorrect
Active Directory manages user accounts, permissions, and security policies, which are critical for network security and access control.
💻 Command Output
intermediate2:00remaining
Output of a PowerShell command to list AD users
What is the output of this PowerShell command?
Get-ADUser -Filter * -Properties Name | Select-Object -First 3 -ExpandProperty Name
PowerShell
Get-ADUser -Filter * -Properties Name | Select-Object -First 3 -ExpandProperty NameAttempts:
2 left
💡 Hint
Get-ADUser lists users; Select-Object picks first 3 names.
✗ Incorrect
The command lists all AD users, selects the first three, and outputs their names as strings.
📝 Syntax
advanced2:30remaining
Identify the syntax error in this AD user creation script
Which option contains the correct syntax to create a new AD user with PowerShell?
PowerShell
New-ADUser -Name "John Doe" -SamAccountName "jdoe" -AccountPassword (ConvertTo-SecureString "P@ssw0rd" -AsPlainText -Force) -Enabled $true
Attempts:
2 left
💡 Hint
AccountPassword needs a secure string wrapped in parentheses.
✗ Incorrect
Option A correctly wraps the ConvertTo-SecureString command in parentheses and uses all required parameters.
🔧 Debug
advanced2:00remaining
Why does this AD group membership script fail?
This script is supposed to add a user to a group but fails. What is the error?
Add-ADGroupMember -Identity "Admins" -Members "jdoe"
PowerShell
Add-ADGroupMember -Identity "Admins" -Members "jdoe"
Attempts:
2 left
💡 Hint
Check if the user 'jdoe' exists and permissions.
✗ Incorrect
The error occurs because the user 'jdoe' is not found or the script lacks permission to access it.
🚀 Application
expert3:00remaining
Automate user account expiration notification
You want to write a PowerShell script that finds all AD users whose accounts expire within 7 days and sends an email notification. Which snippet correctly filters these users?
PowerShell
Get-ADUser -Filter {AccountExpirationDate -le $dateLimit} -Properties AccountExpirationDateAttempts:
2 left
💡 Hint
Use a variable for the date and a script block filter.
✗ Incorrect
Option B correctly sets a variable and uses it inside the filter script block to find users expiring within 7 days.