Quantcast
Channel: Scripting Blog
Viewing all articles
Browse latest Browse all 2129

PowerTip: Change the PowerShell Prompt

$
0
0

Summary: Learn how to shorten the Windows PowerShell prompt.

Hey, Scripting Guy! Question I am concerned that the Windows PowerShell prompt is becoming too long when working with the registry or the
           file system, and I would like to shorten it.

Hey, Scripting Guy! Answer Change the prompt with the following one-liner (remember to add a space at the end of the prompt
           for reading ease):

Function prompt {“My Prompt “}

When you close Windows PowerShell, the prompt returns to the original configuration.

Note  Today's PowerTip is supplied by Windows PowerShell MVP, Jeff Wouters.


Viewing all articles
Browse latest Browse all 2129

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>