Notice: This post does not contain any pictures. They were all lost during the import from my old Gonjer.com site. I do apologize for that but I hope that the post will still help. For some time ago I stumbled upon a strange credential prompt in Outlook for an entire organization after changing the Autodiscover …
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:
Set-Mailbox -Identity 'NoMailbox' -ErrorAction Stop
'Error with Set-Mailbox'
Error with Set-Mailbox When we use Powershell 4.0 with the same “Try/Catch”-block …