Personally i would query the Sql views directly, it will be fast then querying the API. https://learn.microsoft.com/en-us/mem/configmgr/develop/core/understand/sqlviews/sql-server-views-configuration-manager
SCCM api or powershell code to get live patch installation update (Software center)
Hi Team,
Please help us as we are looking to get live patch updates for the windows patches installed using software center.
Do we have any SCCM api which will help us or any powershell module to get exact status of patches.
How to get to know reboot status of the machine after the patch is installed or when patch installation needs reboot.
3 answers
Sort by: Most helpful
-
-
Limitless Technology 39,376 Reputation points
2022-04-28T16:43:57.163+00:00 Hi SyedNasiruddinsShahSs-3522,
You can get the status of specific updates using this example:
$sudeploy = Get-CMSoftwareUpdateDeployment -Name "Patch Tuesday - Office and Edge 2020-07-15 00:11:11"
Get-CMSoftwareUpdateDeploymentStatus -InputObject $sudeploySoftware Centre displays progress for software installs and advertisements. It does not show patch status other than Installed/Missing, so I suspect if you want to enumerate the progress status for that patch, you'll need to scrape logs to determine if the client is doing anything with each respective patch to create a calculated status message at runtime. You can read more here:
I hope this answers your question.
----------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answer--
-
Kalyan Sundar 561 Reputation points
2022-05-02T19:29:15.453+00:00 You can also use CMPivot to get live data where you can refer quickfixEngineering -> InstalledBy
https://www.anoopcnair.com/sccm-cmpivot-query-patches-installed-in-last-90-days-configmgr/