I have a script I’ve been using for a while in PS 4, but after upgrading to Windows 10 “-ErrorAction Stop” is not working with try/catch.
This is a basic part of the code that is not working
$mbx = Get-Mailbox $UserID -ErrorAction Stop
$mbx = Get-RemoteMailbox $UserID
The error is showing as if there was no EA action defined. If I replace Stop for SilentlyContinue, it works as expected, but I need the Stop switch so I can work with try/catch.