Enable Microsoft Update when Internet Explorer is not installed

For Windows to retreive updates from Microsoft Update, as opposed to Windows Update (which is the default), you have to opt in. This is usually done through the Windows Update GUI by selecting “Get updates for other Microsoft Products”

If you are manually patching a server and want to enable the Microsoft Update service then you need to have IE installed, which is a little annoying if you have removed the IE browser from your server build.

However to save you time and hassle you can also enable it using PowerShell.

Open an elevated PowerShell prompt and enter this handy little two liner:-

$mu = New-Object -ComObject Microsoft.Update.ServiceManager -Strict

$mu.AddService2(“7971f918-a847-4430-9279-4a52d1efe18d”,7,””)

To see if this was successful you can query the Services property of the $MU object:

$mu.Services

You should see something like this: (formatting isn’t correct)

Name : Microsoft Update

ContentValidationCert : {} ExpirationDate : 11/18/2014 1:27:43 AM IsManaged : False IsRegisteredWithAU : True IssueDate : 11/18/2011 1:27:43 AM OffersWindowsUpdates : True RedirectUrls : System.__ComObject ServiceID : 7971f918-a847-4430-9279-4a52d1efe18d IsScanPackageService : False CanRegisterWithAU : True ServiceUrl : https://fe1.update.microsoft.com/v6/ SetupPrefix : mu IsDefaultAUService : True

Name : Windows Update

ContentValidationCert : {} ExpirationDate : 6/18/5254 9:21:00 PM IsManaged : False IsRegisteredWithAU : False IssueDate : 1/1/2003 12:00:00 AM OffersWindowsUpdates : True RedirectUrls : System.__ComObject ServiceID : 9482f4b4-e343-43b6-b170-9a65bc822c77 IsScanPackageService : False CanRegisterWithAU : True ServiceUrl : SetupPrefix : IsDefaultAUService : False

If you only see the entry for Windows Update then something went wrong.

Advertisements
This entry was posted in Non SCOM Techy Stuff and tagged , , , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s