Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

March 20, 2006 12:00 AM

Silently Disable Internet Controls the Easy Way

Windows IT Pro
InstantDoc ID #49585
Rating: (0)

A little-known Microsoft Knowledge Base article, "How to stop an ActiveX control from running in Internet Explorer" (http://support.microsoft.com/?kbid=240797), documents how to set a "kill bit" to disable particular ActiveX controls in Microsoft Internet Explorer (IE). This technique is useful if you want to restrict IE on your network. Unlike simply disabling active content in IE, setting the kill bit tells IE to silently reject a specific control without sending the annoying warning about page content not rendering properly with the control disabled.

Probably one reason few people use this technique is that they must find the class ID (CLSID) for the control to disable it—and the techniques the article offers for finding the CLSID aren't realistic. The article suggests contacting the OEM for the particular control (!) or searching through HKCR\CLSID in the registry. You might have no idea who the OEM is (particularly in the case of malicious software—malware—browser controls) and HKCR\ CLSID might contain thousands of control entries, so neither suggestion is workable. However, it's simple to set a kill bit if you approach it from the standpoint of knowing that a control you want to disable exists. Here's the technique I show systems administrators for finding a CLSID and disabling a control. As an example, I'll disable the Macromedia Shockwave player, something you might want to do on Terminal Server systems.

If the control is already on a machine on your network, go to that machine, open IE, select the Tools menu, and choose Internet Options. On the General tab, click Settings, then click View Objects. The window displays all the downloaded controls with friendly names. Right-click the setting you want to kill and select Properties. The ID line in the Properties dialog box will contain the CLSID. Just copy that line, and you have the CLSID (in this case, {D27CDB6EAE6D-11CF-96B8-444553540000}).

If the control you want to kill isn't on the machine, open IE and browse to a site that prompts you to download the control. Refuse the download, and after the page loads, select Source from IE's View menu. Search for the string clsid: in the page. The alphanumeric CLSID will immediately follow that string in the format "clsid:D27CDB6E-AE6D-11CF-96B8-444553540000". Copy the value (without the double quotes and the clsid: preface) and enclose it in curly brackets, then open the registry editor and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility. Create a new subkey whose name is the CLSID you just copied. Don't forget the curly brackets. Beneath that subkey, create a REG_DWORD value named Compatibility Flags with a value of hexadecimal 400 or decimal 1024. That's it; the control will no longer work in IE (nor will it prompt users to download).

If you need to disable a control on multiple machines, you can select the subkey—in the case of the Shockwave player it would be HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ Internet Explorer\ActiveX Compatibility\ { D27CDB6E-AE6D-11CF-96B8-444553540000}—export it from the registry editor, and import it onto the machines where it's needed.

Alternatively, you could create a custom template that sets the registry value and deploy the template through Group Policy.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.