Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Adding firewall exceptions to deployed software

We have some rendering plugins that after installation, trigger Windows Firewall Exception window. As our users are not admin, they cannot add this as an exception themselves.

Is there any easy way to add an exception to the firewall for an exe after deployment?

0

Comments

2 comments
Date Votes
  • Sure is! You can use a Powershell step for this:

    New-NetFirewallRule -DisplayName "$YourRuleName" -Direction Inbound -LocalPort $PortsNeeded -Protocol TCP -Action Allow

    You can use multiple ports comma separated for LocalPort, and protocol can be rather TCP or UDP. Also, if you need to add an Outbound rule, just double up on the command, so one is for Inbound, the other -Direction Outbound. 

    We use this to open up a port for a piece of software that ties into our helpdesk solution and it works wonderfully.

    1
  • Perfect, with your help I was able to unblock via exe :)

    New-NetFirewallRule -DisplayName "$Rulename" -Direction Inbound -Program "$fullPathTo.exe" -Action Allow

     

    0