2009-10-02

Can't uninstall Exchange 2010 RC, must remove public folder replicas first.

When trying to uninstall Exchange 2010 RC I ecounter this situation

Mailbox Role Prerequisites

Failed

Error:

Uninstall cannot continue. Database 'Public Folder Database 1166479595': The public folder database "Public Folder Database 1166479595" contains folder replicas. Before deleting the public folder database, remove the folders or move the replicas to another public folder database. For detailed instructions about how to remove a public folder database, see http://go.microsoft.com/fwlink/?linkid=81409&clcid=0x409.Recommended Action: http://go.microsoft.com/fwlink/?linkid=30939&l=en&v=ExBPA.4&id=b6e3b32a-8848-46cb-9567-72288ac15f60

When trying to use cmdlet to remove public folder replicas
Get-PublicFolder -Server "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited Remove-PublicFolder -Server -Recurse -ErrorAction:SilentlyContinue

I get the error:
"Multiple MAPI public folder trees were found".

What I did was opened ADSI Edit and went to
Configuration [.contoso.com]
CN=Configuration,DC=contoso,DC=com
CN=Services
CN=Microsoft Exchange


then in the details pane right clicked "CN=Public Folders" and changed parameter of "msExchPFTreeType" from "1" to "<not set>" (by choosing Edit and clicking Clear).

Then restarted Microsoft Exchange Information Store service and rerun cmdlets:

Get-PublicFolder -Server "\" -Recurse -ResultSize:Unlimited Remove-PublicFolder -Server -Recurse -ErrorAction:SilentlyContinue
and
Get-PublicFolder -Server "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited Remove-PublicFolder -Server -Recurse -ErrorAction:SilentlyContinue

Ttried to uninstall Exchange server again. This time prerequisites passed and I uninstalled successfully.

Links: http://msexchangeteam.com/archive/2007/07/09/445967.aspx

2009-10-01

How to custom schedule Windows Server Backup on Windows Server 2008 R2

I was kinda pissed that Windows Server 2008 R2 Backup GUI had so little scheduling options,
you have to choose a "Once a day" bakcup or "More than once a day".

So to customize a shcedule to suite ones needs, simply create a backup with "Once a day" option, then in the Administrative Tools open Task Scheduler and navigate to:
Task Scheduler Library/Microsoft/Windows/Backup
there you should find your backup job, right click it and select Properties.
Go to Triggers tab, select trigger Daily and press Edit. Here you have more options for scheduling. Good luck.