Category Archives: Exchange

Error 1603 installing Exchange 2010 RollUp’s

Getting error installing Rollup 5 for Exchange 2010 Sp1. Error 1603. According to msi log file it is ServiceControl.ps1 that is causing the error. Solution was to set execution policy to RemoteSigned and also run the “ServiceControl.ps1 AfterPatch” script from the Exchange 2010 Bin folder . Also remember to start Powershell as administrator.

set-executionpolicy -executionpolicy RemoteSigned

.\servicecontrol.ps1 AfterPatch

After this the install turned out OK.

Test network with filecopy and Powershell

Needed a way to test and time filecopy between servers using powershell. This is what I came up with. This example will use copy to server and time the progress. I used a file of 1.8 Gb.

foreach($server in $Servers){
if (!(test-path \\$server\share\temp)) {
    new-item -path \\$server\share -name temp -ItemType Directory
$start = get-date
copy-item C:\temp\ -Destination \\$server\share\temp\
$end = get-date
Remove-Item \\$server\share\temp\
[TimeSpan]$Totaltid = new-timespan $start $end
write-host $($server) – $($Totaltid.seconds)s

List activesync device statistics

Some times it is usefull to get a list of when did devices last sync.

get-mailbox | ForEach-Object { Get-ActiveSyncDeviceStatistics -Mailbox $_.Identity;}| Out-File -filepath c:\powershell\activesync.txt

Or if you want to list spesific devices:

get-mailbox | ForEach-Object { Get-ActiveSyncDeviceStatistics -Mailbox $_.Identity;}|where {$_.devicefriendlyname -eq “Touch_DUal”}| Out-File -filepath c:\powershell\activesync.txt


SMTP unreliable links

Had a problem with large emails between exchange 2010 servers. Got the smtp error 421.4.4.2 . I solved this by increasing the MaxProtocolError and ConnectionTimeout on the receiving connector. Use the powershell set-receiveconnector . In this senario we are talking about a 1mb sat link.