Error Action Lambdas

In this video Jeffrey Snover talks about error action Lambdas, I’ve tried that and it doesn’t work. Was it not implemented or am I doing something wrong? For reference it is around 31.30.


This hasn’t been implemented from what I can tell. ErrorAction only supports the data type System.Management.Automation.ActionPreference at the moment.

You might want to ping Jeffrey Snover on Twitter ( and ask him. Our come to the PowerShell + DevOps Global Summit 2017 ( or the PowerShell Conference EU 2017 ( and ask him yourself in-person.