Select the product you need help with
Error message when you run Get-Command in a PowerShell version 2 environment on a server that is running SQL Server 2008 or SQL Server 2008 R2: "Object reference not set to an instance of an object"Article ID: 2216478 - View products that this article applies to. On This PageSYMPTOMSConsider the following scenario:
In this scenario, you receive the following error message: 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.GetCommandCommand RESOLUTIONService pack information for SQL Server 2008To resolve this problem, obtain the latest service pack for SQL Server 2008. For more information, click the following article number to view the article in the Microsoft Knowledge Base:968382
(http://support.microsoft.com/kb/968382/en-US/
)
How to obtain the latest service pack for SQL Server 2008Service pack information for SQL Server 2008 R2To resolve this problem, obtain the latest service pack for SQL Server 2008 R2. For more information, click the following article number to view the article in the Microsoft Knowledge Base:2527041
(http://support.microsoft.com/kb/2527041/
)
How to obtain the latest service pack for SQL Server 2008 R2
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to"
section. This problem was first corrected in Microsoft SQL Server 2008 Service Pack 2. This problem was first corrected in SQL Server 2008 R2 Service Pack 1. MORE INFORMATIONFor more information about the sqlps utility, see the following topic on the Microsoft TechNet website: sqlps Utility
(http://technet.microsoft.com/en-us/library/cc280450(SQL.100).aspx)
PropertiesArticle ID: 2216478 - Last Review: April 22, 2011 - Revision: 3.0 APPLIES TO
|


Back to the top








