Open Registry Editor (Start->Run->regedit).
1.Navigate toHKLM\System\CurrentControlSet\Sevices\SharedAccess \Parameters\FirewallPolicy\FirewallRules.
2. Take a backup of these registry entries.
3. Delete the rules in the left pane Press Delete.
4. Start Services MMC (Start->Run->Services.msc). Select "WindowsFirewall" ->Right Click->Start. Firewall service should start now.
To restore the default set of rules:
1.click on Start->Type WindowsFirewall in the search box. Click on "Windows Firewall"
2.Click on "Allow a program through Windows Firewall". Click onAdvanced Tab->Restore Defaults.