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?
AskJeeves2112Asked:
Who is Participating?
 
Ratnesh MishraConnect With a Mentor Commented:
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
 
Sudeep SharmaConnect With a Mentor Technical DesignerCommented:
In my opinion just windows file sharing which is on port 445 needs to be opened.

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

All Courses

From novice to tech pro — start learning today.