0

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.

  • 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
3

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.

| improve this answer | |
0

I have no idea but you could try something like this

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

| improve this answer | |
0

Here you go: http://technet.microsoft.com/library/ee176545.aspx

| improve this answer | |
0

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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