- January 19, 2016 at 12:53 pm #34073
Does anyone know of a cmdlet that will provide me with a list of downstream servers that have not synchronized within the last x number of days. The information is visually available on the WSUS upstream Server console under "Last Synchronization" but I couldn't find any information if that could be extracted via PSJanuary 19, 2016 at 10:01 pm #34082
Hmmmm client side, you might be able to get something similar using Microsoft.Update.Session, though it reports the date of last update as opposed to last check.
Are you using WSUS or SCCM Software Updates btw?
$Session = New-Object -ComObject Microsoft.Update.Session $Searcher = $Session.CreateUpdateSearcher() $LastUpdate = $Searcher.QueryHistory(0, 1) | Select-Object -ExpandProperty Date
If it's not available via cmdlets or com/dotnet objects on the wsus server, then you might need to look into querying the database, though i think thats WID which i've never had reason to query.January 20, 2016 at 2:48 am #34085
Graham BeerParticipantJanuary 20, 2016 at 7:33 am #34091
Thanks, Tim for the update. However, the last update is just for the client side, and that too, is that of patching status, nit synchronization. I'll try the WID query route.
You must be logged in to reply to this topic.