Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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