0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

WindowsFWのInbound全拒否設定

0
Posted at

[WindowsFW設定変更]
Powershellで以下実施、事前にフォルダ作成は行うこと。

1.バックアップ取得
netsh advfirewall export C:\temp\workyyyymmdd\fw_backup.wfw

2.受信規則を取得
Get-NetFirewallRule -Direction Inbound |
Select-Object DisplayName, Enabled, Action |
Export-Csv C:\temp\workyyyymmdd\before_InboundRule.csv -NoTypeInformation -Encoding UTF8

3.受信規則をすべて無効化
Get-NetFirewallRule -Direction Inbound |
Disable-NetFirewallRule

4.万が一の場合の戻し
netsh advfirewall import C:\temp\workyyyymmdd\fw_backup.wfw

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?