Control Windows firewall state on a remote computer
You can enable or disable the Windows firewall on a remote computer.
Download the Sysinternals Suite from the sysinternals website:
-
http://download.sysinternals.com/files/SysinternalsSuite.zip
Extract this zip file and see if PsExec.exe is in there.
Disable the firewall state without stopping the firewall services on a remote computer.
Pre-Windows 2008 method:
psexec \\remotecomputer.mydomain.com “netsh firewall set opmode disable”
Post-Windows 2008 method:
psexec \\remotecomputer.mydomain.com “netsh advfirewall set currentprofile state off”
Enable the firewall state without stopping the firewall services on a remote computer.
Pre-Windows 2008 method:
psexec \\remotecomputer.mydomain.com “netsh firewall set opmode enable”
Post-Windows 2008 method:
psexec \\remotecomputer.mydomain.com “netsh advfirewall set currentprofile state on”
Leave a Reply
You must be logged in to post a comment.