All Questions
Tagged with windows-firewall command-line
7
questions
0
votes
0
answers
2k
views
Show Windows Firewall rules for an application in cli
Say, in Windows Firewall GUI I have this - four rules for nc.exe (netcat), two for private networks (one TCP, one UDP), and two for public networks (one TCP, one UDP):
How can I dump these four rules,...
2
votes
1
answer
2k
views
Windows command line - disable all outgoing traffic
I want to be able to disable all outgoing traffic but not incoming traffic - something like netsh interface set interface "Ethernet" disable but only for outgoing traffic. How do I do that ...
0
votes
3
answers
3k
views
How can I create Firewall rules for Universal Windows Platform (UWP) apps?
Let's say I want to create a firewall rule for a Universal Windows Platform (UWP) app (Ex: Microsoft News, Netflix, etc.).
How can I do that? (Command prompt / Powershell / Windows Defender Firewall ...
0
votes
1
answer
626
views
CMD Prompt: Allow/Block a SERVICE in Windows Firewall... how to?
Does anyone know the Command Prompt syntax to Allow/Block a Windows Service in Windows Firewall?
Research hasn't turned up a certain answer, even from Microsoft's official site.
Specifying services ...
17
votes
4
answers
81k
views
Enable Remote Desktop in Windows Firewall from command line
note: #command-line tag do not imply batch-file-only, I will accept a PowerShell script or any freely available utility, which can be started from command line and finish its work unattended.
tl;dr
...
18
votes
3
answers
118k
views
Viewing Windows Firewall settings from the command line and a GUI
Is it possible to view Windows firewall settings from the command line?
In addition how can I check the advanced Windows Firewall settings in a GUI?
8
votes
2
answers
33k
views
How do I assign Windows Firewall profiles to network interfaces from the command line?
I would like to assign Windows Firewall's public profile to the public Ethernet interface and the private profile to the private Ethernet interface. I can do this with the GUI via
Open Windows ...