August 28th, 2015

PowerTip: See Number of Errors in PowerShell Session

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.