Enable Microsoft Update

Once annoyance I have always had with Windows is that once I run Office (or something else) and I say “NO!” to enabling updates for it, there’s never seemed to be a simple way of getting back to enable those updates.  You Google around for it and find a lot of posts saying “goto http://update.microsoft.com/microsoftupdate and follow the directions” but it never works for me.

I found this today, used it on two servers to enable updates for Report Viewer, SQL Server, Microsoft Access Database something or other horse shit, and some other Microsoft stuff.

Set ServiceManager = CreateObject("Microsoft.Update.ServiceManager")
ServiceManager.ClientApplicationID = "My App"

‘add the Microsoft Update Service, GUID
Set NewUpdateService = ServiceManager.AddService2(“7971f918-a847-4430-9279-4a52d1efe18d”,7,””)

It’s vbscript (obviously) and I found it here: http://msdn.microsoft.com/en-us/library/windows/desktop/aa826676%28v=vs.85%29.aspx


Comments (0)

› No comments yet.

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Pingbacks (0)

› No pingbacks yet.