Last Synchronization

Welcome Forums General PowerShell Q&A Last Synchronization

Viewing 3 reply threads
  • Author
    Posts
    • #34073
      Participant
      Topics: 2
      Replies: 4
      Points: 0
      Rank: Member

      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 PS

    • #34082
      Participant
      Topics: 4
      Replies: 262
      Points: 61
      Rank: Member

      Hi there,

      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.

    • #34085
      Participant
      Topics: 48
      Replies: 102
      Points: 0
      Rank: Member

      Hi Tim,

      Your knowledge of .NET Tim is awesome. I was looking at your site, http://www.powershell.amsterdam/ (Free plug for you !!) and was thoroughly impressed. How did you get to such a good level on .NET ? (Feel free to e-mail me at [email protected]).

    • #34091
      Participant
      Topics: 2
      Replies: 4
      Points: 0
      Rank: Member

      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.

Viewing 3 reply threads
  • The topic ‘Last Synchronization’ is closed to new replies.