Bird
0
0

Which PowerShell command correctly creates an Organizational Unit named 'HR' under the domain 'corp.local'?

easy📝 Syntax Q3 of 15
PowerShell - Active Directory
Which PowerShell command correctly creates an Organizational Unit named 'HR' under the domain 'corp.local'?
ANew-ADUser -Name 'HR' -Path 'DC=corp,DC=local'
BNew-ADOrganizationalUnit -Name 'HR' -Path 'DC=corp,DC=local'
CNew-ADGroup -Name 'HR' -Path 'DC=corp,DC=local'
DNew-ADOrganizationalUnit -Name 'HR'
Step-by-Step Solution
Solution:
  1. Step 1: Identify Cmdlet for OU Creation

    New-ADOrganizationalUnit is used to create OUs.
  2. Step 2: Specify Name and Path

    The -Name parameter sets the OU name; -Path specifies the domain container.
  3. Step 3: Evaluate Options

    New-ADOrganizationalUnit -Name 'HR' -Path 'DC=corp,DC=local' uses correct cmdlet and parameters; others use wrong cmdlets or omit -Path.
  4. Final Answer:

    New-ADOrganizationalUnit -Name 'HR' -Path 'DC=corp,DC=local' -> Option B
  5. Quick Check:

    New-ADOrganizationalUnit + -Name + -Path [OK]
Quick Trick: Use New-ADOrganizationalUnit with -Name and -Path [OK]
Common Mistakes:
  • Using New-ADUser or New-ADGroup instead of New-ADOrganizationalUnit
  • Omitting the -Path parameter
  • Not quoting the OU name

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes