WMI / Remote Registry ports for Windows Firewall

Posted on 2014-01-13
Medium Priority
Last Modified: 2014-01-29
In order to run Powershell scripts to gather registry info such as installed software, configuration info etc., which Windows firewall ports need to be opened?
Question by:AskJeeves2112
LVL 30

Assisted Solution

by:Sudeep Sharma
Sudeep Sharma earned 600 total points
ID: 39777019
In my opinion just windows file sharing which is on port 445 needs to be opened.


Accepted Solution

Ratnesh Mishra earned 900 total points
ID: 39777212
I am not sure whether its possible in windows 7 and 2008 R2 and afterward OS as Microsoft has blocked up the loop holes in order to safeguard. However if you want you can set specific port for the query by following the article


Extract of the article:-
To set up a fixed port for WMI
At the command prompt, type winmgmt -standalonehost
Stop the WMI service by typing the command net stop "Windows Management Instrumentation"
Restart the WMI service again in a new service host by typing net start "Windows Management Instrumentation"
Establish a new port number for the WMI service by typing netsh firewall add portopening TCP 24158 WMIFixedPort

Author Comment

ID: 39819465
Thanks for your feedback!

Featured Post

Increase Security & Decrease Risk with NSPM Tools

Analyst firm, Enterprise Management Associates (EMA) reveals significant benefits to enterprises when using Network Security Policy Management (NSPM) solutions, while organizations without, experienced issues including non standard security policies and failed cloud migrations

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

607 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