AD- New Group Command New-ADGroup
Learn from:
Teacher Xu Peng's AD Powershell series of video courses
The properties that the group contains are:
Name
Managedby
GroupCategory
GroupScope
Path
Description
Create a group
New-ADGroup-Name Security_Group-ManageBy user10-GroupCategory Security-GroupScope Universal-Path "ou=Lab,dc=satid,dc=com"-Description "security"
Create a group based on a file
Import-Csv.\ groups.csv | foreach {New-ADGroup-Name $_ .Name-ManageBy $_ .ManageBy-GroupCategory $_ .GroupCategory-GroupScope $_ .GroupScope-Path $_ .ou-Description $_ .description}