{"id":771627,"date":"2023-12-10T07:29:13","date_gmt":"2023-12-10T13:29:13","guid":{"rendered":"https:\/\/blogging-techies.com\/fr\/comment-afficher-letat-du-pare-feu-powershell\/"},"modified":"2023-12-10T07:29:13","modified_gmt":"2023-12-10T13:29:13","slug":"comment-afficher-letat-du-pare-feu-powershell","status":"publish","type":"post","link":"https:\/\/blogging-techies.com\/fr\/comment-afficher-letat-du-pare-feu-powershell\/","title":{"rendered":"Comment afficher l\u2019\u00e9tat du pare-feu Powershell ?"},"content":{"rendered":"<p class=\"text-dark border-bottom pb-3\">PowerShell vous permet de conna\u00eetre l&#39;\u00e9tat du pare-feu Windows en tapant Get-NetFirewallProfile dans la fen\u00eatre PowerShell.  Dans les pare-feu Windows, une liste de tous les profils r\u00e9seau r\u00e9pertori\u00e9s selon que le pare-feu Windows est activ\u00e9 pour chacun d&#39;entre eux s&#39;affiche.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Comment_puis-je_verifier_letat_du_pare-feu\"><\/span>Comment puis-je v\u00e9rifier l&#39;\u00e9tat du pare-feu\u00a0?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<li>Vous serez redirig\u00e9 vers la fen\u00eatre du Panneau de configuration apr\u00e8s avoir cliqu\u00e9 sur le bouton D\u00e9marrer de Windows.<\/li>\n<li>En cliquant sur le lien Security Center, nous ouvrirons le Security Center.<\/li>\n<li>Le pare-feu Windows s&#39;ex\u00e9cute tant que l&#39;en-t\u00eate du pare-feu indique OUI.<\/li>\n<h2><span class=\"ez-toc-section\" id=\"Comment_afficher_les_regles_du_pare-feu_Windows_dans_Powershell\"><\/span>Comment afficher les r\u00e8gles du pare-feu Windows dans Powershell ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Vos r\u00e8gles de pare-feu peuvent \u00eatre consult\u00e9es \u00e0 l&#39;aide de Get-NetFirewallRule.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Comment_verifier_si_le_pare-feu_Windows_est_active_ou_desactive_dans_Powershell\"><\/span>Comment v\u00e9rifier si le pare-feu Windows est activ\u00e9 ou d\u00e9sactiv\u00e9 dans Powershell ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Ex\u00e9cutez la cmdlet Get-NetFirewallProfile pour vous assurer que l\u2019\u00e9tat du pare-feu Windows est exact.  Pour d\u00e9sactiver le pare-feu Windows sur les trois profils clients, Microsoft l&#39;a d\u00e9sactiv\u00e9.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Comment_savoir_si_le_pare-feu_Windows_est_actif\"><\/span>Comment savoir si le pare-feu Windows est actif ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<li>Ouvrez l&#39;invite de commande.<\/li>\n<li>Ouvrez C:\/netsh et ex\u00e9cutez C:\/netsh.  Netsh > pare-feu.  Pare-feu Netsh > Afficher l&#39;\u00e9tat.  Il y aura \u00e9galement les informations suivantes telles que : Profil = Domaine.  Mode d&#39;exception = Activer.  Mode de r\u00e9ponse multidiffusion\/diffusion = .<\/li>\n<h2><span class=\"ez-toc-section\" id=\"Comment_verifier_les_regles_du_pare-feu_Windows_dans_Powershell\"><\/span>Comment v\u00e9rifier les r\u00e8gles du pare-feu Windows dans Powershell ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<li>Nouveau-NetFirewallRule.<\/li>\n<li>Copiez-NetFirewallRule.<\/li>\n<li>D\u00e9sactivez-NetFirewallRule.<\/li>\n<li>Activez-NetFirewallRule.<\/li>\n<li>Obtenez-NetFirewallRule.<\/li>\n<li>Supprimer-NetFirewallRule.<\/li>\n<li>Renommer-NetFirewallRule.<\/li>\n<li>D\u00e9finir-NetFirewallRule.<\/li>\n<h2><span class=\"ez-toc-section\" id=\"Comment_verifier_les_regles_du_pare-feu\"><\/span>Comment v\u00e9rifier les r\u00e8gles du pare-feu\u00a0?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<li>S\u00e9lectionnez Param\u00e8tres dans le menu principal.<\/li>\n<li>L&#39;option Pare-feu doit \u00eatre s\u00e9lectionn\u00e9e sous Connexions r\u00e9seau.<\/li>\n<li>Cliquez sur l&#39;onglet R\u00e8gles.<\/li>\n<li>Vous devez choisir un profil de pare-feu appropri\u00e9 en acc\u00e9dant \u00e0 Pare-feu actuels dans la barre d&#39;adresse.<\/li>\n<h2><span class=\"ez-toc-section\" id=\"Comment_verifier_letat_du_pare-feu_dans_Putty\"><\/span>Comment v\u00e9rifier l\u2019\u00e9tat du pare-feu dans Putty ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<li>Tout d\u2019abord, vous devez ex\u00e9cuter nsh advfirewall show allprofiles state: .<\/li>\n<li>La deuxi\u00e8me \u00e9tape consiste \u00e0 ex\u00e9cuter phstexec -u ->domain\/username\/netsh advfirewall.  Configurez tous les profils avec le nom d&#39;utilisateur utilis\u00e9 sur ce PC.<\/li>\n<h2><span class=\"ez-toc-section\" id=\"Comment_verifier_les_parametres_du_pare-feu_dans_Powershell\"><\/span>Comment v\u00e9rifier les param\u00e8tres du pare-feu dans Powershell ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>L&#39;utilisation de l&#39;interface graphique n\u00e9cessite que vous saisissiez la case Pare-feu Windows avec s\u00e9curit\u00e9 avanc\u00e9e ou Pare-feu Windows Defender avec s\u00e9curit\u00e9 avanc\u00e9e pour acc\u00e9der \u00e0 ces param\u00e8tres.  Lorsque vous ouvrez la console, vous pouvez choisir parmi trois profils d\u00e9j\u00e0 disponibles.  consultez la commande PowerShell Get-NetFirewallProfile pour des configurations similaires.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Comment_ouvrir_le_pare-feu_dans_Powershell\"><\/span>Comment ouvrir le pare-feu dans Powershell ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Dans la prochaine \u00e9tape, vous pourrez utiliser Powershell en tant qu&#39;administrateur en ouvrant un port TCP en cr\u00e9ant une r\u00e8gle de pare-feu.  Assurez-vous que la r\u00e8gle de pare-feu est correctement configur\u00e9e.  L&#39;entr\u00e9e \u00e9tait autoris\u00e9e sur le port TCP 80 via une r\u00e8gle de pare-feu que nous avons d\u00e9velopp\u00e9e avec Powershell.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Comment_verifier_letat_du_pare-feu_Windows\"><\/span>Comment v\u00e9rifier l\u2019\u00e9tat du pare-feu Windows ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<li>Vous serez redirig\u00e9 vers la fen\u00eatre du Panneau de configuration apr\u00e8s avoir cliqu\u00e9 sur l&#39;ic\u00f4ne Windows.<\/li>\n<li>Le tableau de bord syst\u00e8me et s\u00e9curit\u00e9 appara\u00eetra lorsque vous cliquerez dessus.<\/li>\n<li>Cliquez sur Pare-feu Windows.  <\/li>\n<li>Une coche verte indique que le pare-feu Windows est en cours d&#39;ex\u00e9cution.<\/li>\n<h2><span class=\"ez-toc-section\" id=\"Comment_activer_le_pare-feu_Windows_Powershell\"><\/span>Comment activer le pare-feu Windows Powershell ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Placez la commande \u00ab Set-NetFirewallProfile -Enabled True \u00bb dans Windows PowerShell (administrateur) pour activer\/d\u00e9sactiver le pare-feu Windows Defender.<\/p>\n  <div id=\"ez-toc-container\" class=\"ez-toc-v2_0_88 ez-toc-wrap-center counter-flat ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blogging-techies.com\/fr\/comment-afficher-letat-du-pare-feu-powershell\/#Comment_puis-je_verifier_letat_du_pare-feu\" >Comment puis-je v\u00e9rifier l&#39;\u00e9tat du pare-feu\u00a0?<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/blogging-techies.com\/fr\/comment-afficher-letat-du-pare-feu-powershell\/#Comment_afficher_les_regles_du_pare-feu_Windows_dans_Powershell\" >Comment afficher les r\u00e8gles du pare-feu Windows dans Powershell ?<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/blogging-techies.com\/fr\/comment-afficher-letat-du-pare-feu-powershell\/#Comment_verifier_si_le_pare-feu_Windows_est_active_ou_desactive_dans_Powershell\" >Comment v\u00e9rifier si le pare-feu Windows est activ\u00e9 ou d\u00e9sactiv\u00e9 dans Powershell ?<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/blogging-techies.com\/fr\/comment-afficher-letat-du-pare-feu-powershell\/#Comment_savoir_si_le_pare-feu_Windows_est_actif\" >Comment savoir si le pare-feu Windows est actif ?<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/blogging-techies.com\/fr\/comment-afficher-letat-du-pare-feu-powershell\/#Comment_verifier_les_regles_du_pare-feu_Windows_dans_Powershell\" >Comment v\u00e9rifier les r\u00e8gles du pare-feu Windows dans Powershell ?<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/blogging-techies.com\/fr\/comment-afficher-letat-du-pare-feu-powershell\/#Comment_verifier_les_regles_du_pare-feu\" >Comment v\u00e9rifier les r\u00e8gles du pare-feu\u00a0?<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/blogging-techies.com\/fr\/comment-afficher-letat-du-pare-feu-powershell\/#Comment_verifier_letat_du_pare-feu_dans_Putty\" >Comment v\u00e9rifier l\u2019\u00e9tat du pare-feu dans Putty ?<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/blogging-techies.com\/fr\/comment-afficher-letat-du-pare-feu-powershell\/#Comment_verifier_les_parametres_du_pare-feu_dans_Powershell\" >Comment v\u00e9rifier les param\u00e8tres du pare-feu dans Powershell ?<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/blogging-techies.com\/fr\/comment-afficher-letat-du-pare-feu-powershell\/#Comment_ouvrir_le_pare-feu_dans_Powershell\" >Comment ouvrir le pare-feu dans Powershell ?<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/blogging-techies.com\/fr\/comment-afficher-letat-du-pare-feu-powershell\/#Comment_verifier_letat_du_pare-feu_Windows\" >Comment v\u00e9rifier l\u2019\u00e9tat du pare-feu Windows ?<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/blogging-techies.com\/fr\/comment-afficher-letat-du-pare-feu-powershell\/#Comment_activer_le_pare-feu_Windows_Powershell\" >Comment activer le pare-feu Windows Powershell ?<\/a><\/li><\/ul><\/nav><\/div>\n ","protected":false},"excerpt":{"rendered":"<p>PowerShell vous permet de conna\u00eetre l&#39;\u00e9tat du pare-feu Windows en tapant Get-NetFirewallProfile dans la fen\u00eatre PowerShell. Dans les pare-feu Windows, une liste de tous les profils r\u00e9seau r\u00e9pertori\u00e9s selon que le pare-feu Windows est activ\u00e9 pour chacun d&#39;entre eux s&#39;affiche. Comment puis-je v\u00e9rifier l&#39;\u00e9tat du pare-feu\u00a0? Vous serez redirig\u00e9 vers la fen\u00eatre du Panneau de [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[650,31,6660,3955,3172],"class_list":["post-771627","post","type-post","status-publish","format-standard","hentry","category-actualites","tag-afficher","tag-comment","tag-letat","tag-parefeu","tag-powershell"],"_links":{"self":[{"href":"https:\/\/blogging-techies.com\/fr\/wp-json\/wp\/v2\/posts\/771627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogging-techies.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogging-techies.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogging-techies.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogging-techies.com\/fr\/wp-json\/wp\/v2\/comments?post=771627"}],"version-history":[{"count":0,"href":"https:\/\/blogging-techies.com\/fr\/wp-json\/wp\/v2\/posts\/771627\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogging-techies.com\/fr\/wp-json\/wp\/v2\/media?parent=771627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogging-techies.com\/fr\/wp-json\/wp\/v2\/categories?post=771627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogging-techies.com\/fr\/wp-json\/wp\/v2\/tags?post=771627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}