• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6482
  • Last Modified:

WMI / Remote Registry ports for Windows Firewall

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?
0
AskJeeves2112
Asked:
AskJeeves2112
2 Solutions
 
Sudeep SharmaTechnical DesignerCommented:
In my opinion just windows file sharing which is on port 445 needs to be opened.

Sudeep
0
 
Ratnesh MishraCommented:
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

http://msdn.microsoft.com/en-us/library/bb219447(v=vs.85).aspx

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
0
 
AskJeeves2112Author Commented:
Thanks for your feedback!
0

Featured Post

When ransomware hits your clients, what do you do?

MSPs: Endpoint security isn’t enough to prevent ransomware.
As the impact and severity of crypto ransomware attacks has grown, Webroot has fought back, not just by building a next-gen endpoint solution capable of preventing ransomware attacks but also by being a thought leader.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now