{"id":517,"date":"2012-02-09T17:00:45","date_gmt":"2012-02-09T17:00:45","guid":{"rendered":"http:\/\/ec2-34-242-84-40.eu-west-1.compute.amazonaws.com\/?p=517"},"modified":"2012-02-09T17:00:45","modified_gmt":"2012-02-09T17:00:45","slug":"find-out-which-security-group-members-are-in-one-or-more-exchange-2010-databases","status":"publish","type":"post","link":"https:\/\/tomgeraghty.co.uk\/index.php\/find-out-which-security-group-members-are-in-one-or-more-exchange-2010-databases\/","title":{"rendered":"Find out which security group members are in one or more Exchange 2010 databases"},"content":{"rendered":"<p>First, run this command on a domain controller to extract the members of a security group:<\/p>\n<pre>net group \"Security group name\" &gt;c:\\groupmembership.csv<\/pre>\n<p>Then run this in an Exchange 2010 shell to extract the mailbox names from the database:<\/p>\n<pre>Get-Recipient -PropertySet ConsoleLargeSet\u00a0 -ResultSize '9000' -SortBy DisplayName -RecipientType 'UserMailbox' -Filter '((Database -eq ''CN=DATABASENAME,CN=Databases,CN=Exchange Administrative Group (YOURADMINGROUP),CN=Administrative Groups,))' | Export-csv C:\\userslist.csv<\/pre>\n<p>Then paste\u00a0your names lists\u00a0into excel in two columns, one named group membership, and one database users. Use the below formula in the third column to find the names that occur in both columns of data.<\/p>\n<pre>=VLOOKUP([first column entry,[Range E.G. A:A],1,FALSE)<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><!--START MERCHANT:merchant name Business IT Online Office Shop from affiliatewindow.com.--><br \/>\n<a href=\"http:\/\/www.awin1.com\/cread.php?s=164504&amp;v=2607&amp;q=93990&amp;r=164870\"><img decoding=\"async\" src=\"http:\/\/www.awin1.com\/cshow.php?s=164504&amp;v=2607&amp;q=93990&amp;r=164870\" alt=\"\" border=\"0\" \/><\/a><br \/>\n<!--END MERCHANT:merchant name Business IT Online Office Shop from affiliatewindow.com--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>First, run this command on a domain controller to extract the members of a security group: net group &#8220;Security group name&#8221; &gt;c:\\groupmembership.csv Then run this in an Exchange 2010 shell to extract the mailbox names from the database: Get-Recipient -PropertySet ConsoleLargeSet\u00a0 -ResultSize &#8216;9000&#8217; -SortBy DisplayName -RecipientType &#8216;UserMailbox&#8217; -Filter &#8216;((Database -eq &#8221;CN=DATABASENAME,CN=Databases,CN=Exchange Administrative Group (YOURADMINGROUP),CN=Administrative Groups,))&#8217; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/tomgeraghty.co.uk\/index.php\/find-out-which-security-group-members-are-in-one-or-more-exchange-2010-databases\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Find out which security group members are in one or more Exchange 2010 databases&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,4],"tags":[22,28,29,41],"class_list":["post-517","post","type-post","status-publish","format-standard","hentry","category-blog","category-tech","tag-data","tag-excel","tag-exchange","tag-it"],"_links":{"self":[{"href":"https:\/\/tomgeraghty.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tomgeraghty.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tomgeraghty.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tomgeraghty.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tomgeraghty.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=517"}],"version-history":[{"count":0,"href":"https:\/\/tomgeraghty.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/517\/revisions"}],"wp:attachment":[{"href":"https:\/\/tomgeraghty.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tomgeraghty.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tomgeraghty.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}