Welcome › Forums › General PowerShell Q&A › create default variables
This topic contains 3 replies, has 2 voices, and was last updated by
IS it possible to create a variable in powershell that is static.
Even when you close powershell?
You could use environment variables or you could add it to your all users psprofile.
@ Olaf soyk
Could you explain?
How to create and modify environment variables is explained here: Creating and Modifying Environment Variables.
And how to modify your Powershell profile or the systems Powershell profile you can find like this: Get-Help about_profiles
The topic ‘create default variables’ is closed to new replies.