Skip to content

Instantly share code, notes, and snippets.

@paulvill76
Created April 11, 2019 15:44
Show Gist options
  • Save paulvill76/a1d06100f2230dbe9f23bbd15717f2cd to your computer and use it in GitHub Desktop.
Save paulvill76/a1d06100f2230dbe9f23bbd15717f2cd to your computer and use it in GitHub Desktop.
New-ADGroup -Name "RODC Admins" -SamAccountName RODCAdmins -GroupCategory Security -GroupScope Global -DisplayName "RODC Administrators" -Path "CN=Users,DC=hlfr,DC=sh" -Description "Members of this group are RODC Administrators"
1
New-ADGroup -Name "RODC Admins" -SamAccountName RODCAdmins -GroupCategory Security -GroupScope Global -DisplayName "RODC Administrators" -Path "CN=Users,DC=hlfr,DC=sh" -Description "Members of this group are RODC Administrators"
2
Get-ADGroup FabrikamBranch1 -Properties Description | New-ADGroup -Name "Branch1Employees" -SamAccountName "Branch1Employees" -GroupCategory Distribution -PassThru
GroupScope : Universal
Name : Branch1Employees
GroupCategory : Distribution
SamAccountName : Branch1Employees
ObjectClass : group
ObjectGUID : 8eebce44-5df7-4bed-a98b-b987a702103e
SID : S-1-5-21-41432690-3719764436-1984117282-1117
DistinguishedName : CN=Branch1Employees,CN=Users,DC=Fabrikam,DC=com
3
New-ADGroup -Server localhost:60000 -Path "OU=hlfr,DC=sh" -Name "AccountLeads" -GroupScope Universal -GroupCategory Security
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment