Breaking Compatibility With PowerShell V1

by Oct 5, 2009

When you move onto PowerShell V2, most of your V1 scripts will hopefully continue to work. There are only few bug fixes that could affect compatibility, including:

  • Newly added cmdlets and variables may conflict with variable names (though unlikely)
  • The operator -ieq now correctly performs a case-insensitive comparison on characters
  • Get-Command now retrieves functions by default whereas in V1, it would only get cmdlets
  • When two snapins import cmdlets with the same name, the last one is used

Twitter This Tip! ReTweet this Tip!