ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Creating an Active Directory Group with PowerShell

    Scheduled Pinned Locked Moved IT Discussion
    powershellwindows administrationwindowscommand lineactive directorynew-adgroupget-adgroup
    4 Posts 2 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      In its simplest form, we can use PowerShell to create an Active Directory group quite easily:

      New-ADGroup groupname scope
      

      In this case scope would be "global", "local" or "universal".

      So for example to make the group "rdsusers" that is a "global" group we would just run...

      New-ADGroup rdsusers global
      

      If you want to see the details of the group that you just created, use Get-ADGroup.

      1 Reply Last reply Reply Quote 1
      • scottalanmillerS
        scottalanmiller
        last edited by

        You can quickly add new users to your new group, too...

        add-adgroupmember rdsusers jane,bill,bob,mary,kate,ashely
        
        1 Reply Last reply Reply Quote 1
        • travisdh1T
          travisdh1
          last edited by

          Gah, I'm having bad memories of OpenVMS with the different programs for every single little thing.

          It does make for a nice looking and short command-line structure tho.

          scottalanmillerS 1 Reply Last reply Reply Quote 1
          • scottalanmillerS
            scottalanmiller @travisdh1
            last edited by

            @travisdh1 said in Creating an Active Directory Group with PowerShell:

            Gah, I'm having bad memories of OpenVMS with the different programs for every single little thing.

            It does make for a nice looking and short command-line structure tho.

            Oh yeah, SO much different than UNIX.

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post