create default variables

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

  • Author
    Posts
  • #61530

    Jeremy-Smit
    Participant

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

  • #61533

    Olaf Soyk
    Participant

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

  • #61536

    Jeremy-Smit
    Participant

    @ Olaf soyk

    Could you explain?

  • #61558

    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.