I have been look for a way to report deployment status, without using Monitoring | Deployment in the console.
The trick was to monitor SMSPROV.LOG while I activated the monitoring | deployment in the console. After some digging around in the log, I found the select statement below.
Agent fail to download policies
Agent fails to download it’s policies and there is no errors on management point and the ClientIDManagerStartup.log shows [RegTask] – Client is already registered. Exiting. Uninstall of the agent (ccmsetup.exe /uninstall) and reinstalling do not help at all.The issue is that the uninstall do not clean up in ROOT\CCM in WMIRun this line in a admin powershell prompt:Get-WMIObject -namespace “root” -query “SELECT * FROM __Namespace where name = ‘ccm’” | remove-wmiobjectThen run the agent installation and grab a cup of coffe, and the agent will installed and are able to download it’s policiesAfter a few SCCM minutes it will be active and have the “green” icon in the console