Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows » How to Enable and Disable WMI Traffic through Windows CMD
  • Screenshot 2020 05 16 at 17.13.18
    What is Jira re-indexing and why you should perform it JIRA|Confluence|Apps
  • control panel
    Enable or Disable Control Panel and Windows Settings App Windows
  • FQWD
    Logoff or Restart or Shutdown Windows PC remotely Windows
  • create a Lenovo USB Recovery key
    Windows 10 Yoga Recovery: Download the files needed to create a Lenovo USB Recovery key Windows
  • VirtualinstallationonMac
    How to install Oracle VirtualBox on a Mac device Mac
  • Featured Image Windows Security
    How to protect your Windows PC from potentially unwanted applications Security | Vulnerability Scans and Assessment
  • Windows11
    How to change Regional Settings for all users on Windows 11 Windows
  • FTP
    How to install and configure an FTP Server on Windows Server Windows Server

How to Enable and Disable WMI Traffic through Windows CMD

Posted on 21/05/202225/03/2024 Matthew By Matthew No Comments on How to Enable and Disable WMI Traffic through Windows CMD
Feature-Image

This guide will show you how to Enable and Disable WMI Traffic through Windows CMD. If you want to enable or disable a particular Windows management Instrumentations (WMI) traffic rule, you can use a special command that targets only the service you wish to activate or deactivate. To enable or disable all WMI traffic rules at once see Remote WMI Connection: How to Enable or Disable WMI Traffic at Command Prompt Using WMI Rule Group.

In this guide, we will see how to enable and disable specific WMI traffic rules through the command prompt.

Here are other related guides: Windows Management Instrumentation: WMI Commands, How to enable or disable a Remote WMI Connection in Windows, and Windows Management Instrumentation Commands.

Configuring Independent Guidelines

To use separate commands for each DCOM, WMI service, and sink, open the Start Menu by pressing the Windows key on your computer, then search for cmd and run the command prompt as administrator.

Windows Management Instrumentation

Then, to enable particular WMI traffic, copy and paste any of the commands listed below. To establish a firewall exception for DCOM port 135, use the following command:

netsh advfirewall firewall add rule dir=in name="DCOM" program=%systemroot%\system32\svchost.exe service=rpcss action=allow protocol=TCP localport=135
Network Traffic

This command returns OK, which indicates that the operation was successful. To establish a firewall exception for the WMI service, use the following command:

netsh advfirewall firewall add rule dir=in name ="WMI" program=%systemroot%\system32\svchost.exe service=winmgmt action = allow protocol=TCP localport=any
WMI Rules

This command returns OK, which indicates that the operation was successful. To establish a firewall exception for the sink that receives callbacks from a remote computer, use the following command:

netsh advfirewall firewall add rule dir=in name ="WMI" program=%systemroot%\system32\svchost.exe service=winmgmt action = allow protocol=TCP localport=any
Outgoing Connections

This command returns OK, which indicates that the operation was successful.

To establish a firewall exception for outgoing connections to a remote computer that the local computer is communicating with asynchronously, use the following command:

netsh advfirewall firewall add rule dir=out name ="WMI_OUT" program=%systemroot%\system32\svchost.exe service=winmgmt action=allow protocol=TCP localport=any
Windows Management Instrumentation

This command returns OK, which indicates that the operation was successful.

Please see see how to query a list of installed programs in Windows via Windows Settings, Control Panel, WMIC, PowerShell and Windows Registry, and How to setup and configure Remote Desktop Services via Standard Deployment on Windows Server.

Configuring Windows Management Instrumentation with Individual Rules

Run the command prompt as administrator. Then copy and paste any of the below commands to disable a specific WMI traffic rule. To disable the DCOM exception:

netsh advfirewall firewall delete rule name="DCOM"
Image5-2

The command returns Deleted 1 rule(s), then Ok. To disable the WMI service exception:

netsh advfirewall firewall delete rule name="WMI"
Image6-3

The command returns Deleted 1 rule(s), then Ok. To disable the sink exception:

netsh advfirewall firewall delete rule name="UnsecApp" 
Image7-3

To enhance system management, and enable WMI traffic. When executed, the command yields “Deleted 1 rule(s), then Ok.” If needed, disable the outgoing exception:

netsh advfirewall firewall delete rule name="WMI_OUT"
Image8-2

The command returns Deleted 1 rule(s), then Ok.

I hope you found this blog post on how to Enable and Disable WMI Traffic through Windows CMD helpful. If you have any questions, please let me know in the comment session.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Pocket (Opens in new window) Pocket
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Windows Tags:MDM Bridge WMI Provide, Microsoft Windows, Remote Access, Remote Desktop, Remote Desktop Services, Remote Server Administration Tools, RemoteConnection

Post navigation

Previous Post: How to remove a user from a Slack Channel
Next Post: How to set an account expiration date in Active Directory

Related Posts

  • tpmbiosactivation
    Enable TPM: Determine if TPM is present Windows
  • 1 WeXxkEX0JG3oB781HD8Hrg 1
    OOBESETTINGSMULTIPLEPAGE error on Windows 10 Windows
  • Install and report or install or shutdown with BitLocker
    BitLocker Windows Update Shutdown or Reboot option behavior Windows
  • image 81
    How to generate your trial SSL Certificate using DigiCert PKI platform Windows
  • Fix 0x800f0831 Windows Update
    Fix 0x800f0831 Error when installing Windows update Windows
  • Featured image new 1
    Detect if an application was uninstalled on Windows: Find out who has uninstalled an application via Windows Event Viewer Windows

More Related Articles

tpmbiosactivation Enable TPM: Determine if TPM is present Windows
1 WeXxkEX0JG3oB781HD8Hrg 1 OOBESETTINGSMULTIPLEPAGE error on Windows 10 Windows
Install and report or install or shutdown with BitLocker BitLocker Windows Update Shutdown or Reboot option behavior Windows
image 81 How to generate your trial SSL Certificate using DigiCert PKI platform Windows
Fix 0x800f0831 Windows Update Fix 0x800f0831 Error when installing Windows update Windows
Featured image new 1 Detect if an application was uninstalled on Windows: Find out who has uninstalled an application via Windows Event Viewer Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • Screenshot 2020 05 16 at 17.13.18
    What is Jira re-indexing and why you should perform it JIRA|Confluence|Apps
  • control panel
    Enable or Disable Control Panel and Windows Settings App Windows
  • FQWD
    Logoff or Restart or Shutdown Windows PC remotely Windows
  • create a Lenovo USB Recovery key
    Windows 10 Yoga Recovery: Download the files needed to create a Lenovo USB Recovery key Windows
  • VirtualinstallationonMac
    How to install Oracle VirtualBox on a Mac device Mac
  • Featured Image Windows Security
    How to protect your Windows PC from potentially unwanted applications Security | Vulnerability Scans and Assessment
  • Windows11
    How to change Regional Settings for all users on Windows 11 Windows
  • FTP
    How to install and configure an FTP Server on Windows Server Windows Server

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,836 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.