Using Windows Firewall for Windows XP with SP2 API
The following set of VBScript code examples show typical uses of the Windows Firewall API.
Note
For Windows Vista and later, use of the Windows Firewall with Advanced Security API is recommended. Code examples are available in the Using Windows Firewall with Advanced Security section.
- Adding an Application to the Exceptions List
- Adding a Port to Current Profile
- Adding a Port to Current Profile Using Remote Addresses
- Allowing Incoming Echo Requests
- Changing Settings in a Specific Profile
- Changing Settings in the Non-current Profile
- Checking the Effective Firewall Status
- Demonstrating IsPortAllowed
- Displaying All Properties
- Enabling a Service
- Enabling RemoteAdmin
- Iterating a Collection
- Modifying a Service
- Verifying Windows Firewall is Enabled
- Working with Per-interface APIs
Related topics