Powershell ErrorAction

In Powershell ErrorAction is very useful. The following are some of my notes on ErrorAction: Part of Common Parameters You can only use ErrorAction on cmdlets or functions that support Common Parameters. You cannot use ErrorAction with if statement or switch statement because they do not support Common Parameters. For example: $Duration = Measure-command { $e … Continue reading Powershell ErrorAction