{"id":21,"date":"2014-01-23T12:01:00","date_gmt":"2014-01-23T12:01:00","guid":{"rendered":"\/post\/2014\/01\/23\/list-members-of-dynamic-groups-show-incorrect-members.aspx"},"modified":"2014-01-23T12:01:00","modified_gmt":"2014-01-23T12:01:00","slug":"list-members-of-dynamic-groups-show-incorrect-members","status":"publish","type":"post","link":"https:\/\/www.vatland.no\/index.php\/list-members-of-dynamic-groups-show-incorrect-members\/","title":{"rendered":"List members of dynamic groups show incorrect members."},"content":{"rendered":"<p>If you use PowerShell to list members of dynamic distribution Groups in Exchange 2013 you would probably see more entries than expected. The PowerShell commands <\/p>\n<p>$dgr=Get-DynamicDistributionGroup &#8220;GroupNAme&#8221;<br \/>Get-Recipient -RecipientPreviewFilter $dgr.RecipientFilter<\/p>\n<p>does not take in to consideration OU filtering. If you look at $dgr.RecipientFiler it only contains the other attributes.<\/p>\n<p>I do not know if this is a bug or by design.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you use PowerShell to list members of dynamic distribution Groups in Exchange 2013 you would probably see more entries than expected. The PowerShell commands $dgr=Get-DynamicDistributionGroup &#8220;GroupNAme&#8221;Get-Recipient -RecipientPreviewFilter $dgr.RecipientFilter does not take in to consideration OU filtering. If you look at $dgr.RecipientFiler it only contains the other attributes. I do not know if this is &hellip; <a href=\"https:\/\/www.vatland.no\/index.php\/list-members-of-dynamic-groups-show-incorrect-members\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">List members of dynamic groups show incorrect members.<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7,5],"tags":[],"class_list":["post-21","post","type-post","status-publish","format-standard","hentry","category-categories","category-exchange"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"jetpack-related-posts":[{"id":25,"url":"https:\/\/www.vatland.no\/index.php\/list-members-of-exchange-dynamic-groups\/","url_meta":{"origin":21,"position":0},"title":"List members of Exchange dynamic groups.","author":"Atle","date":"January 8, 2014","format":false,"excerpt":"To list members of a Exchange Dynamic Group you have to run a few simple PowerShell commands.$dgr=Get-DynamicDistributionGroup \"GroupNAme\"Get-Recipient -RecipientPreviewFilter $dgr.RecipientFilter","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":765,"url":"https:\/\/www.vatland.no\/index.php\/list-exchange-mailboxes-with-forwarding-rules\/","url_meta":{"origin":21,"position":1},"title":"List Exchange mailboxes with forwarding rules","author":"Atle","date":"May 4, 2018","format":false,"excerpt":"Simple list of all mailboxes and rules. Displays more info if one of them contains a forwarding rule:","rel":"","context":"In &quot;Exchange&quot;","block_context":{"text":"Exchange","link":"https:\/\/www.vatland.no\/index.php\/category\/exchange\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":17,"url":"https:\/\/www.vatland.no\/index.php\/group-manager-in-exchange-2010-2013-are-unable-to-manage-group-membership\/","url_meta":{"origin":21,"position":2},"title":"Group Manager in Exchange 2010-2013 are unable to manage group membership.","author":"Atle","date":"February 19, 2014","format":false,"excerpt":"There was a change in RBAC. Group managers are not able to add or remove members of a distribution Group even if it seems so in the Exchange Management Console. The only options in ECP was to give them the additional permission to great and remove groups. You can create\u2026","rel":"","context":"In &quot;Categories&quot;","block_context":{"text":"Categories","link":"https:\/\/www.vatland.no\/index.php\/category\/categories\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":70,"url":"https:\/\/www.vatland.no\/index.php\/exchange-powershell-max-quota-exceeded\/","url_meta":{"origin":21,"position":3},"title":"Exchange Powershell Max Quota exceeded.","author":"Atle","date":"May 27, 2012","format":false,"excerpt":"When doing some exchange powershell you would probably get this error or somthing like it sooner or later: Connecting to remote server failed with the following error message : The WS-Management service cannot process the request. This user is allowed a maximum number of 18 concurrent shells, which has been\u2026","rel":"","context":"In &quot;Exchange&quot;","block_context":{"text":"Exchange","link":"https:\/\/www.vatland.no\/index.php\/category\/exchange\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":85,"url":"https:\/\/www.vatland.no\/index.php\/test-network-with-filecopy-and-powershell\/","url_meta":{"origin":21,"position":4},"title":"Test network with filecopy and Powershell","author":"Atle","date":"September 26, 2011","format":false,"excerpt":"Needed a way to test and time filecopy between servers using powershell. This is what I came up with. This example will use copy testfile.zip to server and time the progress. I used a file of 1.8 Gb. $servers=\"server1\",\"server2\",\"server3\",\"server4\",\"server5\",\"server6\"foreach($server in $Servers){if (!(test-path \\\\$server\\share\\temp)) {\u00a0\u00a0\u00a0 new-item -path \\\\$server\\share -name temp -ItemType\u2026","rel":"","context":"In &quot;Exchange&quot;","block_context":{"text":"Exchange","link":"https:\/\/www.vatland.no\/index.php\/category\/exchange\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":804,"url":"https:\/\/www.vatland.no\/index.php\/use-powershell-to-get-leakedcredentials-from-azure-using-graph\/","url_meta":{"origin":21,"position":5},"title":"Use Powershell to get LeakedCredentials from Azure using Graph","author":"Atle","date":"November 1, 2018","format":false,"excerpt":"Leaked credentials listed from Azure using powershell and Microsoft Graph\u00a0We need one Azure AD Premium X license to get this log. Would it be nice to list all leakedcredentials using powershell?(or riskysignins or identiyriskevents). All of this could be achieved using powershell and REST api at Microsoft Graph. I have\u2026","rel":"","context":"In \"Powershell\"","block_context":{"text":"Powershell","link":"https:\/\/www.vatland.no\/index.php\/tag\/powershell\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.vatland.no\/wp-content\/uploads\/2018\/11\/Leaked.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.vatland.no\/wp-content\/uploads\/2018\/11\/Leaked.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.vatland.no\/wp-content\/uploads\/2018\/11\/Leaked.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/posts\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":0,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}