SQL Server – Check SQL Server 2008 Native Client is installed with Powershell get-wmiobject

03 August,2012 by Jack Vamvas

Related Posts

Powershell scripts for DBA

Question: I want to check if the MS SQL Server 2008 Native Client is installed using Powershell. What Powershell cmdlet can I use to gather the information?

On the basis of the result returned by the Powershell cmdlet , I’ll prompt the use to install the MS SQL Server 2008 Native Client, before they proceed with the remaining actions.

Answer: The Powershell Get-WmiObject  can return the information. The  Get-WmiObject  is a great cmdlet for system administration.

 

Get-WmiObject  "win32_product" | select-object -property Name,PackageName,Version

Author: Jack Vamvas (http://www.sqlserver-dba.com)


Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on SQL Server – Check SQL Server 2008 Native Client is installed with Powershell get-wmiobject


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact|Copyright & Disclaimer