1.防火墙允许ping 一键启用
Set-NetFirewallRule -Name FPS-ICMP4-ERQ-In -Enabled True
Set-NetFirewallRule -Name FPS-ICMP6-ERQ-In -Enabled True
set-NetFirewallRule -Name fps-icmp4-erq-in -Enabled True -RemoteAddress any -Profile any
set-NetFirewallRule -Name fps-icmp6-erq-in -Enabled True -RemoteAddress any -Profile any
Enable-NetFirewallRule -Name FPS-ICMP4-ERQ- In |
Get-NetFirewallRule -Name FPS-ICMP4-ERQ- In |
2.查看系统运行服务
Get-Service | Where Status -eq “Running”
Get-Service | Where Status -eq “Running” | Out-GridView (gui才能带此参数)
直接win键打开powershell输入以下命令一键关闭
set-netfirewallprofile -enabled 0