When using the SQL Server 2008 PowerShell host, sqlps on a system with PowerShell V2 installed certain commands produce errors. The Get-Command for instance produces the following the output:Get-Command : Object reference not set to an instance of an object.At line:1 char:12+ get-command <<<< + CategoryInfo : NotSpecified: (:) [Get-Command], NullReferenceException + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.PowerShell.Commands.GetCommandCommandThe same command running on a system with sqlps and PowerShell V1 executes successfully.
Version
Category
Operating System
Platform