Question about New-ADUser -Path

nobody 41 Reputation points

i want to create users by script (New-ADUser). how do i specify the variable -Path in this case

(windows server 2019)

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,990 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dillon Silzer 54,746 Reputation points

    Hi @nobody

    You can use -Path such as:

    New-ADUser -Name "ChewDavid" -Type iNetOrgPerson -Path "ou=subunit,ou=unit,dc=contoso,dc=com" -Server

    So for your example in your screenshot:

    New-ADUser -Name "ChewDavid" -Type iNetOrgPerson -Path "ou=Group,ou=Students,dc=contoso,dc=com" -Server


    If this is helpful please accept answer.

0 additional answers

Sort by: Most helpful