Share This Post

Tip of the day: List of machines with Windows 2008 R2

This query lists all the machines with Windows 2008 R2 by Edition, and Service Pack.

*Requires Normalize CM

OS Manufacturer

OS Name

OS MajorVersion

OS ServicePack

OS Edition

Microsoft

Windows Server 2008

2008

SP1

Datacenter (32-bit x86)

Microsoft

Windows Server 2008

2008

SP2

Datacenter (32-bit x86)

Microsoft

Windows Server 2008

2008

SP1

Datacenter without Hyper-V (32-bit x86)

Microsoft

Windows Server 2008

2008

SP2

Enterprise (32-bit x86)

Microsoft

Windows Server 2008

2008

SP1

Enterprise (32-bit x86)

Microsoft

Windows Server 2008

2008

SP1

Enterprise without Hyper-V (32-bit x86)

Microsoft

Windows Server 2008

2008

SP2

Enterprise without Hyper-V (32-bit x86)

Microsoft

Windows Server 2008

2008

SP2

For Itanium-Based Systems (32-bit x86)

Microsoft

Windows Server 2008

2008

SP1

For Itanium-Based Systems (32-bit x86)

Microsoft

Windows Server 2008

2008

SP2

Foundation (32-bit x86)

Microsoft

Windows Server 2008

2008

SP1

Foundation (32-bit x86)

Microsoft

Windows Server 2008

2008

SP2

Standard (32-bit x86)

Microsoft

Windows Server 2008

2008

SP1

Standard (32-bit x86)

Microsoft

Windows Server 2008

2008

SP2

Standard without Hyper-V (32-bit x86)

*The list above is not exhaustive, and only provided a sample of the data that are available within CM.

Using the new CM class BDNA_HARDWARE_DATA, all your hardware information are now available into a single table. You can query this table using WQL or SQL.

WQL:

select System.Name, HARDWARE.IsVirtual, HARDWARE.OS_Manufacturer, HARDWARE.OS_Name, HARDWARE.OS_MajorVersion, HARDWARE.OS_MinorVersion, HARDWARE.OS_ServicePack, HARDWARE.OS_Edition from  SMS_R_System inner join SMS_G_System_BDNA_BDNAHARDWAREDATA_1_1 as HARDWARE on HARDWARE.SMSUniqueIdentifier = SMS_R_System.SMSUniqueIdentifier inner join SMS_R_System as System on System.SMSUniqueIdentifier = HARDWARE.SMSUniqueIdentifier where HARDWARE.OS_Name = “Windows Server 2008” and HARDWARE.OS_MajorVersion = “2008 R2”

SQL:

SELECT v_R_System.Name0 as Name, Hardware.IsVirtual0 as IsVirtual, Hardware.OS_Manufacturer0 as OS_Manufacturer, Hardware.OS_Name0 as OS_Name, Hardware.OS_MajorVersion0 as OS_MajorVersion, Hardware.OS_MinorVersion0 as OS_MinorVersion, Hardware.OS_ServicePack0 as OS_ServicePack, Hardware.OS_Edition0 as OS_Edition

FROM v_R_System

INNER JOIN v_GS_BDNA_Hardware_Data0 Hardware ON Hardware.SMSUniqueIdentifier0=v_R_System.SMS_Unique_Identifier0

WHERE Hardware.OS_Name0 = ‘Windows Server 2008’ AND Hardware.OS_MajorVersion0 = ‘2008 R2’

Share This Post

Leave a Reply