Using Windows Firewall API
The following set of VBScript code examples show typical uses of the Windows Firewall API.
- 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
Send comments about this topic to Microsoft
Build date: 2/14/2012