1. Yannick | novembre 14th, 2010 at 02:15
A noter aussi l’existence de WUA (qui me parait + developer friendly): http://msdn.microsoft.com/en-us/library/aa387099(v=VS.85).aspx
2. admin | novembre 14th, 2010 at 15:36
Note utiliser HotFixID au lieu de ServicePackInEffect http://pastebin.ca/1991109
@Yannick aussi mais j’avais besoin d’un code qui tourne sur 2K pre-sp3
3. lemul0t | janvier 16th, 2011 at 18:15
Bel article, mais ya bien plus simple…. sous xp comme sous seven :
C:\systeminfo | findstr « KB982132″ [63]: KB982132
4. FlUxIuS | juin 22nd, 2011 at 12:23
Et pour le fun avec du Python : —————————————– import wmi c = wmi.WMI() wql = « Select * from Win32_QuickFixEngineering » for update in c.query(wql): print update —————————————–
Résultat : instance of Win32_QuickFixEngineering { CSName = « CUIR-8F8484AE1A »; Description = « »; FixComments = « »; HotFixID = « File 1″; InstalledBy = « »; InstalledOn = « »; ServicePackInEffect = « KB898461″; };
instance of Win32_QuickFixEngineering { ….
Trackback this post
4 Comments
1. Yannick | novembre 14th, 2010 at 02:15
A noter aussi l’existence de WUA (qui me parait + developer friendly): http://msdn.microsoft.com/en-us/library/aa387099(v=VS.85).aspx
2. admin | novembre 14th, 2010 at 15:36
Note utiliser HotFixID au lieu de ServicePackInEffect http://pastebin.ca/1991109
@Yannick aussi mais j’avais besoin d’un code qui tourne sur 2K pre-sp3
3. lemul0t | janvier 16th, 2011 at 18:15
Bel article, mais ya bien plus simple….
sous xp comme sous seven :
C:\systeminfo | findstr « KB982132″
[63]: KB982132
4. FlUxIuS | juin 22nd, 2011 at 12:23
Et pour le fun avec du Python :
—————————————–
import wmi
c = wmi.WMI()
wql = « Select * from Win32_QuickFixEngineering »
for update in c.query(wql):
print update
—————————————–
Résultat :
instance of Win32_QuickFixEngineering
{
CSName = « CUIR-8F8484AE1A »;
Description = « »;
FixComments = « »;
HotFixID = « File 1″;
InstalledBy = « »;
InstalledOn = « »;
ServicePackInEffect = « KB898461″;
};
instance of Win32_QuickFixEngineering
{
….
Trackback this post