{"id":343,"date":"2019-02-26T13:30:25","date_gmt":"2019-02-26T19:30:25","guid":{"rendered":"https:\/\/sysadminnightmare.com\/?p=343"},"modified":"2019-02-21T13:35:18","modified_gmt":"2019-02-21T19:35:18","slug":"get-adgroupmember-the-size-limit-for-this-request-was-exceeded","status":"publish","type":"post","link":"https:\/\/sysadminnightmare.com\/index.php\/2019\/02\/26\/get-adgroupmember-the-size-limit-for-this-request-was-exceeded\/","title":{"rendered":"Get-ADGroupMember : The size limit for this request was exceeded"},"content":{"rendered":"\n<p>This is due to a limit with Get-ADGroupMember having a 5k limit, so this is telling you that the group you are trying to get members from has more than 5k Members.<\/p>\n\n\n\n<p>To get around this you can use this<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$group = \"GroupName\"\n $Get-ADGroup $group -Properties Member |\n     Select-Object -Expand Member |\n     Get-ADUser -Property Name, DisplayName<\/code><\/pre>\n\n\n\n<p>Myself I ran it as such so I can do a compare with it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$group = \"GroupName\"\n$Group2 = Get-ADGroup $group -Properties Member |\n    Select-Object -Expand Member |\n    Get-ADUser -Property Name, DisplayName\n$Group2.count<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This is due to a limit with Get-ADGroupMember having a 5k limit, so this is telling you that the group you are trying to get members from has more than 5k Members. To get around this you can use this Myself I ran it as such so I can do&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/sysadminnightmare.com\/index.php\/2019\/02\/26\/get-adgroupmember-the-size-limit-for-this-request-was-exceeded\/\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","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":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[2,7,8],"tags":[],"class_list":["post-343","post","type-post","status-publish","format-standard","hentry","category-admin","category-powershell-2","category-tech-tips-101"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2bgeE-5x","_links":{"self":[{"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/posts\/343","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/comments?post=343"}],"version-history":[{"count":1,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/posts\/343\/revisions"}],"predecessor-version":[{"id":347,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/posts\/343\/revisions\/347"}],"wp:attachment":[{"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/media?parent=343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/categories?post=343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/tags?post=343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}