How can I automate the process of customizing the command prompt?

Question:

I spend most of my time on command line ( XP / 7 ) and always find myself customizing the command prompt according to my preferences. This applies to both cmd and powershell prompt.

Whenever I am on a new server, I would need to do this all over again. How can I automate this process by putting these parameters in a batch file or PowerShell script?

Answer:

You can use the Registry provider in PowerShell along with the *-Item and *-ItemProperty cmdlets to modify the registry values under this registry key: HKEY_CURRENT_USER\Console.

Source:

How can I automate the process of customizing the command prompt? by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply