简体   繁体   English

如何将用户添加到Active Directory中的特定域

[英]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. 我需要使用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. 但是我不知道如何将用户添加到特定域(例如,@ CCC)。为此,我应该设置哪个参数。

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. 您可以使用-Server "DomainControler.Domain.com"参数将Cmdlet指向要向其添加用户的域的域控制器。 This will create the user in the default OU on that domain controller unless it's told otherwise using the -path parameter. 除非使用-path参数告知,否则这将在该域控制器上的默认 OU创建用户。

If you have both domains running on a single domain control then you can just change the OU to that of the desired domain. 如果两个域都在单个域控件上运行,则只需将OU更改为所需域的OU -Path "ou=mfg,dc=noam,dc=corp,dc=contoso,dc=com"

For more help on parameters see this link . 有关参数的更多帮助,请参见此链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在用户的Active Directory中添加分散组? - How to add the distrubtion group in Active Directory for a user? 允许非域用户查询Active Directory - Allowing non domain user to query Active Directory 模拟来自不同的、不受信任的域的 Windows 或 Active Directory 用户 - Impersonate a Windows or Active Directory user from a different, untrusted domain 如何创建为Active Directory中的特定用户创建任务的批处理脚本? - How do I create a batch script that creates a task for a specific user in the Active Directory? 从 C++ 应用程序中,如何检查 Active Directory 中的特定用户是否属于特定安全组? - From a C++ application, how can I check if a specific user in Active Directory is part of a particular security group? Active Directory:如何获取属于另一个域的组信息? - Active Directory : How to get Group information that belongs to another domain? 如何将服务器加入Active Directory(域)? - How do you join a server to an Active Directory (domain)? 如何为所有域用户隐藏 Active Directory 对象 - how to hide Active Directory objects for all domain users Active Directory用户在我们的办公室域以外时无法访问桌面和我的文档 - Active Directory user unable to access desktop and my Documents when out of our office domain Linux集成到Active Directory(跨域) - Linux integration into Active Directory (Cross domain)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM