Tech Tip: This is how You Disable Dcom & close Down Port 135



Is port 135 flapping in the wind ?

Possibly being a security risk if your firewall is not blocking this port.
Even if your firewall is blocking this port. Just the thought of this port
being left open by the Microsoft operating system annoys you and you would
like that port 135 closed once and for all

Check to see what ports are currently open. This is best done when you first
boot in to windows and have not connected to the net

1)open command prompt - start > run > cmd

2)type in the following command:

netstat -an

-a this switch lists all listening ports
-n lists all addresses & ports in numerical order

You will see port 135 listening

Note: Before making any registry changes or continuing with this procedure.

- Create a system restore point, Backup your computer & export each registry
path before modifying any Registry entries.


....This is how you disable Dcom & Close Port 135

Disable Dcom

1) Start Registry Editor - start > run > regedt32

2) Navigate to the following registry Key

- HKEY_LOCAL_MACHINE \ Software \ Microsoft \ OLE

3) Located at the right side. Select the item named EnableDCOM and modify
the value to N


This next step Will Close Port 135

4) Open registry editor & navigate to this registry key

HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Rpc

5) Right click on & Modify the value named DCOM Protocols

6) Under the Value Data, you will see values like
DCOM Protocols

Value Data:

ncacn_ip_tcp REG_SZ rpcrt4.dll
ncacn_nb_tcp REG_SZ rpcrt4.dll
ncacn_np REG_SZ rpcrt4.dll
ncacn_ip_udp REG_SZ rpcrt4.dll
ncacn_http REG_SZ rpcrt4.dll

Any value attached to DCOM Protocols is what keeps the Port 135 / epmap
(endpoint mapper)

7) Under Value Data highligt Everything listed and DELETE All by using your
Delete key or your Backspace key.

DCOM Protocols

Value Data:



Click ok

All there should be is DCOM Protocols with no values

8) Done with registry editor ..exit or close registry editor

9) Open Control Panel > Administrative Tools > double click Services

Disable the following services since DCOM has also disabled


- COM+ Event System
- COM+ System Application
- System Event Notification

10) Finally Restart the computer...

For verification when your computer has restarted open the command prompt.

Type netstat -an and for certain you will see port 135 closed.

Then you can celebrate... yippee!, dance around the room,scream out your
window.. and say bye bye port 135!

Hope this has Helped you in finally closing the Pesky Port 135.

Have a Good One

.



Relevant Pages

  • Re: Serial Port Application
    ... Can the registry be viewed from a Windows CE image? ... drivers which are actually active. ... >> Although the serial com port I use is defined under. ... I have created a new serial test program ...
    (microsoft.public.windowsce.app.development)
  • Re: How do I clean out unwanted virtual COM ports?
    ... If I have a parade of devices with unique serial numbers the registry grows and grows with clutter. ... The problem is even worse when the devices are USB to serial devices that are assigned the next available COM port as well. ... However if the device is re-tested it will want to run the found new hardware wizard and add to the registry. ... I know the devices are gone for good and I want to pass this gem of knowledge on to windows to remove clutter and free consumed resources. ...
    (microsoft.public.windowsxp.general)
  • Re: benötigte Ports für FE-BE-Kommunikation durch eine Firewall
    ... > Firewall hindurch gehen muss. ... One port for the Active Directory logon and directory replication interface ... This value is not set in the DSProxy or System ... To map the port in the registry: ...
    (microsoft.public.de.german.exchange2000.setup.installation)
  • Re: LPT1 missing port
    ... Windows Printing Team ... Search the Microsoft Knowledge Base here: ... I'm no expert but I added the CM value to the port list as you said. ... I have finally got around to looking at the registry in Windows XP ...
    (microsoft.public.windowsxp.print_fax)
  • Re: Setting TCP/ip ports for exchange and firewalls
    ... Setting TCP/IP Port Numbers for Internet Firewalls ... This article contains information about modifying the registry. ... This article explains how to configure the Microsoft Exchange Information ... To configure the RPC Port for the Microsoft Exchange Directory Service: ...
    (microsoft.public.exchange.setup)