Firewall An/Aus

netsh advfirewall set allprofiles state on
netsh advfirewall set allprofiles state off

Reset

netsh advfirewall reset

Port erlauben/löschen

netsh advfirewall firewall add rule name="PORTNAME" dir=in action=allow protocol=PROTOKOLL localport=PORT
netsh advfirewall firewall delete rule name="PORTNAME" dir=in action=allow protocol=PROTOKOLL localport=PORT

Remote Management erlauben

netsh advfirewall firewall set rule group="remote administration" new enable=yes

Remote Desktop erlauben

netsh advfirewall firewall set rule group="remote desktop" new enable=Yes