forked from fary254/WindowsOptimizationScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWindows7OptimizationScript.bat
58 lines (58 loc) · 2.05 KB
/
Windows7OptimizationScript.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
cls
color a
::Пользователю предлагается ввести "y" или "n" для удаления службы Telnet.
set /p answer=Do you want to remove the Telnet service? (y/n):
if /i "%answer%"=="y" (
sc config TlntSrv start= disabled
echo The Telnet service has been successfully disabled. V
) else (
echo canceled. X
)
set /p answer0=Do you want to remove Widnows Media Center? (y/n):
if /i "%answer0%"=="y" (
dism /online /disable-feature /featurename:MediaCenter
echo The Windows Media Center has been successfully Delite. V
) else (
echo canceled. X
)
set /p answer1=Do you want to remove HELP FILES? (y/n):
if /i "%answer1%"=="y" (
del /S /Q C:\Windows\Help\.
rmdir /S /Q C:\Windows\Help
echo The Help files has been successfully Delite. V
) else (
echo canceled. X
)
set /p answer2=Do you want to remove folder Windows.old? (y/n):
if /i "%answer2%"=="y" (
cls
dir C:\Windows.old
tree C:\Windows.old
rmdir /s /q C:\Windows.old
del C:\Windows.old
echo successfully V
) else (
echo canceled. X
)
cls
set /p answer3=Do you want to turn off desktop graphic effects? (y/n):
if /i "%answer3%"=="y" (
REG ADD "HKCU\Control Panel\Desktop\WindowMetrics" /v MinAnimate /t REG_SZ /d 0 /f
echo Выставление производительности графики
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" /v VisualFXSetting /t REG_DWORD /d 2 /f
cls
echo Successfully V
) else (
echo canceled. X
)
set /p answer4=Do you want to delete ALL lof files in C:\ disk? (y/n):
if /i "%answer4%"=="y" (
del /s /q C:\*.log
cls
echo Successfully V
) else (
echo canceled. X
)
cls
echo
shutdown /r /t 3