create default variables

This topic contains 3 replies, has 2 voices, and was last updated by Profile photo of Olaf Soyk Olaf Soyk 2 months, 2 weeks ago.

  • Author
    Posts
  • #61530
    Profile photo of Jeremy-Smit
    Jeremy-Smit
    Participant

    IS it possible to create a variable in powershell that is static.
    Even when you close powershell?

  • #61533
    Profile photo of Olaf Soyk
    Olaf Soyk
    Participant

    You could use environment variables or you could add it to your all users psprofile.

  • #61536
    Profile photo of Jeremy-Smit
    Jeremy-Smit
    Participant

    @ Olaf soyk

    Could you explain?

  • #61558
    Profile photo of Olaf Soyk
    Olaf Soyk
    Participant

    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

You must be logged in to reply to this topic.