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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tip: HotFixes 1

Status
Not open for further replies.

Crundy

Programmer
Joined
Jul 20, 2001
Messages
305
Location
GB
Here's a good tip to help you keep your hotfixes up to date:
download the Microsoft hotfix checking tool at:
and change your default script engine to cscript by issuing this command at the command prompt:
CSCRIPT.EXE //H:Cscript

By default, the checker will send output to the command line, but you can make it e-mail instead by creating a vbs file called email.vbs containing this text:

function Notify(sType, sBulletin, sTitle, sLink, sMachine)
Set objMsg = CreateObject("CDO.Message")
objMsg.From = "hfnotify@yourcompany.com"
objMsg.To = "you@yourcompany.com"
objMsg.Subject = "Missing hotfix detected!"
objMsg.TextBody = "Hotfix checker has detected a missing hotfix:" &vbcrlf & "Microsoft security bulletin (" & sBulletin & ") " & sTitle & " Link: & sLink
objMsg.Send
Set objMsg = Nothing
end function

and change the third line in the HFCHECK script to:
<script language=&quot;VBScript&quot; src=&quot;email.vbs&quot;/>

Then you can put HFCHECK into the windows scheduler, and you will get an e-mail notifying you when a new hotfix has been released

No more continuous checking of Microsoft's critical updates page!! ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top