Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I require a VB script which when run gives me the details about the latest Windows patch that was updated on the servers along with the date & time.

share|improve this question
2  
Have you considered using WSUS instead of doing this manually? –  jscott Mar 26 '12 at 13:02
    
Anu- I hope that you're not asking anyone on this site to write one for you, or search Google for you? You haven't told us what you've tried so far and what did or didn't work. –  mfinni Mar 26 '12 at 13:17

4 Answers 4

You can do this with the following command:

wmic /node:"<servername>" qfe get description,fixComments,hotfixid,installedby,installedon,servicepackineffect

Where is the hostname of your server.

You might want to take a look at WSUS.

share|improve this answer

I have no idea but you could try something like this

http://forums.eeye.com/index.php?/topic/1883-windows-patch-installation-date/

share|improve this answer

Please use powershell for new / future scripting on windows platform. it is the modern oo based shell environment and should meet your needs. VBS is a pre 2000 (over 10 years old) scripting solution that should be on the retirement technology list.

This blog post has lots of interesting info regarding your need: http://blogs.technet.com/b/heyscriptingguy/archive/2011/08/13/use-powershell-to-audit-and-install-windows-patches.aspx

There are several sites that contain pre-built powershell scripts you can bing / google for.

Adding: Agree with other commentors that WSUS is a good solution for this as well.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.