PowerShell script integrity mode

The file extension of a script file decides in which integrity mode it runs.

  • PowerShell scripts with file extension ".ps1" are not encrypted and run in low integrity mode. The low integrity mode prevents these PowerShell scripts from potentially harming the system. In this mode, the scripts and child processes cannot modify the underlying system.

  • PowerShell scripts with file extension ".snow-ps1" are encrypted and run in medium integrity mode.

For details regarding Windows integrity modes, refer to the following MSDN article: https://msdn.microsoft.com/en-us/library/bb625957.aspx