简体   繁体   中英

How to add user to a specific domain in Active Directory

I need to add a specific user to a domain using New-ADUser cmdlet. But i don't know how to add the user to a specific domain (ex-@CCC).Which parameter should i set in order to do so.

You can point the Cmdlet at the domain controller of the domain you want to add the user to using -Server "DomainControler.Domain.com" parameter. This will create the user in the default OU on that domain controller unless it's told otherwise using the -path parameter.

If you have both domains running on a single domain control then you can just change the OU to that of the desired domain. -Path "ou=mfg,dc=noam,dc=corp,dc=contoso,dc=com"

For more help on parameters see this link .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM