Powershell 4.0 – Try/Catch Exchange 2010 Bug?
I’ve been struggling some time now on why Powershell 4.0 are unable to “Catch” terminating errors when using Exchange 2010 Cmdlets. When using a standard “Set-Mailbox” with Erroraction set to Stop using Powershell 3.0 the terminating error is validated by the “Try/Catch”-block:
1 2 3 4 5 6 |
try { Set-Mailbox -Identity 'NoMailbox' -ErrorAction Stop } catch { 'Error with Set-Mailbox' } |
Error with Set-Mailbox When we use Powershell 4.0 with the same “Try/Catch”-block […]
Powershell 4.0 – Try/Catch Exchange 2010 Bug? Read More »