Find missing patches offline with Wsusscn2.cab

Welcome Forums General PowerShell Q&A Find missing patches offline with Wsusscn2.cab

This topic contains 3 replies, has 3 voices, and was last updated by

 
Participant
3 years, 4 months ago.

  • Author
    Posts
  • #28160

    Participant
    Points: 0
    Rank: Member

    I'm trying to look and find if there is a way to use powershell to use the wsusscn2.cab file to scan a server for missing patches. I cannot use MBSA to assist in anyway for this.

    Has anyone ran into a similar issue or can point me in the right direction?

  • #28167

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

    I think the most you could maybe do is run Get-Hotfix to get a list of what IS installed, and then diff that off the list in the cab file. It'd not going to be a simple task, and it's not like there's a single command that'll do it. It's really all set up to use MBSA, so not being able to use that is almost a deal breaker. It's like trying to drive a car without using the gas pedal ;).

  • #28190

    Participant
    Points: 0
    Rank: Member

    Ha, I like the analogy. Well, maybe I'll tinker with it or maybe just abandon it and torch my pedal-less car.

    Thanks for the quick reply Don!

  • #28206

    Participant
    Points: 0
    Rank: Member

    You would need to use Windows Update Agent API
    You would want to take a look at https://msdn.microsoft.com/en-us/library/windows/desktop/aa387290%28v=vs.85%29.aspx

    Note you would need to have Powershell v3 on the machine your running the script for it to work.

    Thanks Preenesh !!

The topic ‘Find missing patches offline with Wsusscn2.cab’ is closed to new replies.