如何修改 Active Directory 中的 OU?

继续阅读,了解如何使用 PowerShell 修改 Active Directory 中的 OU,以及如何通过 ADManager Plus(一款全面的 Active Directory 管理解决方案)更轻松地完成此操作。

Windows PowerShell

使用 PowerShell 修改 OU 的步骤:

  • 确定要修改的 OU 所在的域。
  • 列出需要修改的属性。
  • 创建并编译用于修改 OU 所需属性的脚本。在 PowerShell 中执行该脚本。
  • 修改 OU 描述的示例脚本:
 已复制
Set-ADOrganizationalUnit -Identity "OU=IndiaUsers,DC=EXAMPLE,DC=COM" -Description "This OU contains all Indian users of Example.com"
点击复制整个脚本

ADManager Plus

如何修改 Active Directory 中的 OU:

  • 导航至 Management > OU Management > Modify Single OU
  • 选择您希望修改的 OU。
  • 输入描述为 "This Organizational Unit holds all of the users accounts of Example.com",然后点击 Update OU

截图

» 开始 30 天免费试用

虽然使用 PowerShell 等本地工具修改 OU 看起来简单,但存在一些限制,例如:

  • PowerShell 脚本只能在安装了 Active Directory 域服务角色的计算机上运行。
  • 如果要修改其他属性,必须重写脚本。
  • 如果要修改多个 OU,则需要新的脚本。
  • 语法、参数和循环必须正确。拼写错误或语法错误可能难以发现和纠正,尤其是当脚本较长时。

ADManager Plus 允许您通过其基于 Web 的 GUI 控制台,只需几次点击即可完成相同操作。它还提供了使用模板和导入包含修改属性值的 CSV 文件来 同时修改多个 OU 的选项。

使用 ADManager Plus 批量管理 Active Directory OU。

  获取 30 天免费试用。

开始您的 无脚本 AD 管理,报告和 自动化之旅 使用 ADManager Plus。

  •  
     
  • 提交即表示您同意根据 隐私政策 处理个人数据。

谢谢

您的下载将在 15 秒内自动开始。如未开始,点击此处手动下载。

相关 Powershell 操作指南:

Active Directory 管理和报告的一站式解决方案

电子邮件下载链接 Email the ADManager Plus download link