DaveWentzel.com All Things Data
More on PowerShell 2.0
continues to use .PS1 extension.
.PS1 files *should* work in a PS2 environment.
There are new features in 2.0 that are not backward compatible. To ensure these scripts don't execute under a 1.0 environment add
#requires -version 2.0
in your script.
Some other nifty uses for #requires is to see if a snapin is available on the machine.
#requires -PsSnapIn <name> <options>