Detection Method for MSU in Applications for SCCM 2012

Detection Method for MSU in Applications for SCCM 2012


In SCCM 2012 Applications you can have a detection method set for MSU with KB numbers.

You can use the Powershell or VBScript to do this. Here is an example of both.

Powershell Script:

get-hotfix | Where-Object {$_.HotFixID -match "KB981603"}

VBScript:

Returns info if Windows KB981603  in installed
----------------------------------------------------------
Option Explicit

Dim objWMIService, strComputer
strComputer = "."

Run the query
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!" _
    & strComputer & "" ootcimv2"")
 
Dim QFEs
Dim QFE
Set QFEs = objWMIService.ExecQuery (""Select * from win32_QuickFixEngineering where HotFixID like KB981603"")
For Each QFE in QFEs
    Wscript.echo ""Update KB981603 was installed by "" & QFE.InstalledBy & "" on "" & QFE.InstalledOn
Next
WScript.Quit"

visit link download

Comments

Popular posts from this blog

Download Samsung Music versi 16 1 63 24 Android M Full Apk

Download Mobile Legends 1 1 22 108 1 APK for Android