组包含的属性有:
Name
Managedby
GroupCategory
GroupScope
Path
Description
创建一个组
New-ADGroup -Name Security_Group -ManageBy user10 -GroupCategory Security -GroupScope Universal -Path "ou=Lab,dc=satid,dc=com" -Description "security"
根据文件,创建组
Import-Csv .\groups.csv | foreach {New-ADGroup -Name $_.Name -ManageBy $_.ManageBy -GroupCategory $_.GroupCategory -GroupScope $_.GroupScope -Path $_.ou -Description $_.description}
时间: 2024-10-14 10:50:17