Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search whether a KB update is installed 1

Status
Not open for further replies.

hunterdw

Technical User
Oct 25, 2002
345
US
Howdy--

As the rest of the world, I'm in the midst of updating all my workstations and servers and exchange and everything else to the new Daylight Saving Time rules.

I was pushing out KB928388 via WSUS - but last night during my WSUS sync the "patch tuesday" rollup came out which expired KB928388. My logging in WSUS is now all gone. I remember I had about 40 workstations left to fix, but dunno which 40.

What's an easy way to search remote workstations to see what updates are installed? I know if 928388 is installed, the regkey "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB928388" is present, but even things like registry crawler take too long to search remote registries.

I was going to use Eventcomb but I can't find where an event was placed in any log telling me that.

I also know that KB928388.log is placed in C:\Windows if it's installed, but haven't figured out how to script it to search a # of workstations.

Any ideas?

--DW
 
Create a list of all your computers, one per line and save it to listofcomputers.txt. Then run this command.

Code:
for /f "tokens=1" %a in (listofcomputers.txt) do @if Not exist "\\%a\admin$\kb928388.log" echo %a>>ComputersMissingPatch.log
Note: if putting this in a batch file, you need to double the % symbols. For example, %a becomes %%a

Optionally, You can use IP Addresses and/or have the script check each IP address in a subnet. Or you can use the list of computers generated by the NET VIEW command.
 
Glory! Glory!

You win the prize today.

I'll report back how it works.
 
lwcomputing--

Thank you. As expected, found 41 computers needing the patch.

Star for you. I'd give you a cookie, but alas, there are limitations of this "interent" thingy :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top