0
0
PowerShellscripting~5 mins

Organizational unit operations in PowerShell - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is an Organizational Unit (OU) in Active Directory?
An Organizational Unit (OU) is a container within Active Directory used to organize users, groups, computers, and other OUs. It helps manage and apply policies easily.
Click to reveal answer
beginner
How do you create a new OU using PowerShell?
Use the cmdlet <code>New-ADOrganizationalUnit -Name &lt;OUName&gt; -Path &lt;ParentPath&gt;</code> to create a new OU under a specified path.
Click to reveal answer
intermediate
Which PowerShell cmdlet is used to move an OU to a different location?
The cmdlet <code>Move-ADObject</code> is used to move an OU or other AD objects to a new path.
Click to reveal answer
intermediate
How can you delete an OU using PowerShell?
Use Remove-ADOrganizationalUnit -Identity <OU_DistinguishedName> -Recursive to delete an OU and all its child objects.
Click to reveal answer
beginner
What does the -Recursive parameter do when deleting an OU?
It deletes the OU and all objects inside it, including child OUs, users, and groups. Without it, the OU must be empty to delete.
Click to reveal answer
Which cmdlet creates a new Organizational Unit in PowerShell?
ARemove-ADOrganizationalUnit
BNew-ADOrganizationalUnit
CSet-ADOrganizationalUnit
DNew-ADUser
What parameter is needed to delete an OU with all its contents?
A-Recursive
B-Force
C-Confirm
D-Recurse
Which cmdlet moves an OU to a new location?
ASet-ADOrganizationalUnit
BMove-ADOrganizationalUnit
CRename-ADOrganizationalUnit
DMove-ADObject
What is the minimum requirement to delete an OU without using -Recursive?
AOU must be empty
BOU must have at least one user
COU must be the root OU
DOU must be locked
Which cmdlet would you use to rename an OU?
ANew-ADOrganizationalUnit
BSet-ADOrganizationalUnit
CRename-ADObject
DMove-ADObject
Explain how to create, move, and delete an Organizational Unit using PowerShell.
Think about the cmdlets for creating, moving, and deleting OUs.
You got /3 concepts.
    Describe what happens when you delete an OU with the -Recursive parameter.
    Consider the difference between deleting with and without -Recursive.
    You got /3 concepts.