Browse Source

Update Sophia.psm1

Enable firewall rule to block DiagTrack.

https://github.com/farag2/Sophia-Script-for-Windows/discussions/499
pull/500/head
savchenko 1 year ago
committed by GitHub
parent
commit
e5acd629cc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1

2
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"
{

Loading…
Cancel
Save