Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Restore WMI to Default State and Port Range

Posted on 2014-01-29
2
Medium Priority
?
2,249 Views
Last Modified: 2014-01-31
I followed these steps to force WMI to use one port. Now I would like to reset it back to use dynamic port allocation. Anybody know how I would do this?

This is what I did:

At the command prompt:
1. Type winmgmt -standalonehost
2. Stop the WMI service by typing the command net stop "Windows Management Instrumentation"
3. Restart the WMI service again in a new service host by typing net start "Windows Management Instrumentation"
4. Establish a new port number for the WMI service by typing netsh firewall add portopening TCP 24158 WMIFixedPort.

How do I change to use WMIDynamicPort if that exists...?
0
Comment
Question by:rawinnlnx9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
Ratnesh Mishra earned 2000 total points
ID: 39819546
You can follow the following article from microsoft http://support.microsoft.com/kb/217351  in order to reset WMI configuration .


1. If you do not want to configure DCOM to use a range of ports, delete the registry key, and then restart your computer.
2. If you want to configure DCOM on your computer to use a range of ports, use the
HKEY_LOCAL_MACHINE\Software\Microsoft\Rpc\Internet
registry key to configure the range of ports, and follow the instructions in the following white paper:
Using Distributed COM with Firewalls
http://msdn.microsoft.com/en-us/library/ms809327.aspx

Additional Information :-
You can also follow this :

WMI runs as part of a shared service host with ports assigned through DCOM by default.
As you mentioned you followed microsoft article  http://msdn.microsoft.com/en-us/library/bb219447(v=vs.85).aspx

However based on the article http://support.microsoft.com/kb/832017 which states that
WMI ports are
In Windows Server 2008 and later versions, and in Windows Vista and later versions, the default dynamic port range changed to the following range:
Start port: 49152
End port: 65535

Windows 2000, Windows XP and Windows Server 2003 use a dynamic port range of
Start port: 1025
End port: 5000

So in order to reset you can use the Component Services Manager [comexp.msc]to set the range that the random port is allocated from to something small and then manually open each one.

Step 1 : Goto Run Command , and Type "comexp.msc" without quote.
Step 2 : Expand "Component Services" , expand "Computers" and then right click on "My Computer" and select Properties.
Step 3 : Click on the "Default Protocol" tab . and then under DCOM Protocols double click on the entry “Connection oriented TCP/IP”.
Step 4 : Use the Add button to add a suitable range of ports(as mentioned in the above said article)  and click OK. After this all COM+/DCOM services will select a port in this range of course after reboot.

Note ::
To open the ports , open the Windows Firewall, and add one entry for each port in the range mentioned and one for port 135
Random ports only need to be open on the remote machine.


Step 5: Reboot the machine.
0
 
LVL 9

Author Closing Comment

by:rawinnlnx9
ID: 39824662
Outstanding. I'd say more but how many ways can you say outstanding?
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Know what services you can and cannot, should and should not combine on your server.
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question