使用“Notes”创建AD组字段填充(powershell称之为'info') [英] Creating an AD group with the "Notes" field populated (powershell calls it 'info')

查看:121
本文介绍了使用“Notes”创建AD组字段填充(powershell称之为'info')的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前用它来创建组:

new-adgroup  "开发人员" -samaccountname  "开发人员" -groupcategory Security -GroupScope  Universal -DisplayName" Developer" -path  "OU =委托组,DC =城市,DC =团队,DC =公司名称,DC = com"。
  -Description"For Developers"

new-adgroup   "Developer" -samaccountname   "Developer" -groupcategory Security -GroupScope   Universal -DisplayName "Developer" -path   "OU=Delegation Groups,DC=city,DC=team,DC=companyname,DC=com"   -Description "For Developers"

 我知道我可以在事后添加到'info'字段这样的事情:

set-adgroup -identity" Developer" -replace @ {info ="所有者:User1`r`nCo-Owner:User2"}

 I know that I can add to the 'info' field after the fact with something like this:
set-adgroup -identity "Developer" -replace @{info="Owner: User1`r`nCo-Owner: User2"}

但我希望在创建时设置'info'字段。

But what I am hoping to accomplish is setting the 'info' field upon creation.

感谢您的帮助。

TimA

推荐答案

帮助new-adgroup -full

help new-adgroup -full

仔细阅读帮助。


这篇关于使用“Notes”创建AD组字段填充(powershell称之为'info')的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆