Bird
0
0

What is wrong with this command to move an OU?

medium📝 Debug Q7 of 15
PowerShell - Active Directory
What is wrong with this command to move an OU?
Move-ADObject -Identity 'OU=Sales,DC=corp,DC=local' -TargetPath 'OU=Marketing,DC=corp,DC=local'
AThe command is correct and will work
BMove-ADObject cannot move OUs
CThe TargetPath should be a distinguished name of the destination container
DIdentity parameter is missing quotes
Step-by-Step Solution
Solution:
  1. Step 1: Understand Move-ADObject usage

    Move-ADObject moves directory objects including OUs.
  2. Step 2: Check parameters

    Identity and TargetPath are distinguished names with quotes, syntax is correct.
  3. Final Answer:

    The command is correct and will work -> Option A
  4. Quick Check:

    Move-ADObject moves OUs with correct DN parameters [OK]
Quick Trick: Use Move-ADObject with DNs to move OUs [OK]
Common Mistakes:
  • Thinking Move-ADObject can't move OUs
  • Forgetting to quote distinguished names
  • Confusing TargetPath format

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes