PowerTip: Create an Active Directory Group with PowerShell

PowerTip: Create an Active Directory Group with PowerShell

  • Comments 4
  • Likes

Summary: Use Windows PowerShell to create a security group in Active Directory.

Hey, Scripting Guy! Question How can I use Windows PowerShell to create a security group in Active Directory?

Hey, Scripting Guy! Answer In Windows Server 2012 R2 or Windows Server 2008 R2, use the New-ADGroup cmdlet.

To create a new global group in the default Users folder of Active Directory called “Finance”:

NEW-ADGroup –name “Finance” –groupscope Global

If it needs to exist in different path in Active Directory, specify the path by its distinguished name:

NEW-ADGroup –name “Finance” –groupscope Global –path “OU=Offices,DC=Contoso,DC=local”

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Good Power Tip!!!

  • derpiederp

  • sorry my bad ;(

  • thank you