PowerTip: See Number of Errors in PowerShell Session

Doctor 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

0 comments

Discussion is closed.

Feedback usabilla icon