# Find missing patches offline with Wsusscn2.cab

**URL:** <https://forums.powershell.org/t/find-missing-patches-offline-with-wsusscn2-cab/4618>\
**Category:** PowerShell Help\
**Created:** [August 4, 2015, 12:36am UTC](https://forums.powershell.org/t/find-missing-patches-offline-with-wsusscn2-cab/4618 "2015-08-04T00:36:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaron-miller](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@aaron-miller](https://forums.powershell.org/u/aaron-miller)\
**Post date:** [August 4, 2015, 12:36am UTC](https://forums.powershell.org/t/find-missing-patches-offline-with-wsusscn2-cab/4618/1 "2015-08-04T00:36:01Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![donj](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/donj/32/137_2.png) [@donj](https://forums.powershell.org/u/donj)\
**Post date:** [August 4, 2015, 5:06am UTC](https://forums.powershell.org/t/find-missing-patches-offline-with-wsusscn2-cab/4618/2 "2015-08-04T05:06:49Z")

</div>

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 ;).

---

<div class="post-metadata">

**Author:** ![aaron-miller](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@aaron-miller](https://forums.powershell.org/u/aaron-miller)\
**Post date:** [August 4, 2015, 11:50pm UTC](https://forums.powershell.org/t/find-missing-patches-offline-with-wsusscn2-cab/4618/3 "2015-08-04T23:50:00Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![preenesh-nayanasudha](https://avatars.discourse-cdn.com/v4/letter/p/87869e/32.png) [@preenesh-nayanasudha](https://forums.powershell.org/u/preenesh-nayanasudha)\
**Post date:** [August 5, 2015, 6:16am UTC](https://forums.powershell.org/t/find-missing-patches-offline-with-wsusscn2-cab/4618/4 "2015-08-05T06:16:22Z")

</div>

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(v=vs.85).aspx](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 !!

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:45pm UTC](https://forums.powershell.org/t/find-missing-patches-offline-with-wsusscn2-cab/4618/5 "2024-05-16T20:45:16Z")

</div>

Closed on May 16, 2024, 8:45pm UTC


