Setting up your PowerShell Environment

Want to have your powershell environment the way you want it each time you start PowerShell ?

Find the location of your default profile by typing profile$ at a PowerShell prompt. That will show you where your default profile script is held. For example:


Any statements that you add to this script will automatically be run each time you start PowerShell.

In this way you can call any plug ins or other scripts that you want.

Getting Environment Variables with Powershell

Need to know the value of an environment variable on your computer such as the temp path ? Nothing could be easier.




Wnat to know who you are logged on as ?


Want to know what the “path” is ?


So, the trick is to enter $env: followed by the environment variable you want the value of. Want to know what environment variables you can use ?

Just access the advanced tab of computer properties and click on the “Environment Vaiables” button