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
  • Panic failed
    Panic: Failed to register the GitLab-runner, you may be having network issues Version Control System
  • Jenkins
    How to Install Jenkins Automation Server on Ubuntu 20.04 LTS Linux
  • server 2022
    Upgrade Windows Server 2019 to 2022 via iDRAC Windows Server
  • prettier boot image
    How to stop Cisco Webex Meetings from starting up automatically on macOS Mac
  • Implement Azure Bicep
    How to Deploy Azure Resources Using Azure Bicep Automation
  • Screenshot 2020 05 13 at 19.23.25
    AWS Command-Line Interface: How to configure AWS CLI [Part 1] AWS/Azure/OpenShift
  • Banner
    How to Stop OneDrive from Starting Up Automatically on Windows 11 Windows
  • screenshot 2020 03 29 at 18.19.50
    Shortcut for Windows update: How to create a shortcut for Windows scheduled task 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

  • VMware workstation networking issues
    Network cable Unplugged: Fix VMware “Warning – Multiple default gateways are intended to provide redundancy to a single network Virtualization
  • Windows10 11
    Block Upgrade to Windows 11 via Group Policy or Registry Windows
  • Screenshot 2020 06 25 at 23.38.40
    What is Registry Editor and how to access the registry hives Windows
  • Featured image 2
    5 Steps to Fix Outlook continually prompts for passwords Windows
  • domain14 1
    How To Configure a Domain Password Policy Windows
  • Feature image Audio settings
    Master Your Sound Experience: How to Manage Audio Settings on Windows 11 Windows

More Related Articles

VMware workstation networking issues Network cable Unplugged: Fix VMware “Warning – Multiple default gateways are intended to provide redundancy to a single network Virtualization
Windows10 11 Block Upgrade to Windows 11 via Group Policy or Registry Windows
Screenshot 2020 06 25 at 23.38.40 What is Registry Editor and how to access the registry hives Windows
Featured image 2 5 Steps to Fix Outlook continually prompts for passwords Windows
domain14 1 How To Configure a Domain Password Policy Windows
Feature image Audio settings Master Your Sound Experience: How to Manage Audio Settings on Windows 11 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

  • Panic failed
    Panic: Failed to register the GitLab-runner, you may be having network issues Version Control System
  • Jenkins
    How to Install Jenkins Automation Server on Ubuntu 20.04 LTS Linux
  • server 2022
    Upgrade Windows Server 2019 to 2022 via iDRAC Windows Server
  • prettier boot image
    How to stop Cisco Webex Meetings from starting up automatically on macOS Mac
  • Implement Azure Bicep
    How to Deploy Azure Resources Using Azure Bicep Automation
  • Screenshot 2020 05 13 at 19.23.25
    AWS Command-Line Interface: How to configure AWS CLI [Part 1] AWS/Azure/OpenShift
  • Banner
    How to Stop OneDrive from Starting Up Automatically on Windows 11 Windows
  • screenshot 2020 03 29 at 18.19.50
    Shortcut for Windows update: How to create a shortcut for Windows scheduled task 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,827 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.