Why is powershell scripts extenson .ps1?

Welcome Forums General PowerShell Q&A Why is powershell scripts extenson .ps1?

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
2 years, 3 months ago.

  • Author
    Posts
  • #55093

    Participant
    Points: 0
    Rank: Member

    I am wondering why powershell scripts extension is .ps1 – why is it not just .ps or .pss (for powershellscript). What dos 1 mean?

  • #55095

    Keymaster
    Points: 1,785
    Helping HandTeam Member
    Rank: Community Hero

    1 is the version of the language engine. The idea is that, if they ever had to radically change the language, they could switch to .ps2, and earlier versions would know not to try and run those scripts.

  • #55096

    Participant
    Points: 0
    Rank: Member

    That makes sense. Thanks.

The topic ‘Why is powershell scripts extenson .ps1?’ is closed to new replies.