{"id":2096,"date":"2017-04-18T20:22:28","date_gmt":"2017-04-18T20:22:28","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=2096"},"modified":"2017-04-18T20:22:28","modified_gmt":"2017-04-18T20:22:28","slug":"add-an-active-directory-user-to-the-same-groups-as-another-user-with-powershell","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=2096","title":{"rendered":"Add an Active Directory User to the Same Groups as Another User with PowerShell"},"content":{"rendered":"<p>Open PowerShell as Admin import system modules or<\/p>\n<p><span style=\"color: #ff0000;\"><b>Import-modules activedirectory<\/b>\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Command:<\/strong><\/p>\n<p><span style=\"color: #ff0000;\"><i>Get-ADUser -Identity cduran -Properties memberof |<\/i>\u00a0<\/span><\/p>\n<p><span style=\"color: #ff0000;\"><i>Select-Object -ExpandProperty memberof |<\/i>\u00a0<\/span><\/p>\n<p><span style=\"color: #ff0000;\"><i>Add-ADGroupMember -Members cdurantest<\/i><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Open PowerShell as Admin import system modules or Import-modules activedirectory\u00a0 &nbsp; Command: Get-ADUser -Identity cduran -Properties memberof |\u00a0 Select-Object -ExpandProperty memberof |\u00a0 Add-ADGroupMember -Members cdurantest<\/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-2096","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\/2096","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=2096"}],"version-history":[{"count":1,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2096\/revisions"}],"predecessor-version":[{"id":2097,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2096\/revisions\/2097"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}