Link to home
Start Free TrialLog in
Avatar of valuelabs97
valuelabs97Flag for India

asked on

Windows 2008 Firewall

Hi

In our environment we have enabled the windows firewall in windows 2008 servers.  After that we are not able run any VB script against those servers. What are port required for VB script using WMI and which port psexec use?
Avatar of davorin
davorin
Flag of Slovenia image

For psexec you need ports 135 and 445.
For WMI please look here:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa822854(v=VS.85).aspx
Avatar of valuelabs97

ASKER

davorin

Thank you. Will there be way to check what and all the ports enabled in a server
ASKER CERTIFIED SOLUTION
Avatar of rishabv1
rishabv1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi davorin,

Even I included the WMI in the exception list, I am not able to connect the server remotely.
Avatar of rishabv1
rishabv1

Have you added RPC port?
Hi rishabv1,

I added RPC port too
Sorry for long delay.

Example of command user to show all rules (ports) open in inbound direction:
netsh advfirewall firewall show rule name=all dir=in

At the end you can add profile=domain to list only open ports at domain firewall profile. Other options are public and private.

For checking FW state for WMI should work:
netsh advfirewall firewall show rule name="WMI"

Are you opening this ports in network profile the server is using?
Hi davorin
 
Sorry for long delay

I have opened the ports. Still we are facing the same issue.

I tried the solutions but we are no longer working on this now. Hence abandoned this Thanks for the everyone's efforts on this