如何在Active Directory组中填写Notes属性?

问题描述 投票:1回答:1

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

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

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

enter image description here

powershell server active-directory active-directory-group
1个回答
0
投票

尝试一下:

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

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

© www.soinside.com 2019 - 2024. All rights reserved.