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

    Copy Users from one AD Group to Another

    IT Discussion
    windows server 2008 r2 powershell
    1
    2
    348
    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.
    • wirestyle22W
      wirestyle22
      last edited by wirestyle22

      There was a time where I was reading a powershell book on my lunches, but I have not really needed to do anything in powershell for quite some time. After import-module activedirectory:

      Add-ADGroupMember -Identity 'New Group' -Members (Get-ADGroupMember -Identity 'Old Group' -Recursive)

      This seems to hang. Does anyone know the syntax to be more specific in regards to what OU I am copying from and to?

      wirestyle22W 1 Reply Last reply Reply Quote 1
      • wirestyle22W
        wirestyle22 @wirestyle22
        last edited by

        NVM. Decided to work randomly.

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