Added Disabling Firewall via Registry (#1516)
Co-authored-by: Carrie Roberts <clr2of8@gmail.com>
This commit is contained in:
@@ -36,6 +36,19 @@ atomic_tests:
|
||||
cleanup_command: |
|
||||
netsh advfirewall set currentprofile state on >nul 2>&1
|
||||
name: command_prompt
|
||||
- name: Disable Microsoft Defender Firewall via Registry
|
||||
auto_generated_guid: afedc8c4-038c-4d82-b3e5-623a95f8a612
|
||||
description: |
|
||||
Disables the Microsoft Defender Firewall for the public profile via registry
|
||||
Caution if you access remotely the host where the test runs! Especially with the cleanup command which will re-enable firewall for the current profile...
|
||||
supported_platforms:
|
||||
- windows
|
||||
executor:
|
||||
command: |
|
||||
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\PublicProfile" /v "EnableFirewall" /t REG_DWORD /d 0 /f
|
||||
cleanup_command: |
|
||||
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\PublicProfile" /v "EnableFirewall" /t REG_DWORD /d 1 /f
|
||||
name: command_prompt
|
||||
- name: Allow SMB and RDP on Microsoft Defender Firewall
|
||||
auto_generated_guid: d9841bf8-f161-4c73-81e9-fd773a5ff8c1
|
||||
description: |
|
||||
|
||||
Reference in New Issue
Block a user