Closes port 9999 in the Windows Firewall current profile
Set objFirewall = CreateObject("HNetCfg.FwMgr")Set objPolicy = objFirewall.LocalPolicy.CurrentProfileSet colPorts = objPolicy.GloballyOpenPortserrReturn = colPorts.Remove(9999,6)
This is a VB Script, this can be used by saving the file in .vbs file