Skip to content

Instantly share code, notes, and snippets.

@codekoala
Last active July 25, 2020 00:51
Show Gist options
  • Save codekoala/1b614fc8ae104a6b02d8 to your computer and use it in GitHub Desktop.
Save codekoala/1b614fc8ae104a6b02d8 to your computer and use it in GitHub Desktop.
Windows Firewall for winexe
Windows 2003: netsh firewall add portopening TCP 139 winexe enable subnet
Windows Vista
=============
netsh advfirewall firewall set rule group="Remote Service Management" new enable=yes
Windows 7
=========
netsh advfirewall firewall add rule name=winexe dir=in action=allow protocol=TCP localport=139
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f
== LINKS ==
winexe port: http://insidetrust.blogspot.com/2011_03_01_archive.html
http://windowsitpro.com/windows-server/top-10-windows-firewall-netsh-commands
http://www.windowsnetworking.com/articles-tutorials/windows-2003/Using-Netsh-Windows-Firewall.html
http://technet.microsoft.com/en-us/library/cc771046(v=ws.10).aspx#bkmk_addportopening
https://stackoverflow.com/questions/4579643/use-netsh-advfirewall-to-add-windows-7-firewall-exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment