February 12th, 2015

PowerTip: Run Part of PowerShell Command

Doctor Scripto
Scripter

Summary: Learn how to run part of a command in the Windows PowerShell ISE.

Hey, Scripting Guy! Question I am having problems with a small part of a script that I am working on in the Windows PowerShell ISE—
           how can I test only that code?

Hey, Scripting Guy! Answer Highlight only the portion of the script you want to test, and press the F-8 key or the small green triangle on the
           toolbar (or select Run Selection from the File menu). Only the section of code that you highlighted will run.

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.