Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Contact
  • Reviews
  • Toggle search form
Home » Windows » How to Enable and Disable WMI Traffic through Windows CMD
  • GitLabrunner
    Install and Register GitLab Runner on Windows Version Control System
  • chamedk8s featured
    Install CNF Certified Kubernetes in AWS AWS/Azure/OpenShift
  • sandboxx
    Use Windows Sandbox as a security feature Virtualization
  • 05kvj2jzbpj1ugp4etb4gdf 19.fit scale.size 2698x1517 e1690630247655
    Various methods to launch the Event Viewer Windows Server
  • How to manage user permission in AD and Synology
    Manage User Permission on Synology with Active Directory [Part 1] Reviews
  • blue screen error during windows 10 upgrade thumbnail
    Replace a blue screen error with a blank screen for system errors Windows
  • mfa
    Microsoft Azure Multi-Factor Authentication (MFA) AWS/Azure/OpenShift
  • powershell
    How to install and uninstall PowerShell on macOS via Homebrew Mac

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.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to 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

  • WAMPServer Virtual Host
    How to create Virtual Hosts in a WAMPserver Web Server
  • create a Lenovo USB Recovery key
    Windows 10 Yoga Recovery: Download the files needed to create a Lenovo USB Recovery key Windows
  • Best Disk Partition Manager for Mac
    How to extend System Drive Partition on Windows Windows
  • screenshot 2020 03 07 at 22.25.21
    How to configure the FrontFace Lockdown Tool Windows
  • windows update 03
    Check if Windows Updates were installed Windows
  • Prevent Local Administrators from turning off BitLocker 1
    Prevent Local Administrators from managing BitLocker with the manage-bde command Windows

More Related Articles

WAMPServer Virtual Host How to create Virtual Hosts in a WAMPserver Web Server
create a Lenovo USB Recovery key Windows 10 Yoga Recovery: Download the files needed to create a Lenovo USB Recovery key Windows
Best Disk Partition Manager for Mac How to extend System Drive Partition on Windows Windows
screenshot 2020 03 07 at 22.25.21 How to configure the FrontFace Lockdown Tool Windows
windows update 03 Check if Windows Updates were installed Windows
Prevent Local Administrators from turning off BitLocker 1 Prevent Local Administrators from managing BitLocker with the manage-bde command 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

  • GitLabrunner
    Install and Register GitLab Runner on Windows Version Control System
  • chamedk8s featured
    Install CNF Certified Kubernetes in AWS AWS/Azure/OpenShift
  • sandboxx
    Use Windows Sandbox as a security feature Virtualization
  • 05kvj2jzbpj1ugp4etb4gdf 19.fit scale.size 2698x1517 e1690630247655
    Various methods to launch the Event Viewer Windows Server
  • How to manage user permission in AD and Synology
    Manage User Permission on Synology with Active Directory [Part 1] Reviews
  • blue screen error during windows 10 upgrade thumbnail
    Replace a blue screen error with a blank screen for system errors Windows
  • mfa
    Microsoft Azure Multi-Factor Authentication (MFA) AWS/Azure/OpenShift
  • powershell
    How to install and uninstall PowerShell on macOS via Homebrew Mac

Subscribe to Blog via Email

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

Join 1,839 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

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.