1
1
@ echo off
2
2
:init
3
- title Teleme7ry
4
- set scriptver = 1.3
5
- goto admin
3
+ set name = Teleme7ry
4
+ set namecap = TELEME7RY
5
+ set scriptver = 1.4
6
+ title %name%
7
+ goto checksystem
8
+ :checksystem
9
+ cls
10
+ echo .
11
+ echo Checking operating system...
12
+ ping 127.0.0.1 -n 2 > nul
13
+ net session > nul 2 >& 1
14
+ setlocal
15
+ for /f " tokens=4-5 delims=. " %%i in ('ver') do set VERSION = %%i .%%j
16
+ if " %version% " == " 6.1" (goto admin) else (goto incompatible)
17
+ endlocal
18
+ :incompatible
19
+ cls
20
+ color 4f
21
+ echo .
22
+ echo ERROR: This operating system is not compatible with this tool.
23
+ timeout /t -1
24
+ exit
6
25
:admin
7
26
echo .
8
- echo Teleme7ry is detecting permissions...
9
- ping 127.0.0.1 -n 3 > nul
27
+ echo Checking permissions...
28
+ ping 127.0.0.1 -n 2 > nul
10
29
net session > nul 2 >& 1
11
30
if %errorLevel% == 0 (goto home) else (goto error)
12
31
goto admin
13
32
:error
14
33
cls
15
34
color 4f
16
35
echo .
17
- echo ERROR: Teleme7ry needs elevated privileges in order to make changes to your system .
36
+ echo ERROR: %name% needs elevated privileges in order to make changes.
18
37
timeout /t -1
19
38
exit
20
39
:home
21
40
cls
22
41
color 3f
42
+ echo %name% [Version: %scriptver% ]
43
+ echo This script will disable telemetry in Windows 7
23
44
echo .
24
- echo * * * * * * * * * * * * * * * * * * * * * * * * * * * *
25
- echo * *
26
- echo * WELCOME TO TELEME7RY *
27
- echo * *
28
- echo * Author: Strappazzon *
29
- echo * Version: v%scriptver% *
30
- echo * Source: https://github.com/Strappazzon/teleme7ry *
31
- echo * *
32
- echo * This script will disable telemetry in Windows 7 *
33
- echo * *
34
- echo * * * * * * * * * * * * * * * * * * * * * * * * * * * *
35
- echo .
36
- echo Before proceeding make sure that Windows Update DOES NOT install updates automatically.
45
+ echo Please make sure that Windows Update DOES NOT install updates automatically.
37
46
echo The following actions will be performed:
38
47
echo .
39
48
echo - (Optional) A restore point will be created
@@ -44,20 +53,20 @@ echo - The domains\IPs used for telemetry will be blocked
44
53
echo - (Prompt) Your computer will be restarted
45
54
echo .
46
55
set /p tel = DO YOU WANT TO PROCEED? (Y/N):
47
- if " %tel% " == " N" exit
48
- if " %tel% " == " Y" goto restore
56
+ if /I " %tel% " == " N" exit
57
+ if /I " %tel% " == " Y" goto restore
49
58
goto home
50
59
:restore
51
60
cls
52
61
color 07
53
62
echo .
54
- echo TELEME7RY V%scriptver% IS RUNNING, PLEASE WAIT...
63
+ echo %namecap% V%scriptver% IS RUNNING, PLEASE WAIT...
55
64
echo =========================================
56
65
ping 127.0.0.1 -n 2 > nul
57
66
echo .
58
67
set /p res = DO YOU WANT TO MAKE A SYSTEM RESTORE POINT? (Y/N):
59
- if " %res% " == " N" goto start
60
- if " %res% " == " Y" wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint " Teleme7ry" , 100, 7
68
+ if /I " %res% " == " N" goto start
69
+ if /I " %res% " == " Y" wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint " Teleme7ry" , 100, 7
61
70
timeout /t -1
62
71
goto start
63
72
:start
@@ -563,18 +572,18 @@ timeout /t -1
563
572
cls
564
573
color 3f
565
574
echo .
566
- echo TELEME7RY HAS COMPLETED ALL THE TASKS.
575
+ echo %namecap% HAS COMPLETED ALL THE TASKS.
567
576
echo =========================================
568
577
echo To continue choose what you want to do now:
569
578
echo .
570
- echo GITHUB: (Recommended) See additional instructions to remove any leftovers
571
- echo RESTART: (Recommended) Restarts the computer
572
- echo QUIT: (Not recommended) Quits the script without restarting the computer
579
+ echo GITHUB: (Recommended) See how to remove the leftovers (if any)
580
+ echo RESTART: (Recommended) Restart the computer
581
+ echo QUIT: (Not recommended) Quit the script without restarting the computer
573
582
echo .
574
583
set /p end = TYPE AN OPTION:
575
- if " %end% " == " GITHUB" start https://github.com/Strappazzon/teleme7ry/blob/master/README.md#teleme7ry
576
- if " %end% " == " RESTART" goto restart
577
- if " %end% " == " QUIT" goto norestart
584
+ if /I " %end% " == " GITHUB" start https://github.com/Strappazzon/teleme7ry/blob/master/README.md#teleme7ry
585
+ if /I " %end% " == " RESTART" goto restart
586
+ if /I " %end% " == " QUIT" goto norestart
578
587
goto end
579
588
:restart
580
589
cls
0 commit comments