I was searching how to change the format of the default command prompt. In a cmd console the way to do that is to set a variable PROMPT (Set Prompt = )
There are some realy nice example to be found to change the prompt of a powershell console. One of the most beautiful examples is the one of Josh Einstein. I added one type in this example the one with the date in it.
But then I didn’t know how to figure out the complete solution. By the post of jcollum he showed me the way that you need to create a $profile script. This script is loaded every powershell session. The way to do that is
new-item -itemtype file -path $profile -force
Then you can use notepad to copy the code in to this file by doing “notepad $profile” on the powershell prompt. This way you can easily set the way your prompt should look like. Download code here Microsoft.PowerShell_profile.ps1