Monday, 9 March 2020

SCCM - SQL Query SUP WSUS Syncronization Custom Report

SCCM - SQL Query SUP WSUS Syncronization Custom Report


SELECT SiteCode, WSUSServerName, WSUSSourceServer, SyncCatalogVersion, LastSuccessfulSyncTime,
CASE [LastSyncState]
WHEN 6700 THEN 'WSUS Sync Manager Error'
WHEN 6701 THEN 'WSUS Synchronization Started'
WHEN 6702 THEN 'WSUS Synchronization Done'
WHEN 6703 THEN 'WSUS Synchronization Failed'
WHEN 6704 THEN 'WSUS Synchronization In Progress Phase Synchronizing WSUS Server'
WHEN 6705 THEN 'WSUS Synchronization In Progress Phase Synchronizing SMS Database'
WHEN 6706 THEN 'WSUS Synchronization In Progress Phase Synchronizing Internet facing WSUS Server'
WHEN 6707 THEN 'Content of WSUS Server is out of sync with upstream server'
WHEN 6709 THEN 'SMS Legacy Update Synchronization started'
WHEN 6710 THEN 'SMS Legacy Update Synchronization done'
WHEN 6711 THEN 'SMS Legacy Update Synchronization failed'
END AS 'Last Sync State', LastSyncStateTime, (Datediff(d,LastSyncStateTime,GETDATE())) as 'DateDiff'

FROM vSMS_SUPSyncStatus

No comments:

Post a Comment

SCCM SQL Query Online device by Management Point

 SCCM SQL Query Online device by Management Point select srl.SiteCode, srl.ServerName, srl.InternetEnabled, srl.Shared, srl.SslState, SUM(br...