Ps1 and PSM1

Welcome Forums General PowerShell Q&A Ps1 and PSM1

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

 
Member
3 years, 9 months ago.

  • Author
    Posts
  • #23196

    Participant
    Points: 0
    Rank: Member

    what's the between .ps1 and psm1? please answer me as soon as possible?

  • #23197

    Member
    Points: 0
    Rank: Member

    PS1 files are scripts, PSM1 files are script modules. You load up a module with the Import-Module command, and it has some other advantages over scripts, such as the ability to keep some code internal while exporting other commands, variables and aliases. Scripts, on the other hand, are just executed (or dot-sourced, if your intention is to load the contents of the script into your current session.)

The topic ‘Ps1 and PSM1’ is closed to new replies.