首页 > 解决方案 > 如何在 Active Directory 组中填写 Notes 属性?

问题描述

我想填写 Active Directory Groups 的注释。我查看了 Microsoft Docs 并编写了此代码;

Set-ADGroup -Identity "CN=XXX,OU=XXX,DC=XXX,DC=local" -Info "HELLO"

但是,有一个错误,Microsoft Docs 告诉我们 Notes 等于 AD 中的 Info Attributes。请帮我 :)

在此处输入图像描述

标签: powershellserveractive-directoryactive-directory-group

解决方案


试试这个:

Set-ADGroup -Identity "CN=XXX,OU=XXX,DC=XXX,DC=local" -Replace @{info="HELLO"}

-Info 在这里不起作用,因为它与常用参数匹配。


推荐阅读