From e5acd629cca6f8822692b05a0ae208873234f9de Mon Sep 17 00:00:00 2001 From: savchenko <300146+savchenko@users.noreply.github.com> Date: Sun, 11 Jun 2023 21:41:28 +0930 Subject: [PATCH] Update Sophia.psm1 Enable firewall rule to block DiagTrack. https://github.com/farag2/Sophia-Script-for-Windows/discussions/499 --- src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 index ce894212..ac522e5d 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 @@ -957,7 +957,7 @@ function DiagTrackService Get-Service -Name DiagTrack | Set-Service -StartupType Disabled # Block connection for the Unified Telemetry Client Outbound Traffic - Get-NetFirewallRule -Group DiagTrack | Set-NetFirewallRule -Enabled False -Action Block + Get-NetFirewallRule -Group DiagTrack | Set-NetFirewallRule -Enabled True -Action Block } "Enable" {