{"id":810,"date":"2022-04-27T16:15:58","date_gmt":"2022-04-27T08:15:58","guid":{"rendered":"https:\/\/airy.cn\/WordPress\/?p=810"},"modified":"2022-04-27T16:33:05","modified_gmt":"2022-04-27T08:33:05","slug":"windows-powershell%e5%ae%9e%e7%94%a8%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/airy.cn\/WordPress\/?p=810","title":{"rendered":"windows-powershell\u5b9e\u7528\u547d\u4ee4 \u9632\u706b\u5899\u5141\u8bb8ping"},"content":{"rendered":"\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">1.\u9632\u706b\u5899\u5141\u8bb8ping \u4e00\u952e\u542f\u7528<\/mark><\/strong><\/p>\n\n\n\n<p><strong>Set-NetFirewallRule&nbsp;-Name FPS-ICMP4-ERQ-In&nbsp;-Enabled True<\/strong><\/p>\n\n\n\n<p><strong>Set-NetFirewallRule&nbsp;-Name FPS-ICMP6-ERQ-In&nbsp;-Enabled True<\/strong><\/p>\n\n\n\n<p>set-NetFirewallRule -Name fps-icmp4-erq-in -Enabled True -RemoteAddress any -Profile any<\/p>\n\n\n\n<p>set-NetFirewallRule -Name fps-icmp6-erq-in -Enabled True -RemoteAddress any -Profile any<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><code>Enable-NetFirewallRule<\/code> <code>-Name<\/code> <code>FPS-ICMP4-ERQ-<\/code><code>In<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><code>Get-NetFirewallRule<\/code> <code>-Name<\/code> <code>FPS-ICMP4-ERQ-<\/code><code>In<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">2.\u67e5\u770b\u7cfb\u7edf\u8fd0\u884c\u670d\u52a1<\/mark><\/strong><\/p>\n\n\n\n<p>Get-Service | Where Status -eq &#8220;Running&#8221; <\/p>\n\n\n\n<p>Get-Service | Where Status -eq &#8220;Running&#8221; | Out-GridView      \uff08gui\u624d\u80fd\u5e26\u6b64\u53c2\u6570\uff09<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u76f4\u63a5win\u952e\u6253\u5f00powershell\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4e00\u952e\u5173\u95ed<\/p>\n\n\n\n<p>set-netfirewallprofile -enabled 0<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/pic3.zhimg.com\/80\/v2-36b04cb2c6bd7839e8bc26ebcd1beae2_720w.jpg\" alt=\"\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>1.\u9632\u706b\u5899\u5141\u8bb8ping \u4e00\u952e\u542f\u7528 Set-NetFirewallRule&nbsp;-Name FPS-ICM &#8230; <a title=\"windows-powershell\u5b9e\u7528\u547d\u4ee4 \u9632\u706b\u5899\u5141\u8bb8ping\" class=\"read-more\" href=\"https:\/\/airy.cn\/WordPress\/?p=810\" aria-label=\"\u9605\u8bfb windows-powershell\u5b9e\u7528\u547d\u4ee4 \u9632\u706b\u5899\u5141\u8bb8ping\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kadence_starter_templates_imported_post":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-810","post","type-post","status-publish","format-standard","hentry","category-airy-tech"],"_links":{"self":[{"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/posts\/810","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=810"}],"version-history":[{"count":5,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/posts\/810\/revisions"}],"predecessor-version":[{"id":821,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/posts\/810\/revisions\/821"}],"wp:attachment":[{"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=810"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}