{"id":166,"date":"2009-09-16T14:11:43","date_gmt":"2009-09-16T19:11:43","guid":{"rendered":"http:\/\/www.bhargavs.com\/index.php\/exchange-server\/exchange-2007-exchange-server\/2009\/09\/bypass-confirmation-prompts-managed-folder-policy\/"},"modified":"2009-09-16T14:11:43","modified_gmt":"2009-09-16T19:11:43","slug":"bypass-confirmation-prompts-managed-folder-policy","status":"publish","type":"post","link":"https:\/\/bhargavs.com\/index.php\/2009\/09\/16\/bypass-confirmation-prompts-managed-folder-policy\/","title":{"rendered":"How to bypass confirmation prompts for Managed Folder Policy"},"content":{"rendered":"<p>When you try to apply managed mailbox folder policy to a mailbox using set-mailbox, you would run a command like this:<\/p>\n<p>&#160;<\/p>\n<\/p>\n<pre lang=\"PowerShell\" escaped=\"true\">set-mailbox -identity mailboxA -ManagedFolderMailboxPolicy &quot;MFPolicy&quot;<\/pre>\n<\/p>\n<p>&#160;<\/p>\n<p>This would result in a confirmation prompt<\/p>\n<p>&#160;<\/p>\n<\/p>\n<pre lang=\"PowerShell\" escaped=\"true\">Confirm\n  <br \/>Are you sure you want to perform this action?\n  <br \/>...\n  <\/pre>\n<\/p>\n<p>&#160;<\/p>\n<p>To avoid the prompt, you instead run command<\/p>\n<p>&#160;<\/p>\n<\/p>\n<pre lang=\"PowerShell\" escaped=\"true\">set-mailbox -identity mailboxA -ManagedFolderMailboxPolicy &quot;MFPolicy&quot; \u2013confirm:$false<\/pre>\n<\/p>\n<p>&#160;<\/p>\n<p>However, you will get prompted again with the following:<\/p>\n<p>&#160;<\/p>\n<\/p>\n<pre lang=\"PowerShell\" escaped=\"true\">Confirm\n  <br \/>When assigning a managed folder mailbox policy\u2026\n  <\/pre>\n<p>To put it in perspective, the first confirmation prompt is for set-mailbox operation. The second confirmation prompt is for applying Managed Folder Policy. Whenever Managed Folder Policy is applied, it impacts legacy Outlook client functionality. Which explains why additional confirmation is needed.<\/p>\n<p>So, how can you tell the shell not to ask you for confirmation as you know what you are doing or you don\u2019t care if it breaks \ud83d\ude09 ?<\/p>\n<p>Type this:<\/p>\n<\/p>\n<pre lang=\"PowerShell\" escaped=\"true\">set-mailbox -identity mailboxA -ManagedFolderMailboxPolicy &quot;MFPolicy&quot; -ManagedFolderMailboxPolicyAllowed -Confirm:$false<\/pre>\n<\/p>\n<p>you can now tell the computer who is the boss. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you try to apply managed mailbox folder policy to a mailbox using set-mailbox, you would run a command like this: &#160; set-mailbox -identity mailboxA -ManagedFolderMailboxPolicy &quot;MFPolicy&quot; &#160; This would [&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_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":[51,56,19],"tags":[121,126],"class_list":["post-166","post","type-post","status-publish","format-standard","hentry","category-exchange-2007","category-exchange-management-shell","category-powershell","tag-exchange-2007","tag-exchange-management-shell"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to bypass confirmation prompts for Managed Folder Policy - 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\/2009\/09\/16\/bypass-confirmation-prompts-managed-folder-policy\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to bypass confirmation prompts for Managed Folder Policy - Bhargav&#039;s IT Playground\" \/>\n<meta property=\"og:description\" content=\"When you try to apply managed mailbox folder policy to a mailbox using set-mailbox, you would run a command like this: &#160; set-mailbox -identity mailboxA -ManagedFolderMailboxPolicy &quot;MFPolicy&quot; &#160; This would [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bhargavs.com\/index.php\/2009\/09\/16\/bypass-confirmation-prompts-managed-folder-policy\/\" \/>\n<meta property=\"og:site_name\" content=\"Bhargav&#039;s IT Playground\" \/>\n<meta property=\"article:published_time\" content=\"2009-09-16T19:11:43+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\\\/2009\\\/09\\\/16\\\/bypass-confirmation-prompts-managed-folder-policy\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2009\\\/09\\\/16\\\/bypass-confirmation-prompts-managed-folder-policy\\\/\"},\"author\":{\"name\":\"Bhargav\",\"@id\":\"https:\\\/\\\/bhargavs.com\\\/#\\\/schema\\\/person\\\/28f6d8c9b29f3a879483d65fc2ab5e26\"},\"headline\":\"How to bypass confirmation prompts for Managed Folder Policy\",\"datePublished\":\"2009-09-16T19:11:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2009\\\/09\\\/16\\\/bypass-confirmation-prompts-managed-folder-policy\\\/\"},\"wordCount\":136,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/bhargavs.com\\\/#\\\/schema\\\/person\\\/28f6d8c9b29f3a879483d65fc2ab5e26\"},\"keywords\":[\"Exchange 2007\",\"Exchange Management Shell\"],\"articleSection\":[\"Exchange 2007\",\"Exchange Management Shell\",\"PowerShell\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2009\\\/09\\\/16\\\/bypass-confirmation-prompts-managed-folder-policy\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2009\\\/09\\\/16\\\/bypass-confirmation-prompts-managed-folder-policy\\\/\",\"url\":\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2009\\\/09\\\/16\\\/bypass-confirmation-prompts-managed-folder-policy\\\/\",\"name\":\"How to bypass confirmation prompts for Managed Folder Policy - Bhargav&#039;s IT Playground\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bhargavs.com\\\/#website\"},\"datePublished\":\"2009-09-16T19:11:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2009\\\/09\\\/16\\\/bypass-confirmation-prompts-managed-folder-policy\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2009\\\/09\\\/16\\\/bypass-confirmation-prompts-managed-folder-policy\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2009\\\/09\\\/16\\\/bypass-confirmation-prompts-managed-folder-policy\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/bhargavs.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to bypass confirmation prompts for Managed Folder Policy\"}]},{\"@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":"How to bypass confirmation prompts for Managed Folder Policy - 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\/2009\/09\/16\/bypass-confirmation-prompts-managed-folder-policy\/","og_locale":"en_US","og_type":"article","og_title":"How to bypass confirmation prompts for Managed Folder Policy - Bhargav&#039;s IT Playground","og_description":"When you try to apply managed mailbox folder policy to a mailbox using set-mailbox, you would run a command like this: &#160; set-mailbox -identity mailboxA -ManagedFolderMailboxPolicy &quot;MFPolicy&quot; &#160; This would [&hellip;]","og_url":"https:\/\/bhargavs.com\/index.php\/2009\/09\/16\/bypass-confirmation-prompts-managed-folder-policy\/","og_site_name":"Bhargav&#039;s IT Playground","article_published_time":"2009-09-16T19:11:43+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\/2009\/09\/16\/bypass-confirmation-prompts-managed-folder-policy\/#article","isPartOf":{"@id":"https:\/\/bhargavs.com\/index.php\/2009\/09\/16\/bypass-confirmation-prompts-managed-folder-policy\/"},"author":{"name":"Bhargav","@id":"https:\/\/bhargavs.com\/#\/schema\/person\/28f6d8c9b29f3a879483d65fc2ab5e26"},"headline":"How to bypass confirmation prompts for Managed Folder Policy","datePublished":"2009-09-16T19:11:43+00:00","mainEntityOfPage":{"@id":"https:\/\/bhargavs.com\/index.php\/2009\/09\/16\/bypass-confirmation-prompts-managed-folder-policy\/"},"wordCount":136,"commentCount":0,"publisher":{"@id":"https:\/\/bhargavs.com\/#\/schema\/person\/28f6d8c9b29f3a879483d65fc2ab5e26"},"keywords":["Exchange 2007","Exchange Management Shell"],"articleSection":["Exchange 2007","Exchange Management Shell","PowerShell"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/bhargavs.com\/index.php\/2009\/09\/16\/bypass-confirmation-prompts-managed-folder-policy\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/bhargavs.com\/index.php\/2009\/09\/16\/bypass-confirmation-prompts-managed-folder-policy\/","url":"https:\/\/bhargavs.com\/index.php\/2009\/09\/16\/bypass-confirmation-prompts-managed-folder-policy\/","name":"How to bypass confirmation prompts for Managed Folder Policy - Bhargav&#039;s IT Playground","isPartOf":{"@id":"https:\/\/bhargavs.com\/#website"},"datePublished":"2009-09-16T19:11:43+00:00","breadcrumb":{"@id":"https:\/\/bhargavs.com\/index.php\/2009\/09\/16\/bypass-confirmation-prompts-managed-folder-policy\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/bhargavs.com\/index.php\/2009\/09\/16\/bypass-confirmation-prompts-managed-folder-policy\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/bhargavs.com\/index.php\/2009\/09\/16\/bypass-confirmation-prompts-managed-folder-policy\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/bhargavs.com\/"},{"@type":"ListItem","position":2,"name":"How to bypass confirmation prompts for Managed Folder Policy"}]},{"@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":81,"url":"https:\/\/bhargavs.com\/index.php\/2009\/05\/28\/exchange-2007-powershell-force-mount-database\/","url_meta":{"origin":166,"position":0},"title":"Force Mount-Database","author":"Bhargav","date":"May 28, 2009","format":false,"excerpt":"I wanted to mount All mailbox databases from all servers that had them. This was a scenario where I had servers recovered with no DB files. I did not need them, I was going to start with empty databases. The command was going to be simple: Get-MailboxDatabase | Mount-Database -Confirm:$false\u2026","rel":"","context":"In &quot;Exchange 2007&quot;","block_context":{"text":"Exchange 2007","link":"https:\/\/bhargavs.com\/index.php\/category\/microsoft\/exchange-server\/exchange-2007\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1680,"url":"https:\/\/bhargavs.com\/index.php\/2012\/06\/08\/if-retention-tags-werent-confusing\/","url_meta":{"origin":166,"position":1},"title":"If Retention Tags weren\u2019t confusing\u2026","author":"Bhargav","date":"June 8, 2012","format":false,"excerpt":"UPDATE: Please read updated guidance due to changes introduced in SP2 RU4 here: http:\/\/blogs.technet.com\/b\/exchange\/archive\/2012\/08\/14\/calendar-and-tasks-retention-tag-support-in-exchange-2010-sp2-ru4.aspx. It specifically addresses Calendar items and tasks. I wouldn\u2019t be talking about it today! When the topic came up with my colleague, it quickly became a confusing discussion of what\u2019s what, what works, what doesn\u2019t and\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":1638,"url":"https:\/\/bhargavs.com\/index.php\/2009\/11\/09\/exchange-2010-new-and-improved-features\/","url_meta":{"origin":166,"position":2},"title":"Exchange 2010 New and Improved Features","author":"Bhargav","date":"November 9, 2009","format":false,"excerpt":"Exchange Server 2010 comes with host of new features and improved functionality that makes the product even better. In this post, I am going to list new and improved features. In interest of keeping the post manageable, I have included lot more details in attached word file. Attached Excel file\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":1625,"url":"https:\/\/bhargavs.com\/index.php\/2009\/05\/20\/benefits-outlook-2007-exchange-2007\/","url_meta":{"origin":166,"position":3},"title":"Benefits of using Outlook 2007 with Exchange 2007","author":"Bhargav","date":"May 20, 2009","format":false,"excerpt":"I get asked many times why should one switch to Outlook 2007 from Outlook 2003 when using it with Exchange 2007 platform. I understand the reason as besides the obvious \u201cit\u2019s the latest and greatest\u201d it\u2019s not enough reason for an Enterprise environment to upgrade. Considering effort involved in upgrade,\u2026","rel":"","context":"In &quot;Exchange Server&quot;","block_context":{"text":"Exchange Server","link":"https:\/\/bhargavs.com\/index.php\/category\/microsoft\/exchange-server\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":235,"url":"https:\/\/bhargavs.com\/index.php\/2010\/01\/21\/what-does-new-exchangecertificate-confirm-do\/","url_meta":{"origin":166,"position":4},"title":"What does New-ExchangeCertificate \u2013confirm do?","author":"Bhargav","date":"January 21, 2010","format":false,"excerpt":"Depends who is asking. Let\u2019s assume a scenario where you are trying to create a new self-signed certificate on Exchange 2007 using a script. You run the command \u201cNew-Exchange Certificate \u2013 Services \u201cIMAP, POP3, IIS, SMTP\u201d \u2013Confirm:$false\u201d. The script stops at a prompt when it tries to confirm overwrite of\u2026","rel":"","context":"In &quot;Exchange 2007&quot;","block_context":{"text":"Exchange 2007","link":"https:\/\/bhargavs.com\/index.php\/category\/microsoft\/exchange-server\/exchange-2007\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"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":166,"position":5},"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":[]}],"jetpack_shortlink":"https:\/\/wp.me\/pkROc-2G","_links":{"self":[{"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/posts\/166","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=166"}],"version-history":[{"count":0,"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/posts\/166\/revisions"}],"wp:attachment":[{"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/media?parent=166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/categories?post=166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/tags?post=166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}