Challenge - 5 Problems
OU Operations Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Output of Creating a New OU
What is the output of this PowerShell command when creating a new Organizational Unit (OU) named 'Sales' in the domain 'example.com'?
PowerShell
New-ADOrganizationalUnit -Name "Sales" -Path "DC=example,DC=com"
Attempts:
2 left
💡 Hint
Think about what the cmdlet returns when it successfully creates an OU.
✗ Incorrect
The New-ADOrganizationalUnit cmdlet returns an object representing the new OU, including its DistinguishedName, Name, and ObjectClass properties.
💻 Command Output
intermediate2:00remaining
Result of Removing an OU with Child Objects
What happens when you run this command to remove an OU that contains child objects without using the -Recursive flag?
PowerShell
Remove-ADOrganizationalUnit -Identity "OU=Marketing,DC=example,DC=com"Attempts:
2 left
💡 Hint
Think about how Active Directory handles deletion of containers with children.
✗ Incorrect
Without the -Recursive flag, Remove-ADOrganizationalUnit cannot delete an OU that contains child objects and throws an error.
🔧 Debug
advanced2:00remaining
Identify the Error in OU Move Script
This script attempts to move an OU named 'HR' to a new parent OU 'Departments'. What error will it produce?
PowerShell
Move-ADObject -Identity "OU=HR,DC=example,DC=com" -TargetPath "OU=Departments,DC=example,DC=com"
Attempts:
2 left
💡 Hint
Check if the parameters are correctly specified and the target OU exists.
✗ Incorrect
If the target OU exists and the user has permissions, Move-ADObject moves the OU without output.
📝 Syntax
advanced2:00remaining
Syntax Error in OU Creation Script
Which option contains a syntax error when creating an OU named 'Finance'?
Attempts:
2 left
💡 Hint
Look for missing quotes or incorrect parameter formats.
✗ Incorrect
Option B lacks quotes around the Path parameter value, causing a syntax error.
🚀 Application
expert3:00remaining
Script to List All OUs Recursively
Which script correctly lists all Organizational Units recursively under the domain 'example.com'?
Attempts:
2 left
💡 Hint
Consider the SearchScope parameter to include all nested OUs.
✗ Incorrect
SearchScope Subtree includes the base and all child OUs recursively. OneLevel only includes immediate children.