Skip to content

Commit 00b1e2f

Browse files
author
Strappazzon
committed
Updated to v1.4
- The script will now check the operating system version - The options are no longer case-sensitive - Minor changes to titles and descriptions
1 parent 2faeb2d commit 00b1e2f

File tree

1 file changed

+40
-31
lines changed

1 file changed

+40
-31
lines changed

teleme7ry.bat

+40-31
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,48 @@
11
@echo off
22
: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
625
:admin
726
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
1029
net session >nul 2>&1
1130
if %errorLevel% == 0 (goto home) else (goto error)
1231
goto admin
1332
:error
1433
cls
1534
color 4f
1635
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.
1837
timeout /t -1
1938
exit
2039
:home
2140
cls
2241
color 3f
42+
echo %name% [Version: %scriptver%]
43+
echo This script will disable telemetry in Windows 7
2344
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.
3746
echo The following actions will be performed:
3847
echo.
3948
echo - (Optional) A restore point will be created
@@ -44,20 +53,20 @@ echo - The domains\IPs used for telemetry will be blocked
4453
echo - (Prompt) Your computer will be restarted
4554
echo.
4655
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
4958
goto home
5059
:restore
5160
cls
5261
color 07
5362
echo.
54-
echo TELEME7RY V%scriptver% IS RUNNING, PLEASE WAIT...
63+
echo %namecap% V%scriptver% IS RUNNING, PLEASE WAIT...
5564
echo =========================================
5665
ping 127.0.0.1 -n 2 > nul
5766
echo.
5867
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
6170
timeout /t -1
6271
goto start
6372
:start
@@ -563,18 +572,18 @@ timeout /t -1
563572
cls
564573
color 3f
565574
echo.
566-
echo TELEME7RY HAS COMPLETED ALL THE TASKS.
575+
echo %namecap% HAS COMPLETED ALL THE TASKS.
567576
echo =========================================
568577
echo To continue choose what you want to do now:
569578
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
573582
echo.
574583
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
578587
goto end
579588
:restart
580589
cls

0 commit comments

Comments
 (0)