(imported topic written by SystemAdmin)
Hello All
I’ve created a task that will ask the user for a Port Number and Port name and then create a opening for that port. At the moment it will only open the Port as TCP because those are typically the only ones I require. This works for XP but I don’t know about Windows 7.
action parameter query “PortNumber” with description “Please enter the Port Number you would like to create:” With default “”
action parameter query “PortName” with description “Please enter the Port Name you would like to create:” With default “”
waithidden netsh firewall add portopening TCP “{parameter “PortNumber” of action}” “{parameter “PortName” of action}” enable subnet