如何使用 Powershell 写入 Active Directory 组属性“info”

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

在 Active Directory 用户和计算机 GUI 中,我可以在注释框中写入注释。使用 Powershell 时,我可以使用

Get-ADGroup $_ -properties info
检索它。但是,虽然 Set-ADGroup cmdlet 有一个用于描述的参数,但它没有一个用于信息的参数。我如何使用 Powershell 来写入该属性?

powershell active-directory
1个回答
0
投票

也许使用

Set-ADGroup -Instance <ADGroup>
可以解决您的问题。检索该组,为其设置所需的属性并尝试保存它。

仅基于文档,没有测试环境。

文档:https://learn.microsoft.com/en-us/powershell/module/activedirectory/set-adgroup?view=windowsserver2022-ps

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