{"id":1865,"date":"2016-04-01T00:01:29","date_gmt":"2016-04-01T00:01:29","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=1865"},"modified":"2016-04-01T00:02:27","modified_gmt":"2016-04-01T00:02:27","slug":"1865","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=1865","title":{"rendered":"How to Copy Members of a Security Group in Active Directory"},"content":{"rendered":"<p>Ever ran into a task where you needed to copy all the members of a certain AD security group over to a new or existing security group?<\/p>\n<p>If so, you can use the powershell command below to complete this task.<\/p>\n<p>&nbsp;<\/p>\n<p>Get-ADGroupMember -Identity &#8220;ExistingGroup&#8221; | Add-ADPrincipalGroupMembership -MemberOf &#8220;NewGroup&#8221;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/microsoftgeek.com\/?attachment_id=1866#main\" rel=\"attachment wp-att-1866\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-1866\" src=\"http:\/\/microsoftgeek.com\/wp-content\/uploads\/2016\/03\/PS.png\" alt=\"PS\" width=\"988\" height=\"283\" srcset=\"https:\/\/microsoftgeek.com\/wp-content\/uploads\/2016\/03\/PS.png 988w, https:\/\/microsoftgeek.com\/wp-content\/uploads\/2016\/03\/PS-300x86.png 300w, https:\/\/microsoftgeek.com\/wp-content\/uploads\/2016\/03\/PS-768x220.png 768w\" sizes=\"auto, (max-width: 988px) 100vw, 988px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever ran into a task where you needed to copy all the members of a certain AD security group over to a new or existing security group? If so, you can use the powershell command below to complete this task. &nbsp; Get-ADGroupMember -Identity &#8220;ExistingGroup&#8221; | Add-ADPrincipalGroupMembership -MemberOf &#8220;NewGroup&#8221; &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,59],"tags":[],"class_list":["post-1865","post","type-post","status-publish","format-standard","hentry","category-ad","category-powershell"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1865","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1865"}],"version-history":[{"count":2,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1865\/revisions"}],"predecessor-version":[{"id":1868,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1865\/revisions\/1868"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1865"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1865"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}