In order to find the PatchCodeGUID I use a script:
$vbsCode = @" Set msi = CreateObject("WindowsInstaller.Installer") Set patchlist = msi.Patches("{786970C5-E6F6-4A41-B238-AE25D4B91EEA}") For Each p In patchlist WScript.Echo p Next "@ $VBSFile = "$env:TEMP\temp.vbs" $vbsCode | out-file -FilePath $VBSFile $PatchList = cscript.exe $VBSFile | Where-Object {$_ -match "^{" } $VBSFile | Remove-Item -Force -ErrorAction SilentlyContinue $PatchList Is it possible to achieve the same result using only PowerShell?
PS {786970C5-E6F6-4A41-B238-AE25D4B91EEA} is the SCMP Agent RTMProductCodeGuid.