This article is a mirror article of machine translation, please click here to jump to the original article.

View: 259|Reply: 2

[windows] Use PowerShell to manage Windows Firewall

[Copy link]
Posted on 1/27/2026 4:42:42 PM | | | |
Requirements: The server is a Windows operating system, and for security reasons, Windows Firewall needs to be turned on, allowing only certain machines on the intranet to be accessible, or designating ports for open access. The visualization operation steps are too cumbersome and can be operated directly using the command line.

Turn the firewall on and off

The command is as follows:

Open TCP port 3389

Allow any network to access the server's Remote Desktop Service, which is TCP port 3389 open access, with the following command:
Looking at the rule, the command is as follows:
As shown below:



To delete the rule, the command is as follows:

Only certain IP addresses are allowed to access TCP port 8080

For security reasons, only certain machines on the intranet are allowed to access port 8080 of the server, and only 192.168.1.5 and 192.168.1.8 are allowed to access TCP port 8080 with the following command:

Reference:

The hyperlink login is visible.
The hyperlink login is visible.




Previous:httpbin website
Next:The front-end HTML form uploads files directly to the US3 (UFile) store
 Landlord| Posted on 1/27/2026 4:44:37 PM |
Rocky Linux 9 uses a ufw simple firewall
https://www.itsvse.com/thread-11121-1-1.html
 Landlord| Posted on 1/27/2026 4:47:52 PM |
Windows Graphical Configuration Firewall Reference:The hyperlink login is visible.
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com