diff --git a/CatchAllAgent.sln b/CatchAllAgent.sln index 00c9d52..01fdc20 100644 --- a/CatchAllAgent.sln +++ b/CatchAllAgent.sln @@ -15,17 +15,25 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug Ex2010 SP3|Any CPU = Debug Ex2010 SP3|Any CPU + Debug Ex2013 CU2|Any CPU = Debug Ex2013 CU2|Any CPU + Debug Ex2013|Any CPU = Debug Ex2013|Any CPU Release Ex2007 SP3|Any CPU = Release Ex2007 SP3|Any CPU + Release Ex2010|Any CPU = Release Ex2010|Any CPU Release Ex2010 SP1|Any CPU = Release Ex2010 SP1|Any CPU Release Ex2010 SP2|Any CPU = Release Ex2010 SP2|Any CPU Release Ex2010 SP3|Any CPU = Release Ex2010 SP3|Any CPU - Release Ex2010|Any CPU = Release Ex2010|Any CPU - Debug Ex2013|Any CPU = Debug Ex2013|Any CPU Release Ex2013|Any CPU = Release Ex2013|Any CPU + Release Ex2013 CU1|Any CPU = Release Ex2013 CU1|Any CPU + Release Ex2013 CU2|Any CPU = Release Ex2013 CU2|Any CPU + Release Ex2013 CU3|Any CPU = Release Ex2013 CU3|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Debug Ex2010 SP3|Any CPU.ActiveCfg = Debug Ex2010 SP3|Any CPU {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Debug Ex2010 SP3|Any CPU.Build.0 = Debug Ex2010 SP3|Any CPU + {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Debug Ex2013 CU2|Any CPU.ActiveCfg = Debug Ex2013 CU2|Any CPU + {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Debug Ex2013 CU2|Any CPU.Build.0 = Debug Ex2013 CU2|Any CPU + {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Debug Ex2013|Any CPU.ActiveCfg = Debug Ex2013|Any CPU + {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Debug Ex2013|Any CPU.Build.0 = Debug Ex2013|Any CPU {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Release Ex2007 SP3|Any CPU.ActiveCfg = Release Ex2007 SP3|Any CPU {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Release Ex2007 SP3|Any CPU.Build.0 = Release Ex2007 SP3|Any CPU {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Release Ex2010 SP1|Any CPU.ActiveCfg = Release Ex2010 SP1|Any CPU @@ -36,10 +44,14 @@ Global {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Release Ex2010 SP3|Any CPU.Build.0 = Release Ex2010 SP3|Any CPU {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Release Ex2010|Any CPU.ActiveCfg = Release Ex2010|Any CPU {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Release Ex2010|Any CPU.Build.0 = Release Ex2010|Any CPU - {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Debug Ex2013|Any CPU.ActiveCfg = Debug Ex2013|Any CPU - {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Debug Ex2013|Any CPU.Build.0 = Debug Ex2013|Any CPU + {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Release Ex2013 CU2|Any CPU.ActiveCfg = Release Ex2013 CU2|Any CPU + {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Release Ex2013 CU2|Any CPU.Build.0 = Release Ex2013 CU2|Any CPU {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Release Ex2013|Any CPU.ActiveCfg = Release Ex2013|Any CPU {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Release Ex2013|Any CPU.Build.0 = Release Ex2013|Any CPU + {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Release Ex2013 CU1|Any CPU.ActiveCfg = Release Ex2013 CU1|Any CPU + {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Release Ex2013 CU1|Any CPU.Build.0 = Release Ex2013 CU1|Any CPU + {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Release Ex2013 CU3|Any CPU.ActiveCfg = Release Ex2013 CU3|Any CPU + {02B4C666-7992-4BFC-94AF-DF18C1D3ED16}.Release Ex2013 CU3|Any CPU.Build.0 = Release Ex2013 CU3|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/CatchAllAgent/Exchange.CatchAll.csproj b/CatchAllAgent/Exchange.CatchAll.csproj index 10853e7..77b8a7d 100644 --- a/CatchAllAgent/Exchange.CatchAll.csproj +++ b/CatchAllAgent/Exchange.CatchAll.csproj @@ -15,6 +15,14 @@ + + pdbonly + true + bin\Exchange 2007 SP3\ + TRACE + prompt + 4 + true full @@ -24,18 +32,18 @@ prompt 4 - + pdbonly true - bin\Exchange 2010 SP3\ + bin\Exchange 2010 SP2\ TRACE prompt 4 - + pdbonly true - bin\Exchange 2010 SP2\ + bin\Exchange 2010\ TRACE prompt 4 @@ -48,6 +56,20 @@ prompt 4 + + pdbonly + true + bin\Exchange 2010 SP3\ + TRACE + prompt + 4 + + + false + + + ..\..\Res\Wolverine.snk + bin\Exchange 2010\ TRACE @@ -66,6 +88,15 @@ prompt MinimumRecommendedRules.ruleset + + bin\Exchange 2013\ + TRACE + true + pdbonly + AnyCPU + prompt + MinimumRecommendedRules.ruleset + true full @@ -75,13 +106,41 @@ prompt 4 - + + bin\Exchange 2013 CU1\ + TRACE + true pdbonly + AnyCPU + prompt + MinimumRecommendedRules.ruleset + + + bin\Exchange 2013 CU2\ + TRACE true - bin\Exchange 2013\ + pdbonly + AnyCPU + prompt + MinimumRecommendedRules.ruleset + + + bin\Exchange 2013 CU3\ TRACE + true + pdbonly + AnyCPU prompt - 4 + MinimumRecommendedRules.ruleset + + + true + bin\Debug Exchange 2013 CU2\ + TRACE;DEBUG;CODE_ANALYSIS + full + AnyCPU + prompt + MinimumRecommendedRules.ruleset @@ -120,18 +179,42 @@ ..\Lib\Exchange 2010 SP3\Microsoft.Exchange.Data.Transport.dll - + ..\Lib\Exchange 2013\Microsoft.Exchange.Data.Common.dll - + ..\Lib\Exchange 2013\Microsoft.Exchange.Data.Transport.dll - + + ..\Lib\Exchange 2013 CU2\Microsoft.Exchange.Data.Common.dll + + + ..\Lib\Exchange 2013 CU2\Microsoft.Exchange.Data.Transport.dll + + ..\Lib\Exchange 2013\Microsoft.Exchange.Data.Common.dll - + ..\Lib\Exchange 2013\Microsoft.Exchange.Data.Transport.dll + + ..\Lib\Exchange 2013 CU1\Microsoft.Exchange.Data.Common.dll + + + ..\Lib\Exchange 2013 CU1\Microsoft.Exchange.Data.Transport.dll + + + ..\Lib\Exchange 2013 CU2\Microsoft.Exchange.Data.Common.dll + + + ..\Lib\Exchange 2013 CU2\Microsoft.Exchange.Data.Transport.dll + + + ..\Lib\Exchange 2013 CU3\Microsoft.Exchange.Data.Common.dll + + + ..\Lib\Exchange 2013 CU3\Microsoft.Exchange.Data.Transport.dll + False ..\Lib\mysql.data.dll @@ -160,7 +243,9 @@ - + + Designer + + + + + + + + + + + + + + + + + diff --git a/CatchAllAgent/bin/Debug Exchange 2013 CU2/mysql.data.dll b/CatchAllAgent/bin/Debug Exchange 2013 CU2/mysql.data.dll new file mode 100644 index 0000000..a94dd3d Binary files /dev/null and b/CatchAllAgent/bin/Debug Exchange 2013 CU2/mysql.data.dll differ diff --git a/CatchAllAgent/bin/Debug Exchange 2013/ExchangeCatchAll.dll b/CatchAllAgent/bin/Debug Exchange 2013/ExchangeCatchAll.dll index 6cc0db6..5c25cf8 100644 Binary files a/CatchAllAgent/bin/Debug Exchange 2013/ExchangeCatchAll.dll and b/CatchAllAgent/bin/Debug Exchange 2013/ExchangeCatchAll.dll differ diff --git a/CatchAllAgent/bin/Exchange 2007 SP3/ExchangeCatchAll.dll b/CatchAllAgent/bin/Exchange 2007 SP3/ExchangeCatchAll.dll index b07aa93..5c988c3 100644 Binary files a/CatchAllAgent/bin/Exchange 2007 SP3/ExchangeCatchAll.dll and b/CatchAllAgent/bin/Exchange 2007 SP3/ExchangeCatchAll.dll differ diff --git a/CatchAllAgent/bin/Exchange 2010 SP1/ExchangeCatchAll.dll b/CatchAllAgent/bin/Exchange 2010 SP1/ExchangeCatchAll.dll index 53bc3a7..15d5ab6 100644 Binary files a/CatchAllAgent/bin/Exchange 2010 SP1/ExchangeCatchAll.dll and b/CatchAllAgent/bin/Exchange 2010 SP1/ExchangeCatchAll.dll differ diff --git a/CatchAllAgent/bin/Exchange 2010 SP2/ExchangeCatchAll.dll b/CatchAllAgent/bin/Exchange 2010 SP2/ExchangeCatchAll.dll index 4d3c9c7..ac3e934 100644 Binary files a/CatchAllAgent/bin/Exchange 2010 SP2/ExchangeCatchAll.dll and b/CatchAllAgent/bin/Exchange 2010 SP2/ExchangeCatchAll.dll differ diff --git a/CatchAllAgent/bin/Exchange 2010 SP3/ExchangeCatchAll.dll b/CatchAllAgent/bin/Exchange 2010 SP3/ExchangeCatchAll.dll index baf4359..dceab30 100644 Binary files a/CatchAllAgent/bin/Exchange 2010 SP3/ExchangeCatchAll.dll and b/CatchAllAgent/bin/Exchange 2010 SP3/ExchangeCatchAll.dll differ diff --git a/CatchAllAgent/bin/Exchange 2010/ExchangeCatchAll.dll b/CatchAllAgent/bin/Exchange 2010/ExchangeCatchAll.dll index f5d879f..207f2c7 100644 Binary files a/CatchAllAgent/bin/Exchange 2010/ExchangeCatchAll.dll and b/CatchAllAgent/bin/Exchange 2010/ExchangeCatchAll.dll differ diff --git a/CatchAllAgent/bin/Exchange 2013 CU1/ExchangeCatchAll.dll b/CatchAllAgent/bin/Exchange 2013 CU1/ExchangeCatchAll.dll new file mode 100644 index 0000000..d9930e6 Binary files /dev/null and b/CatchAllAgent/bin/Exchange 2013 CU1/ExchangeCatchAll.dll differ diff --git a/CatchAllAgent/bin/Exchange 2013 CU1/ExchangeCatchAll.dll.config b/CatchAllAgent/bin/Exchange 2013 CU1/ExchangeCatchAll.dll.config new file mode 100644 index 0000000..92306c9 --- /dev/null +++ b/CatchAllAgent/bin/Exchange 2013 CU1/ExchangeCatchAll.dll.config @@ -0,0 +1,35 @@ + + + +
+ +
+
+ + + + + + + + + + + + + + + + + + + diff --git a/CatchAllAgent/bin/Exchange 2013 CU1/mysql.data.dll b/CatchAllAgent/bin/Exchange 2013 CU1/mysql.data.dll new file mode 100644 index 0000000..a94dd3d Binary files /dev/null and b/CatchAllAgent/bin/Exchange 2013 CU1/mysql.data.dll differ diff --git a/CatchAllAgent/bin/Exchange 2013 CU2/ExchangeCatchAll.dll b/CatchAllAgent/bin/Exchange 2013 CU2/ExchangeCatchAll.dll new file mode 100644 index 0000000..e08e5a7 Binary files /dev/null and b/CatchAllAgent/bin/Exchange 2013 CU2/ExchangeCatchAll.dll differ diff --git a/CatchAllAgent/bin/Exchange 2013 CU2/ExchangeCatchAll.dll.config b/CatchAllAgent/bin/Exchange 2013 CU2/ExchangeCatchAll.dll.config new file mode 100644 index 0000000..92306c9 --- /dev/null +++ b/CatchAllAgent/bin/Exchange 2013 CU2/ExchangeCatchAll.dll.config @@ -0,0 +1,35 @@ + + + +
+ +
+
+ + + + + + + + + + + + + + + + + + + diff --git a/CatchAllAgent/bin/Exchange 2013 CU2/mysql.data.dll b/CatchAllAgent/bin/Exchange 2013 CU2/mysql.data.dll new file mode 100644 index 0000000..a94dd3d Binary files /dev/null and b/CatchAllAgent/bin/Exchange 2013 CU2/mysql.data.dll differ diff --git a/CatchAllAgent/bin/Exchange 2013 CU3/ExchangeCatchAll.dll b/CatchAllAgent/bin/Exchange 2013 CU3/ExchangeCatchAll.dll new file mode 100644 index 0000000..57a3246 Binary files /dev/null and b/CatchAllAgent/bin/Exchange 2013 CU3/ExchangeCatchAll.dll differ diff --git a/CatchAllAgent/bin/Exchange 2013 CU3/ExchangeCatchAll.dll.config b/CatchAllAgent/bin/Exchange 2013 CU3/ExchangeCatchAll.dll.config new file mode 100644 index 0000000..92306c9 --- /dev/null +++ b/CatchAllAgent/bin/Exchange 2013 CU3/ExchangeCatchAll.dll.config @@ -0,0 +1,35 @@ + + + +
+ +
+
+ + + + + + + + + + + + + + + + + + + diff --git a/CatchAllAgent/bin/Exchange 2013 CU3/mysql.data.dll b/CatchAllAgent/bin/Exchange 2013 CU3/mysql.data.dll new file mode 100644 index 0000000..a94dd3d Binary files /dev/null and b/CatchAllAgent/bin/Exchange 2013 CU3/mysql.data.dll differ diff --git a/CatchAllAgent/bin/Exchange 2013/ExchangeCatchAll.dll b/CatchAllAgent/bin/Exchange 2013/ExchangeCatchAll.dll index 98e41ca..b006411 100644 Binary files a/CatchAllAgent/bin/Exchange 2013/ExchangeCatchAll.dll and b/CatchAllAgent/bin/Exchange 2013/ExchangeCatchAll.dll differ diff --git a/Lib/Exchange 2007 SP3/.gitignore b/Lib/Exchange 2007 SP3/.gitignore index 86d0cb2..44c5ea8 100644 --- a/Lib/Exchange 2007 SP3/.gitignore +++ b/Lib/Exchange 2007 SP3/.gitignore @@ -1,4 +1,4 @@ -# Ignore everything in this directory -* -# Except this file +# Ignore everything in this directory +* +# Except this file !.gitignore \ No newline at end of file diff --git a/Lib/Exchange 2010 SP1/.gitignore b/Lib/Exchange 2010 SP1/.gitignore index 86d0cb2..44c5ea8 100644 --- a/Lib/Exchange 2010 SP1/.gitignore +++ b/Lib/Exchange 2010 SP1/.gitignore @@ -1,4 +1,4 @@ -# Ignore everything in this directory -* -# Except this file +# Ignore everything in this directory +* +# Except this file !.gitignore \ No newline at end of file diff --git a/Lib/Exchange 2010 SP2/.gitignore b/Lib/Exchange 2010 SP2/.gitignore index 86d0cb2..44c5ea8 100644 --- a/Lib/Exchange 2010 SP2/.gitignore +++ b/Lib/Exchange 2010 SP2/.gitignore @@ -1,4 +1,4 @@ -# Ignore everything in this directory -* -# Except this file +# Ignore everything in this directory +* +# Except this file !.gitignore \ No newline at end of file diff --git a/Lib/Exchange 2010 SP3/.gitignore b/Lib/Exchange 2010 SP3/.gitignore index 86d0cb2..44c5ea8 100644 --- a/Lib/Exchange 2010 SP3/.gitignore +++ b/Lib/Exchange 2010 SP3/.gitignore @@ -1,4 +1,4 @@ -# Ignore everything in this directory -* -# Except this file +# Ignore everything in this directory +* +# Except this file !.gitignore \ No newline at end of file diff --git a/Lib/Exchange 2010/.gitignore b/Lib/Exchange 2010/.gitignore index 86d0cb2..44c5ea8 100644 --- a/Lib/Exchange 2010/.gitignore +++ b/Lib/Exchange 2010/.gitignore @@ -1,4 +1,4 @@ -# Ignore everything in this directory -* -# Except this file +# Ignore everything in this directory +* +# Except this file !.gitignore \ No newline at end of file diff --git a/Lib/Exchange 2013 CU1/.gitignore b/Lib/Exchange 2013 CU1/.gitignore new file mode 100644 index 0000000..86d0cb2 --- /dev/null +++ b/Lib/Exchange 2013 CU1/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore \ No newline at end of file diff --git a/Lib/Exchange 2013 CU2/.gitignore b/Lib/Exchange 2013 CU2/.gitignore new file mode 100644 index 0000000..86d0cb2 --- /dev/null +++ b/Lib/Exchange 2013 CU2/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore \ No newline at end of file diff --git a/Lib/Exchange 2013 CU3/.gitignore b/Lib/Exchange 2013 CU3/.gitignore new file mode 100644 index 0000000..86d0cb2 --- /dev/null +++ b/Lib/Exchange 2013 CU3/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore \ No newline at end of file diff --git a/Lib/Exchange 2013/.gitignore b/Lib/Exchange 2013/.gitignore index 86d0cb2..44c5ea8 100644 --- a/Lib/Exchange 2013/.gitignore +++ b/Lib/Exchange 2013/.gitignore @@ -1,4 +1,4 @@ -# Ignore everything in this directory -* -# Except this file +# Ignore everything in this directory +* +# Except this file !.gitignore \ No newline at end of file diff --git a/README.md b/README.md index 7c7ba92..626a758 100644 --- a/README.md +++ b/README.md @@ -16,19 +16,15 @@ Using MySQL (not required for basic functionality) you get additional features: The .dll is compiled for .NET 3.5 (Exchange 2007 and 2010) or .NET 4 (Exchange 2012) -### Exchange 2013 - -This Receive Agent is fully tested under Exchange 2013 - -### Exchange 2010 - -This Receive Agent is fully tested under Exchange 2010 SP3 with Windows Server 2008 R2. - -There's are also compiled versions for no Service Pack, SP1 and SP2 installed. - -### Exchange 2007 - -Exchange 2007 SP3 .dll is build and can be found in the release directory. Please check if those are working for you and send me a short notice. +* Exchange 2007 SP3 (8.3.*) +* Exchange 2010 (14.0.*) +* Exchange 2010 SP1 (14.1.*) +* Exchange 2010 SP2 (14.2.*) +* Exchange 2010 SP3 (14.3.*) +* Exchange 2013 (15.0.516.32) +* Exchange 2013 CU1 (15.0.620.29) +* Exchange 2013 CU2 (15.0.712.24) +* Exchange 2013 CU3 (15.0.775.38) ## Installing the Receive Agent @@ -142,6 +138,10 @@ If you want to debug the .dll on your Exchange Server, you need to install [Visu ## Changelog +* 24.01.2014 [1.5.2]: + - Fixed database disable config (not correctly evaluated) + - Added additional supported Exchange versions (2007, 2010, 2013) + * 27.11.2013 [1.5.1]: - Support for regex domains diff --git a/install.ps1 b/install.ps1 index 9688c0f..96640d7 100644 --- a/install.ps1 +++ b/install.ps1 @@ -1,35 +1,46 @@ write-host " *** Exchange CatchAll Install Script ***" -f "blue" -write-host "Please select your Exchange Version from the following list:" -f "cyan" -write-host "[1] Exchange 2007 SP3" -f "cyan" -write-host "[2] Exchange 2010 (no Service Pack)" -f "cyan" -write-host "[3] Exchange 2010 SP1" -f "cyan" -write-host "[4] Exchange 2010 SP2" -f "cyan" -write-host "[5] Exchange 2010 SP3" -f "cyan" -write-host "[6] Exchange 2013" -f "cyan" - -write-host "" -do { - $version = read-host "Your selection" - if ($version -lt 1 -or $version -gt 6) { - write-host "Invalid selection. Please input the number in the squares." -f "red" - } -} until ($version -ge 1 -and $version -le 6) +# Exchange 2007 SP3 (8.3.*) +# Exchange 2010 (14.0.*) +# Exchange 2010 SP1 (14.1.*) +# Exchange 2010 SP2 (14.2.*) +# Exchange 2010 SP3 (14.3.*) +# Exchange 2013 (15.0.516.32) +# Exchange 2013 CU1 (15.0.620.29) +# Exchange 2013 CU2 (15.0.712.24) +# Exchange 2013 CU3 (15.0.775.38) +write-host "Detecting Exchange version ... " -f "cyan" +$hostname = hostname +$exchserver = Get-ExchangeServer -Identity $hostname $EXDIR="C:\Program Files\Exchange CatchAll" -if ($version -eq 1) { - $SRCDIR="CatchAllAgent\bin\Exchange 2007 SP3" -} elseif ($version -eq 2) { - $SRCDIR="CatchAllAgent\bin\Exchange 2010" -} elseif ($version -eq 3) { - $SRCDIR="CatchAllAgent\bin\Exchange 2010 SP1" -} elseif ($version -eq 4) { - $SRCDIR="CatchAllAgent\bin\Exchange 2010 S23" -} elseif ($version -eq 5) { - $SRCDIR="CatchAllAgent\bin\Exchange 2010 SP3" -} elseif ($version -eq 6) { - $SRCDIR="CatchAllAgent\bin\Exchange 2013" +$EXVER="Unknown" +if (($exchserver.admindisplayversion).major -eq 8 -and ($exchserver.admindisplayversion).minor -eq 3) { + $EXVER="Exchange 2007 SP3" +} elseif (($exchserver.admindisplayversion).major -eq 14 -and ($exchserver.admindisplayversion).minor -eq 0) { + $EXVER="Exchange 2010" +} elseif (($exchserver.admindisplayversion).major -eq 14 -and ($exchserver.admindisplayversion).minor -eq 1) { + $EXVER="Exchange 2010 SP1" +} elseif (($exchserver.admindisplayversion).major -eq 14 -and ($exchserver.admindisplayversion).minor -eq 2) { + $EXVER="Exchange 2010 SP2" +} elseif (($exchserver.admindisplayversion).major -eq 14 -and ($exchserver.admindisplayversion).minor -eq 3) { + $EXVER="Exchange 2010 SP3" +} elseif (($exchserver.admindisplayversion).major -eq 15 -and ($exchserver.admindisplayversion).minor -eq 0 -and ($exchserver.admindisplayversion).build -eq 516) { + $EXVER="Exchange 2013" +} elseif (($exchserver.admindisplayversion).major -eq 15 -and ($exchserver.admindisplayversion).minor -eq 0 -and ($exchserver.admindisplayversion).build -eq 620) { + $EXVER="Exchange 2013 CU1" +} elseif (($exchserver.admindisplayversion).major -eq 15 -and ($exchserver.admindisplayversion).minor -eq 0 -and ($exchserver.admindisplayversion).build -eq 712) { + $EXVER="Exchange 2013 CU2" +} elseif (($exchserver.admindisplayversion).major -eq 15 -and ($exchserver.admindisplayversion).minor -eq 0 -and ($exchserver.admindisplayversion).build -eq 775) { + $EXVER="Exchange 2013 CU3" +} +else { + throw "The exchange version is not yet supported: $exchserver.admindisplayversion" } +$SRCDIR="CatchAllAgent\bin\$EXVER" + +write-host "Found $EXVER" -f "green" + write-host "Creating registry key for EventLog" -f "green" if (Test-Path "HKLM:\SYSTEM\CurrentControlSet\Services\EventLog\Application\Exchange CatchAll") { write-host "Registry key for EventLog already exists. Continuing..." -f "yellow"