Comment détecter Vista et serveur 2008 avec WMI

Comment filtrer une stratégie de groupe pour qu’elle ne s’applique qu’à Vista ou Server 2008

Pour Vista
SELECT Version, ProductType
FROM Win32_OperatingSystem
WHERE Version >= ’6′ AND ProductType = ’1′

Pour Server 2008
SELECT Version, ProductType
FROM Win32_OperatingSystem WHERE
Version >= ’6′ AND ProductType = ’3′

1 Comment »

Comment by Record

February 20, 2009 @ 10:34 pm

Astucieux et bien pratique!

Leave a comment