可以使用PowerShell脚本来创建和管理Active Directory安全组,示例代码如下:
New-ADGroup -Name "组名" -GroupScope "Global" -GroupCategory "Security"
Add-ADGroupMember -Identity "组名" -Members "用户名"
Remove-ADGroupMember -Identity "组名" -Members "用户名"
Get-ADGroupMember -Identity "组名"