Hablilitar / Desabilitar Firewall remotamente (linha de comando)

Comandos para Desativar Firewall do Window


Win XP

(desativar FW) netsh firewall set opmode disable

(habilitar FW) netsh firewall set opmode enable

Win 7

(desativar FW) netsh advfirewall set allprofiles state off

(habilitar FW) netsh advfirewall set allprofiles state on

(parar serviço FW) net stop MpsSvc

(iniciar serviço FW) net start MpsSvc

* Para executar remoto, utilize PSEXEC.EXE ou envie um .BAT com os comandos para o usuário.

Advertisements

3 thoughts on “Hablilitar / Desabilitar Firewall remotamente (linha de comando)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s