Quote: Originally Posted by logicearth
netsh advfirewall firewall add name="Rule name" dir=in action=allow localport=134 remoteip=localsubnet
May or may not work. Its trickier because Windows 7 has a real firewall..hence "with Advance Security" applied to the name.
no if you paste that in the cmd prompt and push the enter key, you will see it gives an error message.. You could get it less wrong by saying add rule name but it still doesn't do it it just fails and lists the options and sets the errorlevel to 1 'cos it didn't do it.
hopefully somebody is familiar with it and can get it right.