PowerTip: See Number of Errors in PowerShell Session

The Scripting Guys

Dr Scripto

Summary: Learn how to determine how many errors there are in the Windows PowerShell session.

Hey, Scripting Guy! Question How can I determine how many current errors there are in my Windows PowerShell session?

Hey, Scripting Guy! Answer Use the Count property from the Error object array:

$error.count

The Scripting Guys
Dr Scripto

Follow Dr Scripto   

No Comments.