{"id":2330,"date":"2019-07-12T16:05:39","date_gmt":"2019-07-12T16:05:39","guid":{"rendered":"http:\/\/galhano.com\/blog\/?p=2330"},"modified":"2026-01-20T10:39:30","modified_gmt":"2026-01-20T10:39:30","slug":"enable-disable-firewall-from-command-line","status":"publish","type":"post","link":"https:\/\/galhano.com\/blog\/?p=2330","title":{"rendered":"Enable\/disable firewall from command line"},"content":{"rendered":"<p>[text]<br \/>\npsexec \\\\pcname netssh firewall set opmode disable<br \/>\n[\/text]<\/p>\n<p>Get PsTools:<br \/>\nhttps:\/\/docs.microsoft.com\/en-us\/sysinternals\/downloads\/pstools<\/p>\n<p>more info:<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"qu8B8ClKN7\"><p><a href=\"https:\/\/www.windows-commandline.com\/enable-disable-firewall-command-line\/\">Enable\/disable firewall from command line<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Enable\/disable firewall from command line&#8221; &#8212; Windows Command Line\" src=\"https:\/\/www.windows-commandline.com\/enable-disable-firewall-command-line\/embed\/#?secret=40WZ1XyG9H#?secret=qu8B8ClKN7\" data-secret=\"qu8B8ClKN7\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[text] psexec \\\\pcname netssh firewall set opmode disable [\/text] Get PsTools: https:\/\/docs.microsoft.com\/en-us\/sysinternals\/downloads\/pstools more info: Enable\/disable firewall from command line<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,6],"tags":[],"class_list":["post-2330","post","type-post","status-publish","format-standard","hentry","category-code-snippets","category-networking","author-admin"],"_links":{"self":[{"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2330"}],"version-history":[{"count":2,"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2330\/revisions"}],"predecessor-version":[{"id":2332,"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2330\/revisions\/2332"}],"wp:attachment":[{"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}