The "netsh firewall add portopening," "netsh firewall set portopening," and "netsh firewall set service" commands do not work on a computer that is running certain editions of Windows Vista

Article translations Article translations
Article ID: 949543 - View products that this article applies to.
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

Symptoms

Consider the following scenario:
  • You have a computer that is running Windows Vista Starter, Windows Vista Home Basic, or Windows Vista Home Premium.
  • You run any of the following commands to open ports in the firewall:
    • netsh firewall add portopening
    • netsh firewall set portopening
    • netsh firewall set service
However, these commands fail silently. Additionally, you may not receive an error message or a warning that indicates that the port has not been opened.

Note The netsh firewall context is supported only on computers that are running Windows Vista Ultimate, Windows Vista Business, and Windows Vista Enterprise.

Cause

This problem occurs because the netsh firewall context does not work on computers that are running Windows Vista Starter, Windows Vista Home Basic, and Windows Vista Home Premium. Any commands that use the netsh firewall context require advanced security permissions to run successfully.

Resolution

To resolve this problem, use the netsh advfirewall firewall context on a computer that is running Windows Vista Starter, Windows Vista Home Basic, or Windows Vista Home Premium editions. The netsh advfirewall firewall context uses Windows Firewall together with the advanced security features that are available in Windows Vista. Additionally, the netsh advfirewall firewall context offers a richer security feature set than does the netsh firewall context.

For more information about how to use the "netsh advfirewall firewall" context instead of the “netsh firewall” context in Windows Vista, click the following article number to view the article in the Microsoft Knowledge Base:
947709 How to use the "netsh advfirewall firewall" context instead of the "netsh firewall" context to control Windows Firewall behavior in Windows Server 2008 and in Windows Vista

More information

For more information, download the "Introduction to Windows Firewall with Advanced Security" white paper for Windows Vista. To do this, visit the following Microsoft Web site:
http://www.microsoft.com/downloads/details.aspx?FamilyId=DF192E1B-A92A-4075-9F69-C12B7C54B52B&displaylang=en
For more information about the new Windows Firewall in Windows Vista and in Windows Server 2008, visit the following Microsoft Web site:
http://technet.microsoft.com/en-us/library/bb877967.aspx
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Properties

Article ID: 949543 - Last Review: January 16, 2015 - Revision: 1.0
Applies to
  • Windows Vista Starter
  • Windows Vista Home Basic
  • Windows Vista Home Premium
  • Windows Vista Home Basic 64-bit Edition
  • Windows Vista Home Premium 64-bit Edition
Keywords: 
kbnosurvey kbarchive kbexpertiseinter kbtshoot kbprb KB949543

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com