forked from sticks-stuff/CPSC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirewall.ahk
7 lines (6 loc) · 882 Bytes
/
firewall.ahk
1
2
3
4
5
6
7
RegRead, firewall_status, HKLM, SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\AuthorizedApplications\List, [D:\xampp\apache\bin\httpd.exe]
If (!InStr(firewall_status, "Enabled"))
RegWrite, REG_SZ, HKLM, SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\AuthorizedApplications\List, [D:\xampp\apache\bin\httpd.exe], [D:\xampp\apache\bin\httpd.exe]:*:Enabled:[Apache]
RegRead, firewall_status, HKLM, SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\AuthorizedApplications\List, [D:\xampp\mysql\bin\mysqld.exe]
If (!InStr(firewall_status, "Enabled"))
RegWrite, REG_SZ, HKLM, SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\AuthorizedApplications\List, [D:\xampp\mysql\bin\mysqld.exe], [D:\xampp\mysql\bin\mysqld.exe]:*:Enabled:[MySQL]