From 555a31775bd0475b5392c933fc931cabe8e80a6d Mon Sep 17 00:00:00 2001 From: Davis Mosenkovs Date: Sun, 10 Nov 2024 22:07:29 +0200 Subject: [PATCH] Version 1.2.2 * Added instructions for automation using Task Scheduler * Mentioned Windows 11 support in README.md --- LICENSE | 2 +- README.md | 24 +++++++++++++++++++++--- Telemetry-Kill-Script.cmd | 4 ++-- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/LICENSE b/LICENSE index 14638b8..66f6cda 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2017-2020 Dāvis Mošenkovs +Copyright (c) 2017-2024 Dāvis Mošenkovs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 8102e86..734b1e0 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ Telemetry Kill Script =============== A tool for disabling Windows Telemetry (at least part of it) on Windows -7, 8, 8.1 and 10. +7, 8, 8.1, 10 and 11. -Version 1.2.1 +Version 1.2.2 -Copyright (c) 2017-2020 Davis Mosenkovs +Copyright (c) 2017-2024 Davis Mosenkovs ## Introduction @@ -28,6 +28,24 @@ _Run as Administrator_). Most likely this script will have to be used again each time when Windows Update updates Telemetry related files and/or service. +### Automation using Task Scheduler + +To automatically run Telemetry Kill Script daily and on every system start (after reading and accepting `LICENSE`): +1. Copy the file `Telemetry-Kill-Script.cmd` to the Program Files folder (usually `C:\Program Files`). +2. Run Windows PowerShell as Administrator. +3. In the PowerShell window execute the command-line to remove Mark of the Web from `Telemetry-Kill-Script.cmd`: +``` +Remove-Item -Stream "Zone.Identifier" -Path "$env:ProgramFiles\Telemetry-Kill-Script.cmd" +``` +4. In the PowerShell window execute the command-line to create a scheduled task for Telemetry Kill Script: +``` +Register-ScheduledTask -TaskName "Telemetry Kill Script" -User "NT AUTHORITY\SYSTEM" -RunLevel Highest -Action $(New-ScheduledTaskAction -Execute """$env:ProgramFiles\Telemetry-Kill-Script.cmd""" -Argument "/auto") -Trigger @($(New-ScheduledTaskTrigger -AtStartup), $(New-ScheduledTaskTrigger -Daily -At 19:55)) -Settings $(New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries -StartWhenAvailable -ExecutionTimeLimit $(New-TimeSpan -Hours 1)) +``` + +To stop running Telemetry Kill Script automatically: +1. Delete the file `Telemetry-Kill-Script.cmd` from the Program Files folder (usually `C:\Program Files`). +2. Open Task Scheduler and delete the `Telemetry Kill Script` scheduled task. + ## Notices Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/Telemetry-Kill-Script.cmd b/Telemetry-Kill-Script.cmd index 90bbad0..4454de3 100644 --- a/Telemetry-Kill-Script.cmd +++ b/Telemetry-Kill-Script.cmd @@ -1,11 +1,11 @@ @echo off rem Display info and license color f0 -echo Telemetry Kill Script 1.2.1 +echo Telemetry Kill Script 1.2.2 echo A tool for disabling Windows Telemetry (at least part of it). echo https://github.com/DavisNT/Telemetry-Kill-Script echo. -echo Copyright (c) 2017-2020 Davis Mosenkovs +echo Copyright (c) 2017-2024 Davis Mosenkovs echo. echo Permission is hereby granted, free of charge, to any person obtaining a copy echo of this software and associated documentation files (the "Software"), to deal