February 21st, 2015

PowerTip: Easy Way to Troubleshoot PowerShell Script

Doctor Scripto
Scripter

Summary: Learn the easy way to troubleshoot a Windows PowerShell script.

   I receive an error message every time I run my Windows PowerShell script. What is an easy way to troubleshoot the
            script in the Windows PowerShell ISE?

  Highlight the line of code in the script to select it (use the mouse or keyboard shortcuts), and then press F-8 to
           run only the selected line of code. If no errors arise, select the next line of code and repeat the process until
           an error arises.

 

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.