Bhargav's IT Playground

How to bypass confirmation prompts for Managed Folder Policy

Posted by in Exchange 2007, Exchange Management Shell, PowerShell

When you try to apply managed mailbox folder policy to a mailbox using set-mailbox, you would run a command like this:   set-mailbox -identity mailboxA -ManagedFolderMailboxPolicy "MFPolicy"   This would result in a confirmation prompt   Confirm Are you sure you want to perform this action? …   To avoid the prompt, you instead run command   set-mailbox -identity mailboxA -ManagedFolderMailboxPolicy "MFPolicy" –confirm:$false   However, you will get prompted again with the following:   Confirm When assigning a managed folder mailbox policy… To put it in perspective, the first confirmation…read more

0

How do I check Rollup Update version on Exchange 2007 server?

Posted by in Exchange 2007, Exchange Management Shell, PowerShell

This is one question that gets asked around many times! The article “Exchange Server 2007: Platforms, Editions and Versions” gives important information to identify the build numbers for each Rollup Updates, however, it is unclear where to look for this information. To solve that problem, I have come up with a script which looks at Exsetup.exe version and registry entries for each Rollup Update installed… Uh, what happened to the rest of this post? Well, since I wrote a better script that handles both Exchange 2010 and Exchange 2007, I…read more

1

Force Mount-Database

Posted by in Exchange 2007, Exchange Management Shell, Exchange Server, PowerShell

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 Except that this command had a major flaw. Can you guess?

0