November 13th, 2015

PowerTip: Revert PowerShell ISE Token Values

Doctor Scripto
Scripter

Summary: Learn how to revert Windows PowerShell ISE token values to default values.

Hey, Scripting Guy! Question I have been playing with token colors in the Windows PowerShell ISE and things are confused.
           How can I use Windows PowerShell to change back to default values.?

Hey, Scripting Guy! Answer Use the RestoreDefaultTokenColors method from the Options object:

$psISE.Options.RestoreDefaultTokenColors()

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.