Customize your PowerShell prompt

Also mainly because when I create screenshots for a blog article or document, I want those screenshots to provide me with some marketing.
So, I customize my PowerShell prompt:


But I want to be able to, looking at my prompt, identify if I’m running an elevated prompt or not.
Looking at Linux, you can see that by the fact that there’s a # in the prompt:


So, here’s the code I use, which I’ve also put in my PowerShell profile 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *