Thursday, November 20, 2008

Windows Firewall Allow Remote Administration using the netsh command

This is a quick oneliner that I have used in the past.  I forget it now and then and always have a hell of a time looking it up again.  I use it to allow my Spiceworks monitoring software access to the PC's so it can do it's thing.

netsh firewall set service remoteadmin enable

You could also add this to a WPKG package with the following code.


<package id="XPFirewallRemoteAdmin" name="Allow Remote Admin" revision="1" reboot="false" notify="false" priority="2" execute="once">
<install cmd='netsh firewall set service remoteadmin enable' />
</package>

No comments: