Skip to content

Commit 1dff4a5

Browse files
committed
Version 1.1.0
Added: * Setting diagnostic data level in registry * Checking for 32-bit environment on 64-bit Windows
1 parent c458e6e commit 1dff4a5

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2017 Dāvis Mošenkovs
3+
Copyright (c) 2017-2019 Dāvis Mošenkovs
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Telemetry Kill Script
33
A tool for disabling Windows Telemetry (at least part of it) on Windows
44
8, 8.1 and 10.
55

6-
Version 1.0.0
6+
Version 1.1.0
77

8-
Copyright (c) 2017 Davis Mosenkovs
8+
Copyright (c) 2017-2019 Davis Mosenkovs
99

1010
## Introduction
1111

Telemetry-Kill-Script.cmd

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
@echo off
22
rem Display info and license
33
color f0
4-
echo Telemetry Kill Script 1.0.0
4+
echo Telemetry Kill Script 1.1.0
55
echo A tool for disabling Windows Telemetry (at least part of it).
66
echo https://github.com/DavisNT/Telemetry-Kill-Script
77
echo.
8-
echo Copyright (c) 2017 Davis Mosenkovs
8+
echo Copyright (c) 2017-2019 Davis Mosenkovs
99
echo.
1010
echo Permission is hereby granted, free of charge, to any person obtaining a copy
1111
echo of this software and associated documentation files (the "Software"), to deal
@@ -33,6 +33,9 @@ if not "%1"=="/AUTO" if not "%1"=="/auto" set /P accepted=Press enter if you agr
3333
if not "%accepted%"=="" goto :end
3434
echo.
3535

36+
rem Check 64-bit environment on 64-bit Windows
37+
if not "%PROCESSOR_ARCHITEW6432%"=="" goto :wow
38+
3639
rem Check admin rights
3740
net session >nul 2>nul
3841
if errorlevel 1 goto :noadmin
@@ -51,6 +54,10 @@ if errorlevel 1 set errors=1
5154
icacls %SystemRoot%\system32\GeneralTel.dll /deny *S-1-1-0:(X)
5255
if errorlevel 1 set errors=1
5356
echo.
57+
echo Setting diagnostic data level to Security/Basic (lowest possible)...
58+
reg add "HKLM\Software\Policies\Microsoft\Windows\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f
59+
if errorlevel 1 set errors=1
60+
echo.
5461
echo Disabling Telemetry service...
5562
sc config DiagTrack start= disabled
5663
if errorlevel 1 set errors=1
@@ -69,18 +76,28 @@ if "%errors%"=="1" goto :errors
6976
rem Success
7077
color f2
7178
echo Telemetry should be disabled now.
79+
echo You might need to reboot your computer for some of the changes to take effect.
7280
if not "%1"=="/AUTO" if not "%1"=="/auto" pause
7381

7482
goto :end
7583

76-
rem Errors occured
84+
rem Errors occurred
7785
:errors
7886
color fc
7987
echo Error(s) occurred, please review the script output!
8088
if not "%1"=="/AUTO" if not "%1"=="/auto" pause
8189

8290
goto :end
8391

92+
rem 32-bit environment on 64-bit Windows error
93+
:wow
94+
color fc
95+
echo This script must NOT be run from 32-bit environment on 64-bit Windows.
96+
echo Please run this script from 64-bit application (e.g. File Explorer window).
97+
if not "%1"=="/AUTO" if not "%1"=="/auto" pause
98+
99+
goto :end
100+
84101
rem Missing admin rights error
85102
:noadmin
86103
color fc

0 commit comments

Comments
 (0)