Creating Firewall rule for a process running in a Non-admin user account RRS feed

  • Question

  • Hi All,

    I have a basic requirement - to run my application smoothly on Windows by creating firewall rules when prompted, that has windows firewall turned-ON.

    Apologize if I posted in the wrong forum.

    When I log in to my system as an user with Admin privileges when I run my application the first time, the firewall comes up with a prompt, I inform it to allow my app and create a rule, nice.

    However when I turn-on my PC, log in as a non-Admin user, and I run my application, the firewall shows up with a prompt as expected; however when I click on the same options as I did from the Admin user, the firewall prompt keeps popping up continuously even though I clicked on Allow /ok every time the prompt appears. The prompt only goes away when I click on "Cancel / Block" the application from running, which is obviously not what I want to do.

    So here comes the million $ question, What and How should I change my application code to run smoothly by creating the firewall rule successfully the first time I click on the firewall prompt to allow my application; exactly the same way it is working when I run my application as an user with Admin privileges.

    I have done my bit of searching online and have come to understand that Non-admin users cannot modify firewall rules (cannot even create them???). BTW I have tested this scenario on Windows XP, Vista 7 both x86 and x64 with same results.

    If someone has encountered and / or solved similar issues please share your knowledge. If I am missing something, please make me understand what I am missing.



    Friday, April 15, 2011 8:53 AM


  • Thanks for reaching us to us. Unfortunately, your question is not suited for the Security Development Lifecycle (SDL) Process Forum.

    We address questions related to the Microsoft Security Development Lifecycle process, the software security assurance development process developed by Microsoft. This process is described in the Simplified Implementation of the Microsoft SDL white paper.


    The SDL Team

    Monday, May 2, 2011 9:22 PM