{"id":1751,"date":"2014-02-07T10:44:28","date_gmt":"2014-02-07T09:44:28","guid":{"rendered":"https:\/\/www.buarotti.ch\/?p=1751"},"modified":"2014-07-05T11:42:41","modified_gmt":"2014-07-05T09:42:41","slug":"get-adusers-from-group","status":"publish","type":"post","link":"https:\/\/www.buarotti.ch\/?p=1751","title":{"rendered":"Get-ADUsers from Group"},"content":{"rendered":"<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n\r\n########################################################### \u00a0\r\n# AUTHOR\u00a0 : buarotti.ch \u00a0\r\n# DATE\u00a0\u00a0\u00a0 : 06.11.2013\r\n# EDIT\u00a0\u00a0\u00a0 : \u00a0\r\n# CHANGES :\r\n# COMMENT : This script export Group-Members to CSV for Reporting Permission's\r\n###########################################################\r\nImport-Module ActiveDirectory\r\ncls\r\nwrite-host &quot; &quot;\r\nwrite-host &quot;Read Users from Group&quot;\r\nwrite-host &quot; &quot;\r\n$GName = Read-Host &quot;Please Enter the Groupname:&quot;\r\n\r\n# Display on Console\r\nGet-ADGroupMember $GName | Get-ADUser | Select Surname, GivenName, Name, Enabled | sort Surname\r\n\r\n#Export to CSV File\r\nGet-ADGroupMember $GName | Get-ADUser | Select Surname, GivenName, Name, Enabled | sort Surname | Export-Csv .\\CSV\\$GName.csv \u2013NoTypeInformation -Encoding unicode\r\n\r\n<\/pre>\n<p><!--more--><\/p>\n<h3>Related Images:<\/h3>","protected":false},"excerpt":{"rendered":"<p>########################################################### \u00a0 # AUTHOR\u00a0 : buarotti.ch \u00a0 # DATE\u00a0\u00a0\u00a0 : 06.11.2013 # EDIT\u00a0\u00a0\u00a0 : \u00a0 # CHANGES : # COMMENT : This script export Group-Members to CSV for Reporting Permission&#8217;s ########################################################### Import-Module ActiveDirectory cls write-host &quot; &quot; write-host &quot;Read Users from Group&quot; write-host &quot; &quot; $GName = Read-Host &quot;Please Enter the Groupname:&quot; # Display on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[58,14],"tags":[],"class_list":["post-1751","post","type-post","status-publish","format-standard","hentry","category-active-directory","category-powershell"],"_links":{"self":[{"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=\/wp\/v2\/posts\/1751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1751"}],"version-history":[{"count":3,"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=\/wp\/v2\/posts\/1751\/revisions"}],"predecessor-version":[{"id":1761,"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=\/wp\/v2\/posts\/1751\/revisions\/1761"}],"wp:attachment":[{"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}