Created
July 23, 2012 05:40
-
-
Save sandrinodimattia/3162091 to your computer and use it in GitHub Desktop.
Windows Firewall (VBScript)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ' Create the firewall manager object. | |
| Dim fwMgr | |
| Set fwMgr = CreateObject("HNetCfg.FwMgr") | |
| ' Get the current profile for the local firewall policy. | |
| Dim profile | |
| Set profile = fwMgr.LocalPolicy.CurrentProfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment