Customizing Your Console

Standard

There are lots of posts out there about customizing the PS console, from colorization, fonts, eventing, and more.

As a daily PowerSheller, timestamping commands helps me keep track of when I performed a particular task. Thus, I added this to my PowerShell profile, located at C:\Users\myusername\Documents\WindowsPowershell\profile.ps1

 


Function prompt {"PS "+[DateTime]::Now.ToString("hh:mm:ss")+">"}

 

For further endeavors, here are some in-depth links on creating PS profiles and console customization:

 

PS Profiles:

https://blogs.technet.microsoft.com/heyscriptingguy/2012/05/21/understanding-the-six-powershell-profiles/

https://technet.microsoft.com/en-us/library/bb613488(v=vs.85).aspx

https://www.howtogeek.com/50236/customizing-your-powershell-profile/

https://www.simple-talk.com/sysadmin/powershell/persistent-powershell-the-powershell-profile/

 

Console Customization:

https://technet.microsoft.com/en-us/library/ff678294.aspx

https://blogs.technet.microsoft.com/undocumentedfeatures/2016/01/22/customizing-the-windows-powershell-console/

https://blogs.technet.microsoft.com/heyscriptingguy/2011/12/17/customize-the-powershell-console-for-increased-efficiency/

http://www.gngrninja.com/script-ninja/2016/3/20/powershell

Leave a comment