powershell - 如何在 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。请帮我 :)
解决方案
试试这个:
Set-ADGroup -Identity "CN=XXX,OU=XXX,DC=XXX,DC=local" -Replace @{info="HELLO"}
-Info 在这里不起作用,因为它与常用参数匹配。
推荐阅读
- javascript - 如何通过在指定范围内引入点来减少字符串
- python - 显示空数据框的代码
- angular - Angular 6 - 无法使用 ngModel
- arrays - 如何在VBA中的数组中保留某种形式的数字
- java - 正则表达式从 json 获取键和值
- javascript - 如何在多选 jquery 插件中获取未经检查的值
- java - Java:将多个表中的 SQL 选择映射到多个实体中
- postgis - 在 Geoserver 中使用 SLD 设置多边形样式
- bash - shell 脚本中的 ${img_file%.*} 是什么意思?
- c# - 在没有用户凭据的情况下使用 MS Graph API