Delete Inbound Port

Deletes a port exception from the Windows Firewall configuration.

Privileges

Elevated – Run as administrator

Input Parameters

Name Type Required Description
Port # Number Yes The port number to be added as an exception.
Port Name Number Yes The name of the port exception rule.
Protocol String Yes The protocol for the port.

Output Parameters

Name Type Description
Result Number Returns a success value of zero or any value other than zero to indicate failure.

Example Input Parameters

Name Type Required Example
Port # Number Yes 1234
Port Name String Yes MSP specific Port exception
Protocol Boolean Yes TCP