There are a lot of articles that can be obtained in the same content you are reading, where possible through articles at the end of this article you can get everything you want from other information.
Can you communicate with us through the comments on the article and we will provide everything you are trying to get him help, or maybe looking for something and did not reach so far, we’re here to help you in style.
I also try to created VB Script and .bat file for both commands.
Vbs Script to close open ports..Just copy and paste below coding to notepad file and save as PortCloser.vbs
set ss = createobject(“wscript.shell”)
set ws = wscript
PORT = InputBox(“Enter the port you wish to close:”)
ss.sendkeys “firewall delete portopening TCP ” & PORT
.BAT Script to close open ports..Just copy and paste below coding to notepad file and save as
title Port Closer
echo Port Closer
set /p port=Type the port number you wish to close here:
netsh firewall delete portopening TCP %port%
msg /w * Port %port% has been closed.
For any Queries regarding this..put your valuable comments..