Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Limiting network connections to specific sites when travelling / tethered (in windows)

Is there any way to configure a couple of firewall profiles in Windows 7?

As I use mobile broadband on when traveling, I don't want virus scanner/windows updates etc running and chewing up my mobile data allocation. So would love to find a way to block everything except email ports and perhaps http. The kicker though is that when I'm back in the office, I want to just click a button to get my original firewall settings back.

In the office I use WiFi and on the road tether to my android phone, also via WiFi, so can't restrict via network interface.

Any ideas?

share|improve this question

marked as duplicate by Karan, CharlieRB, Dennis, 8088, ChrisF Jan 18 '13 at 23:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

(You can view this guide with images here)

  1. Before doing anything, back up your current firewall policy. Run Windows Firewall with Advanced Security (type firewall in Run box).

  2. In the right pane, click Export Policy. Save to c:\, as firewallstd.wfw.

  3. Create the policies you wish to implement, and export as c:\firewallstrict.wfw.

  4. Create this batch file, and save as c:\firewallstd.bat:

    netsh advfirewall import c:\firewallstd.wfw
  5. Create this batch file, and save as c:\firewallstrict.bat:

    netsh advfirewall import c:\firewallstrict.wfw
  6. Open Task Scheduler (type task in Run box).

  7. Choose Create a Basic Task.

  8. Name this rule as you see fit.

  9. For task trigger, select When I Log on.

  10. Choose Start a Program.

  11. Choose the .BAT file you created earlier. The finishing dialog will appear. Before clicking Finish, tick "Open the Properties dialog for this task when I click Finish".

  12. In the resulting window, select Run with Highest Privileges.

Once this is complete, log on to the other account and repeat steps 6 through 12, with the policies you desire for that account. You can remove the "pause" from the batch file if you prefer, but it is helpful to confirm that the policy has properly loaded upon logging in.

share|improve this answer
Just linking to your own blog is not an acceptable answer. You may provide a link as a reference, but should include the actual solution in your answer on the site. Please update your answer, or else it will be removed. – nhinkle Jul 7 '11 at 1:44

Not the answer you're looking for? Browse other questions tagged .