{"id":1644,"date":"2010-02-26T11:44:58","date_gmt":"2010-02-26T16:44:58","guid":{"rendered":"http:\/\/www.bhargavs.com\/index.php\/exchange-server\/exchange-2010-exchange-server\/2010\/02\/why-cant-i-remove-a-role-group\/"},"modified":"2010-02-26T11:44:58","modified_gmt":"2010-02-26T16:44:58","slug":"why-cant-i-remove-a-role-group","status":"publish","type":"post","link":"https:\/\/bhargavs.com\/index.php\/2010\/02\/26\/why-cant-i-remove-a-role-group\/","title":{"rendered":"Why can\u2019t I remove a Role Group?"},"content":{"rendered":"<p>When you try to remove a role group using Remove-RoleGroup cmdlet and you get an error \u201c<font color=\"#ff0000\">You don\u2019t have sufficient permissions. This operation can only be performed by a manager of the group.\u201d<\/font> You have verified that you are member of Organization Management group and should have full permissions to all cmdlets. And you wonder why is the Remove-RoleGroup not working for you!<\/p>\n<p>Well, let\u2019s look at the the error. As it says\u201d\u2026<font color=\"#ff0000\">This operation can only be performed by a manager of the group<\/font>\u2026\u201d. Let\u2019s look at the Role Group:<\/p>\n<pre lang=\"PowerShell\" escaped=\"true\">\nGet-RoleGroup \u201cRole Group\u201d | fl ManagedBy\n\n\nManaged By: {Domain\/OU\/User}<\/pre>\n<p>When you look at the output, you will notice that your admin user is not one of the managers of the role group. By default, Remove-RoleGroup will not allow you to remove the role group if you are not a manager of the group. If the group does not have any assigned managers, you will be able to remove the group without any issues.<\/p>\n<p>So how do you remove a role group you are not a manger of and have sufficient permissions (are member of Organization Management group)?<\/p>\n<p>You need to use \u201cBypassSecurityGroupManagerCheck\u201d switch:<\/p>\n<pre lang=\"PowerShell\" escaped=\"true\">\nRemove-RoleGroup \u201cRole Group\u201d \u2013BypassSecurityGroupmanagerCheck \u2013Confirm:$false<\/pre>\n<p>If you use BypassSecurityGroupManagerCheck switch, you must be a member of Organization Management role group or be assigned the Role Management role. Details on <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/dd638141.aspx\">TechNet<\/a>.<\/p>\n<p>Neat isn\u2019t it?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you try to remove a role group using Remove-RoleGroup cmdlet and you get an error \u201cYou don\u2019t have sufficient permissions. This operation can only be performed by a manager [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pgc_sgb_lightbox_settings":"","_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},"jetpack_post_was_ever_published":false},"categories":[52],"tags":[95,220],"class_list":["post-1644","post","type-post","status-publish","format-standard","hentry","category-exchange-2010","tag-bypasssecuritymanagercheck","tag-remove-rolegroup"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Why can\u2019t I remove a Role Group? - Bhargav&#039;s IT Playground<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/bhargavs.com\/index.php\/2010\/02\/26\/why-cant-i-remove-a-role-group\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Why can\u2019t I remove a Role Group? - Bhargav&#039;s IT Playground\" \/>\n<meta property=\"og:description\" content=\"When you try to remove a role group using Remove-RoleGroup cmdlet and you get an error \u201cYou don\u2019t have sufficient permissions. This operation can only be performed by a manager [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bhargavs.com\/index.php\/2010\/02\/26\/why-cant-i-remove-a-role-group\/\" \/>\n<meta property=\"og:site_name\" content=\"Bhargav&#039;s IT Playground\" \/>\n<meta property=\"article:published_time\" content=\"2010-02-26T16:44:58+00:00\" \/>\n<meta name=\"author\" content=\"Bhargav\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bhargav\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2010\\\/02\\\/26\\\/why-cant-i-remove-a-role-group\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2010\\\/02\\\/26\\\/why-cant-i-remove-a-role-group\\\/\"},\"author\":{\"name\":\"Bhargav\",\"@id\":\"https:\\\/\\\/bhargavs.com\\\/#\\\/schema\\\/person\\\/28f6d8c9b29f3a879483d65fc2ab5e26\"},\"headline\":\"Why can\u2019t I remove a Role Group?\",\"datePublished\":\"2010-02-26T16:44:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2010\\\/02\\\/26\\\/why-cant-i-remove-a-role-group\\\/\"},\"wordCount\":225,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/bhargavs.com\\\/#\\\/schema\\\/person\\\/28f6d8c9b29f3a879483d65fc2ab5e26\"},\"keywords\":[\"BypassSecurityManagerCheck\",\"Remove-RoleGroup\"],\"articleSection\":[\"Exchange 2010\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2010\\\/02\\\/26\\\/why-cant-i-remove-a-role-group\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2010\\\/02\\\/26\\\/why-cant-i-remove-a-role-group\\\/\",\"url\":\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2010\\\/02\\\/26\\\/why-cant-i-remove-a-role-group\\\/\",\"name\":\"Why can\u2019t I remove a Role Group? - Bhargav&#039;s IT Playground\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bhargavs.com\\\/#website\"},\"datePublished\":\"2010-02-26T16:44:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2010\\\/02\\\/26\\\/why-cant-i-remove-a-role-group\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2010\\\/02\\\/26\\\/why-cant-i-remove-a-role-group\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2010\\\/02\\\/26\\\/why-cant-i-remove-a-role-group\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/bhargavs.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Why can\u2019t I remove a Role Group?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/bhargavs.com\\\/#website\",\"url\":\"https:\\\/\\\/bhargavs.com\\\/\",\"name\":\"Bhargav's IT Playground\",\"description\":\"Passion for Technology. Power of Collaboration.\",\"publisher\":{\"@id\":\"https:\\\/\\\/bhargavs.com\\\/#\\\/schema\\\/person\\\/28f6d8c9b29f3a879483d65fc2ab5e26\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/bhargavs.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/bhargavs.com\\\/#\\\/schema\\\/person\\\/28f6d8c9b29f3a879483d65fc2ab5e26\",\"name\":\"Bhargav\",\"logo\":{\"@id\":\"https:\\\/\\\/bhargavs.com\\\/#\\\/schema\\\/person\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/bhargavs.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Why can\u2019t I remove a Role Group? - Bhargav&#039;s IT Playground","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/bhargavs.com\/index.php\/2010\/02\/26\/why-cant-i-remove-a-role-group\/","og_locale":"en_US","og_type":"article","og_title":"Why can\u2019t I remove a Role Group? - Bhargav&#039;s IT Playground","og_description":"When you try to remove a role group using Remove-RoleGroup cmdlet and you get an error \u201cYou don\u2019t have sufficient permissions. This operation can only be performed by a manager [&hellip;]","og_url":"https:\/\/bhargavs.com\/index.php\/2010\/02\/26\/why-cant-i-remove-a-role-group\/","og_site_name":"Bhargav&#039;s IT Playground","article_published_time":"2010-02-26T16:44:58+00:00","author":"Bhargav","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Bhargav","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/bhargavs.com\/index.php\/2010\/02\/26\/why-cant-i-remove-a-role-group\/#article","isPartOf":{"@id":"https:\/\/bhargavs.com\/index.php\/2010\/02\/26\/why-cant-i-remove-a-role-group\/"},"author":{"name":"Bhargav","@id":"https:\/\/bhargavs.com\/#\/schema\/person\/28f6d8c9b29f3a879483d65fc2ab5e26"},"headline":"Why can\u2019t I remove a Role Group?","datePublished":"2010-02-26T16:44:58+00:00","mainEntityOfPage":{"@id":"https:\/\/bhargavs.com\/index.php\/2010\/02\/26\/why-cant-i-remove-a-role-group\/"},"wordCount":225,"commentCount":0,"publisher":{"@id":"https:\/\/bhargavs.com\/#\/schema\/person\/28f6d8c9b29f3a879483d65fc2ab5e26"},"keywords":["BypassSecurityManagerCheck","Remove-RoleGroup"],"articleSection":["Exchange 2010"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/bhargavs.com\/index.php\/2010\/02\/26\/why-cant-i-remove-a-role-group\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/bhargavs.com\/index.php\/2010\/02\/26\/why-cant-i-remove-a-role-group\/","url":"https:\/\/bhargavs.com\/index.php\/2010\/02\/26\/why-cant-i-remove-a-role-group\/","name":"Why can\u2019t I remove a Role Group? - Bhargav&#039;s IT Playground","isPartOf":{"@id":"https:\/\/bhargavs.com\/#website"},"datePublished":"2010-02-26T16:44:58+00:00","breadcrumb":{"@id":"https:\/\/bhargavs.com\/index.php\/2010\/02\/26\/why-cant-i-remove-a-role-group\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/bhargavs.com\/index.php\/2010\/02\/26\/why-cant-i-remove-a-role-group\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/bhargavs.com\/index.php\/2010\/02\/26\/why-cant-i-remove-a-role-group\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/bhargavs.com\/"},{"@type":"ListItem","position":2,"name":"Why can\u2019t I remove a Role Group?"}]},{"@type":"WebSite","@id":"https:\/\/bhargavs.com\/#website","url":"https:\/\/bhargavs.com\/","name":"Bhargav's IT Playground","description":"Passion for Technology. Power of Collaboration.","publisher":{"@id":"https:\/\/bhargavs.com\/#\/schema\/person\/28f6d8c9b29f3a879483d65fc2ab5e26"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/bhargavs.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/bhargavs.com\/#\/schema\/person\/28f6d8c9b29f3a879483d65fc2ab5e26","name":"Bhargav","logo":{"@id":"https:\/\/bhargavs.com\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/bhargavs.com"]}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":485,"url":"https:\/\/bhargavs.com\/index.php\/2012\/11\/26\/createcluster-failed-with-0x5-adding-members-to-dag-in-exchange-2013\/","url_meta":{"origin":1644,"position":0},"title":"CreateCluster() failed with 0x5 adding members to DAG in Exchange 2013","author":"Bhargav","date":"November 26, 2012","format":false,"excerpt":"UPDATE: While TechNet article \u201cCreate a Database Availability Group\u201d only mentions Windows 2008 R2 domain controllers, I must thank Scott Schnoll for the following clarification: \"Creating an Exchange 2013 DAG with Mailbox servers on Windows Server 2012? You must pre-stage CNO before adding first server!\". TechNet documentation will be updated\u2026","rel":"","context":"In &quot;Exchange 2013&quot;","block_context":{"text":"Exchange 2013","link":"https:\/\/bhargavs.com\/index.php\/category\/microsoft\/exchange-server\/exchange-2013\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":49,"url":"https:\/\/bhargavs.com\/index.php\/2009\/01\/27\/error-c10308a2-when-remotely-adding-e-mail-address-to-users-2\/","url_meta":{"origin":1644,"position":1},"title":"Error c10308a2 when remotely adding e-mail address to users","author":"Bhargav","date":"January 27, 2009","format":false,"excerpt":"We encountered an error today at my client site. When an administrator tried to add an e-mail address to mail-enabled user from their workstation using Active Directory Users and Computers, the encountered an error c10308a2. The error is documented in KB article 905809. My client was confused after looking at\u2026","rel":"","context":"In &quot;Exchange 2003&quot;","block_context":{"text":"Exchange 2003","link":"https:\/\/bhargavs.com\/index.php\/category\/microsoft\/exchange-server\/exchange-2003\/"},"img":{"alt_text":"error c10308a2","src":"https:\/\/i0.wp.com\/www.bhargavs.com\/wp-content\/uploads\/2008\/12\/clip-image002-thumb1.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1688,"url":"https:\/\/bhargavs.com\/index.php\/2013\/03\/13\/error-0x800f0906-adding-gui-features-on-windows-server-2012-core\/","url_meta":{"origin":1644,"position":2},"title":"Error: 0x800f0906 Adding GUI features on Windows Server 2012 Core","author":"Bhargav","date":"March 13, 2013","format":false,"excerpt":"I have always preferred to have least amount of overhead possible when running Server workloads. For the same reason my Hyper-V lab infrastructure is configured to run Windows Server 2012 Core. There are times however, when you may want to have GUI. So I set out to configure one of\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/bhargavs.com\/index.php\/category\/microsoft\/powershell\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1643,"url":"https:\/\/bhargavs.com\/index.php\/2010\/02\/19\/powershell-variables-and-scopes\/","url_meta":{"origin":1644,"position":3},"title":"PowerShell Variables and scopes","author":"Bhargav","date":"February 19, 2010","format":false,"excerpt":"I was helping someone with a profile script. The script is supposed to connect to a remote Exchange 2010 server using PowerShell v2.0 when it is launched. The script had a function which is called upon when profile is loaded. The function looked like the following: function connect-remotely() { if\u2026","rel":"","context":"In &quot;Exchange 2010&quot;","block_context":{"text":"Exchange 2010","link":"https:\/\/bhargavs.com\/index.php\/category\/microsoft\/exchange-server\/exchange-2010\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":863,"url":"https:\/\/bhargavs.com\/index.php\/2014\/06\/12\/step-by-step-configure-dhcp-failover-with-2012-r2-part-1\/","url_meta":{"origin":1644,"position":4},"title":"Step-by-Step Configure DHCP Failover with 2012 R2 \u2013 Part 1","author":"Bhargav","date":"June 12, 2014","format":false,"excerpt":"Many times in my past years of IT, I wanted to have DHCP load balancing and high availability. It was possible by creating non-overlapping scopes etc. but that was all manual labor of making sure you don't have overlap and all the headache that comes with careful planning and monitoring.\u2026","rel":"","context":"In &quot;Windows Server&quot;","block_context":{"text":"Windows Server","link":"https:\/\/bhargavs.com\/index.php\/category\/microsoft\/windows\/windows-server\/"},"img":{"alt_text":"image","src":"https:\/\/i0.wp.com\/bhargavs.com\/wp-content\/uploads\/2014\/06\/image_thumb.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1694,"url":"https:\/\/bhargavs.com\/index.php\/2013\/05\/10\/sql-server-2012-install-error-enabling-windows-feature-netfx3\/","url_meta":{"origin":1644,"position":5},"title":"SQL Server 2012 install error enabling Windows Feature NetFx3","author":"Bhargav","date":"May 10, 2013","format":false,"excerpt":"While creating one of many Lync scenario labs, I chose to install SQL Server 2012 instead of my usual install of SQL 2008 on Windows Server 2012. Going about my happy routine after clicking install, I expected install to complete when I returned a few hours later. Murphy never fails\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/bhargavs.com\/index.php\/category\/microsoft\/windows\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_shortlink":"https:\/\/wp.me\/pkROc-qw","_links":{"self":[{"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/posts\/1644","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/comments?post=1644"}],"version-history":[{"count":0,"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/posts\/1644\/revisions"}],"wp:attachment":[{"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/media?parent=1644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/categories?post=1644"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/tags?post=1644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}