Why is powershell scripts extenson .ps1?

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Andreas Lorensen Andreas Lorensen 9 months, 2 weeks ago.

  • Author
    Posts
  • #55093
    Profile photo of Andreas Lorensen
    Andreas Lorensen
    Participant

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

  • #55095
    Profile photo of Don Jones
    Don Jones
    Keymaster

    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
    Profile photo of Andreas Lorensen
    Andreas Lorensen
    Participant

    That makes sense. Thanks.

You must be logged in to reply to this topic.