Configuring a fixed port for WMI

You can configure the startup of the WMI service as the only process on the endpoint with a fixed port.

If necessary, you can check which port WMI is using by running the commands tasklist /svc /fi "services eq winmgmt" and netstat -ano | find "<process identifier (PID)>".
To configure WMI with a fixed port:Click StartRun.In the Open box, enter cmd, and click OK.The command-line interface opens.Run the following command:
winmgmt -standalonehost
A notification of the successful service configuration change is displayed.
Run the following command:
net stop winmgmt
Run the following command:
net start winmgmt
By default, WMI will use the fixed 24158 port.
To cancel changes, you can run the winmgmt /sharedhost command, and then stop and start the WMI service (winmgmt).

Changing a fixed port

If you are using Windows Firewall in the corporate IT infrastructure, you must configure a rule allowing inbound connections to the specified TCP port.
To change a fixed port for WMI:Click StartRun.In the Open box, enter dcomcnfg, and click OK.The Component Services window opens.Select the node Component ServicesComputersMy ComputerDCOM ConfigWindows Management and Instrumentation.On the main menu, click ActionProperties.The Windows Management and Instrumentation Properties window opens.Go to the Endpoints tab.Click Add.The Select DCOM protocol and endpoint window opens.Select Use static endpoint and enter a free port number.Click OK.Open the command-line interface and run the command:
net stop winmgmt
Run the following command:
net start winmgmt
The fixed port for WMI is changed.

The website uses cookies according to the cookie policy.