Archive

Archive for January, 2011

Event Log Level for Public Folders

January 21, 2011 Leave a comment

Quick one to change the event log level for public folder logging;

Get-EventLogLevel | where {$_.identity -like "MSExchangeIS\9001 Public\*"} | Set-EventLogLevel -Level 5

Nothing new here, just a reminder for me 😀

Problems installing Exchange SP1

January 20, 2011 5 comments

Had a issue recently where installing Exchange as SP1 gave me the following failure on the Mailbox Role;

Summary: 3 item(s). 1 succeeded, 1 failed.
Elapsed time: 00:00:04
Preparing Setup
Completed
Elapsed Time: 00:00:00
Mailbox Role
Failed
Error:
The following error was generated when "$error.Clear();
$name = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]: :DiscoveryMailboxUniqueName;
$dispname = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]: :DiscoveryMailboxDisplayName;
$dismbx = get-mailbox -Filter {name -eq $name} -IgnoreDefaultScope -resultSize 1;
if( $dismbx -ne $null)
{
$srvname = $dismbx.ServerName;
if( $dismbx.Database -ne $null -and $RoleFqdnOrName -like "$srvname.*" )
{
Write-ExchangeSetupLog -info "Setup DiscoverySearchMailbox Permission.";
$mountedMdb = get-mailboxdatabase $dismbx.Database -status | where { $_.Mounted -eq $true };
if( $mountedMdb -eq $null )
{
Write-ExchangeSetupLog -info "Mounting database before stamp DiscoverySearchMailbox Permission…";
mount-database $dismbx.Database;
}
$mountedMdb = get-mailboxdatabase $dismbx.Database -status | where { $_.Mounted -eq $true };
if( $mountedMdb -ne $null )
{
$dmRoleGroupGuid = [Microsoft.Exchange.Data.Directory.Management.RoleGroup]:: DiscoveryManagementWkGuid;
$dmRoleGroup = Get-RoleGroup -Identity $dmRoleGroupGuid -DomainController $RoleDomainController -ErrorAction:SilentlyContinue;
if( $dmRoleGroup -ne $null )
{
Add-MailboxPermission $dismbx -User $dmRoleGroup.Identity -AccessRights FullAccess -DomainController $RoleDomainController -WarningAction SilentlyContinue;
}
}
}
}
" was run: "Couldn’t mount the database that you specified. Specified database: Mailbox Database 0688175257; Error code: An Active Manager operation failed with a transient error. Please retry the operation. Error: Database action failed with transient error. Error: A transient error occurred during a database operation. Error: An error occurred while preparing to mount database ‘Mailbox Database 0688175257’. Error: Could not find a part of the path ‘E:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database 0688175257’. [Database: Mailbox Database 0688175257, Server: ELKINS.COMPANYAD.dom].".
Couldn’t mount the database that you specified. Specified database: Mailbox Database 0688175257; Error code: An Active Manager operation failed with a transient error. Please retry the operation. Error: Database action failed with transient error. Error: A transient error occurred during a database operation. Error: An error occurred while preparing to mount database ‘Mailbox Database 0688175257’. Error: Could not find a part of the path ‘E:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database 0688175257’. [Database: Mailbox Database 0688175257, Server: ELKINS.COMPANYAD.dom].
An Active Manager operation failed with a transient error. Please retry the operation. Error: Database action failed with transient error. Error: A transient error occurred during a database operation. Error: An error occurred while preparing to mount database ‘Mailbox Database 0688175257’. Error: Could not find a part of the path ‘E:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database 0688175257’. [Database: Mailbox Database 0688175257, Server: ELKINS.COMPANYAD.dom]
An Active Manager operation failed with a transient error. Please retry the operation. Error: An error occurred while preparing to mount database ‘Mailbox Database 0688175257’. Error: Could not find a part of the path ‘E:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database 0688175257’. [Server: Elkins.COMPANYAD.dom]
An error occurred while preparing to mount database ‘Mailbox Database 0688175257’. Error: Could not find a part of the path ‘E:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database 0688175257’.
Could not find a part of the path ‘E:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database 0688175257’.
Click here for help… http://technet.microsoft.com/en-US/library/ms.exch.err.default(EXCHG.141).aspx?v=14.1.218.11&e=ms.exch.err.Ex88D115&l=0&cl=cp
Elapsed Time: 00:00:03
Finalizing Setup
Cancelled

The problem was that it couldn’t create the “’E:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database 0688175257” folder. I re-created it by hand, and re-run the Mailbox role deployment and it all worked fine!

Changing the Exchange Alias to be the sAMAccountName – PowerShell Script

January 20, 2011 Leave a comment

Run the following (after testing)

$list=get-mailbox -ResultSize Unlimited

foreach($item in $list)

{

$user=get-user $item

$sam=$user.SAMAccountName

Set-Mailbox $item -alias “$sam” -ea silentlycontinue

}

Having problems when migrating into 2010 SP1?

January 20, 2011 6 comments

Just a quick one,

I work primarily as a migration consultant – so most of my “day job” is to migrate people from one technology to another.
A big bulk of this is GroupWise (or Notes) to Exchange migrations – typically using migration tools such as Quest Groupwise Migrator for Exchange.

Taking the GroupWise to Exchange as an example – you can be quite often pulling email from 7/8 different physical servers at once – so to aid in this I personally would create multiple migration workstations which then generates (literally) hundreds of connections into Exchange.

SP1 introduces some CAS throttling – this may have been in place pre-sp1 but didnt seem to have any effect.

However in SP1 you may find yourself unable to connect to the CAS/MAPI service if you already have a lot (>100) connections.

Error logged will be;

Process Microsoft.Exchange.RpcClientAccess.Service.exe (PID=2132). User ‘Sid~NTNET1\USERNAME~RCA~false’ has gone over budget ‘235’ times for component ‘RCA’ within a one minute period. Info: ‘Policy:DefaultThrottlingPolicy_c05f158f-9c0b-4289-ae1b-4717eee77548, Parts:CAS:234;’. Threshold value: ‘100’.

To fix, remove the throttling via the following PS script;

$default = Get-ThrottlingPolicy | where-object {$_.IsDefault -eq $true}
$default | set-throttlingpolicy -RCAMaxConcurrency $null
$default | set-throttlingpolicy -RCAMaxConcurrency $null -RCAPercentTimeInAD $null -RCAPercentTimeInCAS $null -RCAPercentTimeInMailboxRPC $null