Мне нужно чтоб ты перевел полностью скрипт на анг.язык, также убери оптимизацию где…
- User
Мне нужно чтоб ты перевел полностью скрипт на анг.язык, также убери оптимизацию где требует открытие каких либо программ (кроме очистка диска)
@echo off echo. call :USER_DEFINED :: поставить сходства, если не ставили оставить все как есть :processaffinity :: CREDIT TO SPDLL за самый быстрый код if defined affinity ( if not %affinity% GTR 0 goto INVALID_AFFINITY PowerShell -NoLogo -NoProfile -NonInteractive -Command "get-process dwm,audiosvchost,audiodg,lsass,svchost,WmiPrvSE | ForEach-Object {$_.ProcessorAffinity=%affinity%}" ) :INVALID_AFFINITY :: winlogon на нормальный приоритет / потому что по дефолту стоит высокий. :: нормальный приоритет предотвращает наследование дочерними процессами с высоким приоритетом wmic process where name="winlogon.exe" call setpriority 32 :: очистить rd /s /q "%temp%" & mkdir "%userprofile%\AppData\Local\Temp" exit /b
:USER_DEFINED wmic process where name="dwm.exe" call setpriority 32 wmic process where name="lsass.exe" call setpriority 64 wmic process where name="svchost.exe" call setpriority 64 wmic process where name="WmiPrvSE.exe" call setpriority 64 @echo off :: Установка кодировки и отключение отображения команд chcp 65001 >nul cls title Windows 10 Optimization Tool :: Цветовые коды :: 0 = Черный 1 = Синий 2 = Зеленый :: 3 = Бирюзовый 4 = Красный 5 = Пурпурный :: 6 = Желтый 7 = Белый 8 = Серый :: 9 = Светло-синий 10 = Светло-зеленый и т.д. set "COLOR_TITLE=0A" set "COLOR_MENU=0E" set "COLOR_ERROR=0C" set "COLOR_SUCCESS=0A" set "COLOR_PROMPT=0B" :: Количество применяемых оптимизаций set "optimization_count=55" :: Увеличено для новых оптимизаций :: Функция для отображения меню :menu cls echo. echo ╔════════════════════════════════════════════════════════════════════════╗ echo ║ Windows Optimization by Doxile ║ echo ╠════════════════════════════════════════════════════════════════════════╣ echo ║ Всего оптимизаций в скрипте: %optimization_count% ║ echo ╠════════════════════════════════════════════════════════════════════════╣ echo ║ [1] Применить оптимизации Windows ║ echo ║ [2] Восстановить исходные настройки ║ echo ║ [3] Включить Windows Boost ║ echo ║ [4] Выключить Windows Boost ║ echo ║ [5] Очистка диска и временных файлов ║ echo ║ [6] Обновить системные файлы и драйверы ║ echo ║ [7] Создать точку восстановления ║ echo ║ [0] Выход ║ echo ╚════════════════════════════════════════════════════════════════════════╝ echo. :: Запрос выбора пользователя color %COLOR_PROMPT% set /p choice="Выберите пункт меню [1-0]: " color 07 :: Обработка выбора пользователя if "%choice%"=="1" goto optimizations if "%choice%"=="2" goto restore_defaults if "%choice%"=="3" goto boost_enable if "%choice%"=="4" goto boost_disable if "%choice%"=="5" goto clean_disk if "%choice%"=="6" goto update_system if "%choice%"=="7" goto create_restore if "%choice%"=="0" goto exit_script echo. color %COLOR_ERROR% echo Неверный выбор. Пожалуйста, попробуйте снова. color 07 timeout /t 2 /nobreak >nul goto menu
:: Функция оптимизаций :optimizations cls color %COLOR_MENU% echo. echo Применение оптимизаций Windows... echo. :: Остановка ненужных служб echo Останавливаем ненужные службы... net stop "SysMain" >nul 2>&1 net stop "Superfetch" >nul 2>&1 net stop "Print Spooler" >nul 2>&1 net stop "Fax" >nul 2>&1 net stop "wuauserv" >nul 2>&1 net stop "BITS" >nul 2>&1 net stop "WMPNetworkSvc" >nul 2>&1 net stop "ConnectedUserSharedExperiences_32771" >nul 2>&1 net stop "Spooler" >nul 2>&1 :: Удаление программ из автозагрузки echo. echo Очищаем автозагрузку... reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /f >nul 2>&1 :: Оптимизация визуальных эффектов echo. echo Оптимизируем визуальные эффекты... reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" /v VisualFXSetting /t REG_DWORD /d 2 /f >nul reg add "HKCU\SOFTWARE\Microsoft\Windows\DWM" /v EnableTransparency /t REG_DWORD /d 0 /f >nul :: Отключение гибернации и других функций echo. echo Отключаем функции гибернации и поиска... powercfg /hibernate off >nul sc config "Windows Search" start=disabled >nul sc config "SysMain" start=disabled >nul :: Отключение Game DVR и Delivery Optimization echo. echo Отключаем Game DVR и Delivery Optimization... reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /v AllowGameDVR /t REG_DWORD /d 0 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v DODownloadMode /t REG_DWORD /d 0 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v DOUploadMode /t REG_DWORD /d 0 /f >nul :: Отключение фоновых задач echo. echo Отключаем расписанные задачи... for %%a in ( "Microsoft\Windows\Defrag\ScheduledDefrag" "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" "Microsoft\Windows\Application Experience\ProgramDataUpdater" "Microsoft\Windows\Application Experience\StartupAppTask" "Microsoft\Windows\Device Information\Device" "Microsoft\Windows\Diagnosis\Scheduled" "Microsoft\Windows\Diagnosis\RecommendedTroubleshootingScanner" "Microsoft\Windows\DiskFootprint\Diagnostics" "Microsoft\Windows\DiskFootprint\StorageSense" "Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload" "Microsoft\Windows\Feedback\Siuf\DmClient" "Microsoft\Windows\International\Synchronize Language Settings" "Microsoft\Windows\LanguageComponentsInstaller\Installation" "Microsoft\Windows\LanguageComponentsInstaller\ReconcileLanguageResources" "Microsoft\Windows\Maps\MapsUpdateTask" "Microsoft\Windows\Maps\MapsToastTask" "Microsoft\Windows\PushToInstall\Registration" "Microsoft\Windows\Setup\SetupCleanupTask" "Microsoft\Windows\Speech\SpeechModelDownloadTask" "Microsoft\Windows\Windows Error Reporting\QueueReporting" "Microsoft\Windows\WindowsColorSystem\Calibration Loader" "Microsoft\Windows\Work Folders\Work Folders Logon Synchronization" "Microsoft\Windows\MemoryDiagnostic\ProcessMemoryDiagnosticEvents" "Microsoft\Windows\MemoryDiagnostic\RunFullMemoryDiagnostic" ) do schtasks /change /tn "%%a" /disable >nul 2>&1 :: Оптимизация параметров питания и производительности echo. echo Оптимизируем параметры питания и производительности... powercfg /setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c >nul reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\PriorityControl" /v "Win32PrioritySeparation" /t REG_DWORD /d 38 /f >nul :: Настройка приоритетов процессов echo. echo Настраиваем приоритеты процессов... for %%P in ( "BstkSVC.exe" "HD-Agent.exe" "HD-Player.exe" "BlueStacks.exe" ) do ( reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options%%~P\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d 3 /f >nul ) :: Оптимизация профилей мультимедиа echo. echo Оптимизируем мультимедиа профили... reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "GPU Priority" /t REG_DWORD /d 8 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "Priority" /t REG_DWORD /d 6 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "Scheduling Category" /t REG_SZ /d "High" /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "SFIO Priority" /t REG_SZ /d "High" /f >nul reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling" /v "PowerThrottlingOff" /t REG_DWORD /d 1 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "SystemResponsiveness" /t REG_DWORD /d 0 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "NetworkThrottlingIndex" /t REG_DWORD /d 0xffffffff /f >nul :: Настройка параметров USB для повышения производительности echo. echo Настраиваем параметры USB... for /f "tokens=2 delims==" %%a in ('WMIC PATH Win32_USBHub GET DeviceID /VALUE ^| find "="') do ( for %%b in ( "EnhancedPowerManagementEnabled" "AllowIdleIrpInD3" "SelectiveSuspendOn" "DeviceSelectiveSuspended" "SelectiveSuspendEnabled" ) do ( reg add "HKLM\SYSTEM\CurrentControlSet\Enum%%a\Device Parameters" /v "%%~b" /t REG_DWORD /d 0 /f 2>nul ) ) :: Отключение панели Game Bar и настроек игры echo. echo Отключаем Game Bar и настройки игры... reg add "HKCU\SOFTWARE\Microsoft\GameBar" /v "ShowStartupPanel" /t REG_DWORD /d 0 /f >nul reg add "HKCU\SOFTWARE\Microsoft\GameBar" /v "GamePanelStartupTipIndex" /t REG_DWORD /d 3 /f >nul reg add "HKCU\SOFTWARE\Microsoft\GameBar" /v "AllowAutoGameMode" /t REG_DWORD /d 0 /f >nul reg add "HKCU\SOFTWARE\Microsoft\GameBar" /v "AutoGameModeEnabled" /t REG_DWORD /d 0 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /v "AllowGameDVR" /t REG_DWORD /d 0 /f >nul reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR" /v "AppCaptureEnabled" /t REG_DWORD /d 0 /f >nul :: Дополнительные оптимизации echo. echo Применяем дополнительные оптимизации... :: Отключение индексации поиска reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "GatherSystemTags" /t REG_DWORD /d 0 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "GatherExtendedProperties" /t REG_DWORD /d 0 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "IndexingPaused" /t REG_DWORD /d 1 /f >nul :: Отключение уведомлений reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications" /v "ToastEnabled" /t REG_DWORD /d 0 /f >nul reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "DisableNotificationCenter" /t REG_DWORD /d 1 /f >nul :: Отключение рекламных элементов Windows reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SystemPaneSuggestionsEnabled" /t REG_DWORD /d 0 /f >nul reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338388Enabled" /t REG_DWORD /d 0 /f >nul reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338389Enabled" /t REG_DWORD /d 0 /f >nul :: Отключение телеметрии reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f >nul :: Отключение фоновых приложений reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications" /v "GlobalUserDisabled" /t REG_DWORD /d 1 /f >nul :: Отключение автоматических обновлений драйверов reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching" /v "SearchOrderConfig" /t REG_DWORD /d 0 /f >nul :: Отключение автоматических обновлений Windows reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "NoAutoUpdate" /t REG_DWORD /d 1 /f >nul :: Настройка параметров виртуальной памяти echo. echo Настраиваем параметры виртуальной памяти... reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "PagingFiles" /t REG_MULTI_SZ /d "C:\pagefile.sys 4096 8192" /f >nul :: Оптимизация реестра для ускорения запуска reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Serialize" /v "StartupDelayInMSec" /t REG_DWORD /d 0 /f >nul :: Очистка предварительных выборок и файлов echo. echo Очищаем временные файлы и предварительные выборки... del /f /s /q C:\Windows\Prefetch* >nul 2>&1 del /f /s /q %TEMP%* >nul 2>&1 del /f /s /q C:\Windows\Temp* >nul 2>&1 :: Дополнительные оптимизации echo. echo Применяем дополнительные оптимизации (дополнительные шаги)... :: Шаг 1: Отключение UAC и SmartScreen reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "PromptOnSecureDesktop" /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /t REG_DWORD /d 0 /f reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v SmartScreenEnabled /t REG_SZ /d "Off" /f :: Шаг 2: Отключение резерва CPU для фоновых процессов reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "SystemResponsiveness" /t REG_DWORD /d 0a /f :: Шаг 3: Настройка NetworkThrottlingIndex reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "NetworkThrottlingIndex" /t REG_DWORD /d 0a /f :: Шаг 4: Отключение автообновления приложений Store reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore" /v "AutoDownload" /t REG_DWORD /d 2 /f :: Шаг 5: Уменьшение времени таймаутов reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "AutoEndTasks" /t REG_SZ /d "1" /f reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "HungAppTimeout" /t REG_SZ /d "1000" /f reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "WaitToKillAppTimeout" /t REG_SZ /d "2000" /f reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "LowLevelHooksTimeout" /t REG_SZ /d "1000" /f reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "MenuShowDelay" /t REG_SZ /d "0" /f :: Шаг 6: Установка качества фона рабочего стола reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "JPEGImportQuality" /t REG_DWORD /d 80 /f :: Шаг 7: Увеличение системного кэша reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management" /v "LargeSystemCache" /t REG_DWORD /d 1 /f :: Шаг 8: Уменьшение времени завершения работы reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control" /v "WaitToKillServiceTimeout" /t REG_SZ /d "10000" /f :: Шаг 9: Отключение дополнительных запланированных задач call :disable_additional_tasks :: Шаг 10: Отключение ненужных устройств с помощью DevManView call :disable_devices :: Шаг 11: Отключение дополнительных запланированных задач call :disable_more_tasks :: Шаг 12: Настройка OpenGL call :configure_opengl :: Шаг 13: Дополнительные настройки OpenGL call :additional_opengl_settings :: Шаг 14: Настройка переменных окружения для GPU call :set_gpu_env :: Шаг 15: Защита OpenGL DLL call :protect_opengl :: Завершение оптимизаций echo. color %COLOR_SUCCESS% echo Оптимизации успешно применены! color 07 timeout /t 3 /nobreak >nul goto menu
:: Функция отключения дополнительных задач (Шаг 9) :disable_additional_tasks echo. echo Отключаем дополнительные запланированные задачи (шаг 9)... :: Здесь вставляем команды из шага 9 пользователя schtasks /change /TN "Microsoft\Windows.NET Framework.NET Framework NGEN v4.0.30319" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows.NET Framework.NET Framework NGEN v4.0.30319 64" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows.NET Framework.NET Framework NGEN v4.0.30319 64 Critical" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows.NET Framework.NET Framework NGEN v4.0.30319 Critical" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\ApplicationData\appuriverifierdaily" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\ApplicationData\appuriverifierinstall" /DISABLE > NUL 2>&1 schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /DISABLE > NUL 2>&1 schtasks /Change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /DISABLE > NUL 2>&1 schtasks /Change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\Device Information\Device" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\Diagnosis\Scheduled" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\Diagnosis\RecommendedTroubleshootingScanner" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\DiskFootprint\Diagnostics" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\DiskFootprint\StorageSense" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\Feedback\Siuf\DmClient" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\International\Synchronize Language Settings" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\LanguageComponentsInstaller\Installation" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\LanguageComponentsInstaller\ReconcileLanguageResources" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\Maps\MapsUpdateTask" /DISABLE > NUL 2>&1 schtasks /Change /TN "Microsoft\Windows\Maps\MapsToastTask" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\PushToInstall\Registration" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\Setup\SetupCleanupTask" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\Speech\SpeechModelDownloadTask" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\WindowsColorSystem\Calibration Loader" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\Work Folders\Work Folders Logon Synchronization" /DISABLE > NUL 2>&1 echo ‡ ўҐа襮! goto :eof
:: Функция отключения устройств с помощью DevManView (Шаг 10) :disable_devices echo. echo Отключаем ненужные устройства (шаг 10)... :: Убедитесь, что DevManView.exe находится в той же директории, что и скрипт if not exist "%cd%\devmanview\devmanview.exe" ( echo DevManView.exe не найден. Пропускаем отключение устройств. goto :eof ) "%cd%\devmanview\devmanview.exe" /disable "UMBus Root Bus Enumerator" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "Root Print Queue" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "NDIS Virtual Network Adapter Enumerator" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "Microsoft Virtual Drive Enumerator" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "Microsoft Hyper-V Virtualization Infrastructure Driver" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "Microsoft GS Wavetable Synth" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "Microsoft Device Association Root Enumerator" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "Composite Bus Enumerator" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "Microsoft UEFI-Compliant System" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "System board" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "SM Bus Controller" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "Motherboard resources" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "PCI Encryption/Decryption Controller" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "Microsoft Windows Management Interface for ACPI" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "High precision event timer" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "Base System Device" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "PCI Data Acquisition and Signal Processing Controller" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "PCI Simple Communications Controller" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "PCI Device" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "Unknown Device" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "PCI Simple Communications Controller" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "PCI Memory Controller" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "PCI standard RAM Controller" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "ACPI Processor Aggregator" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "ACPI Wake Alarm" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "System Speaker" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "System Timer" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "WAN Miniport (IKEv2)" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "WAN Miniport (IP)" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "WAN Miniport (IPv6)" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "WAN Miniport (L2TP)" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "WAN Miniport (Network Monitor)" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "WAN Miniport (PPPOE)" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "WAN Miniport (PPTP)" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "WAN Miniport (SSTP)" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "Programmable Interrupt Controller" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "Numeric Data Processor" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "Microsoft Kernel Debug Network Adapter" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "HID-compliant consumer control device" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "Plug and Play Software Device Enumerator" > NUL 2>&1 "%cd%\devmanview\devmanview.exe" /disable "Direct memory access controller" > NUL 2>&1 echo ‡ ўҐа襮! goto :eof
:: Функция отключения дополнительных запл. задач (Шаг 11) :disable_more_tasks echo. echo Отключаем дополнительные запланированные задачи (шаг 11)... :: Вставляем команды из шага 11 schtasks /Change /Disable /TN "\MicrosoftEdgeUpdateTaskMachineCore" >nul 2>nul schtasks /Change /Disable /TN "\MicrosoftEdgeUpdateTaskMachineUA" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Windows Error Reporting\QueueReporting" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\DiskFootprint\Diagnostics" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Application Experience\StartupAppTask" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Autochk\Proxy" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Application Experience\PcaPatchDbTask" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\BrokerInfrastructure\BgTaskRegistrationMaintenanceTask" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\CloudExperienceHost\CreateObjectTask" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Defrag\ScheduledDefrag" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\DiskFootprint\StorageSense" >nul 2>nul schtasks /Change /Disable /TN "\MicrosoftEdgeUpdateBrowserReplacementTask" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Registry\RegIdleBackup" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Windows Filtering Platform\BfeOnServiceStartTypeChange" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Shell\IndexerAutomaticMaintenance" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTaskNetwork" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTaskLogon" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\StateRepository\MaintenanceTasks" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\UpdateOrchestrator\Report policies" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\UpdateOrchestrator\Schedule Scan Static Task" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\UpdateOrchestrator\UpdateModelTask" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\UpdateOrchestrator\USO_UxBroker" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\UpdateOrchestrator\Schedule Work" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\UPnP\UPnPHostConfig" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\RetailDemo\CleanupOfflineContent" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Shell\FamilySafetyMonitor" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\InstallService\ScanForUpdates" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\InstallService\ScanForUpdatesAsUser" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\InstallService\SmartRetry" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\International\Synchronize Language Settings" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\MemoryDiagnostic\ProcessMemoryDiagnosticEvents" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\MemoryDiagnostic\RunFullMemoryDiagnostic" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Multimedia\Microsoft\Windows\Multimedia" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Printing\EduPrintProv" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\RemoteAssistance\RemoteAssistanceTask" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Ras\MobilityManager" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\PushToInstall\LoginCheck" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Time Synchronization\SynchronizeTime" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Time Synchronization\ForceSynchronizeTime" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Time Zone\SynchronizeTimeZone" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\UpdateOrchestrator\Schedule Scan" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\WaaSMedic\PerformRemediation" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\DiskCleanup\SilentCleanup" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Diagnosis\Scheduled" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Wininet\CacheTask" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Device Setup\Metadata Refresh" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Mobile Broadband Accounts\MNO Metadata Parser" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\WindowsUpdate\Scheduled Start" >nul 2>nul echo. pause goto :eof
:: Функция настройки OpenGL (Шаг 12) :configure_opengl echo. echo Настраиваем OpenGL (шаг 12)... :: Пример настройки OpenGL, скорректированный для Batch set OPENGL_32=%windir%\system32\opengl32.dll set OPENGL_DEBUG=1 echo OPENGL_32="%OPENGL_32%" echo OPENGL_DEBUG="%OPENGL_DEBUG%" :: Здесь можно добавить дополнительные команды, если необходимо goto :eof
:: Функция дополнительных настроек OpenGL (Шаг 13) :additional_opengl_settings echo. echo Применяем дополнительные настройки OpenGL (шаг 13)... reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\MSOpenGL" /v "DisableAsync" /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\MSOpenGL" /v "EnableMultisampleBuffers" /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\MSOpenGL" /v "EnableSurfaceMemoryManagement" /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\MSOpenGL" /v "MaxWGLSwapInterval" /t REG_DWORD /d 1 /f goto :eof
:: Функция установки переменных окружения для GPU (Шаг 14) :set_gpu_env echo. echo Настраиваем переменные окружения для GPU (шаг 14)... setx GPU_MAX_HEAP_SIZE 100 setx GPU_MAX_ALLOC_PERCENT 100 setx GPU_SINGLE_ALLOC_PERCENT 100 goto :eof
:: Функция защиты OpenGL DLL (Шаг 15) :protect_opengl echo. echo Защищаем OpenGL DLL (шаг 15)... set OPENGL_32_DLL=%windir%\System32\opengl32.dll set OPENGL_32_DLL_SIZE=2576980377 if exist "%OPENGL_32_DLL%.bak" ( echo Резервная копия уже существует. ) else ( copy "%OPENGL_32_DLL%" "%OPENGL_32_DLL%.bak" >nul fsutil file setvaliddata "%OPENGL_32_DLL%" %OPENGL_32_DLL_SIZE% ) goto :eof
:: Функция включения Windows Boost :boost_enable cls echo Включение Windows Boost... color %COLOR_MENU% echo. :: Применение режима высокопроизводительности powercfg -setactive SCHEME_MIN >nul :: Завершение процесса explorer.exe taskkill /f /im explorer.exe >nul 2>&1 :: Дополнительные оптимизации Boost echo. echo Применяем дополнительные настройки Boost... :: Увеличение приоритета процессов wmic process where name="chrome.exe" call setpriority 128 >nul 2>&1 wmic process where name="firefox.exe" call setpriority 128 >nul 2>&1 :: Отключение визуальных эффектов для ускорения reg add "HKCU\Control Panel\Desktop" /v "WindowAnimation" /t REG_SZ /d "0" /f >nul reg add "HKCU\Control Panel\Desktop" /v "MinAnimate" /t REG_SZ /d "0" /f >nul :: Включение максимальной производительности графики (для систем с дискретной графикой) echo. echo Настраиваем графические параметры для максимальной производительности... reg add "HKCU\Software\Microsoft\DirectDraw\Renderer" /v "DefaultAdapter" /t REG_DWORD /d 0 /f >nul reg add "HKCU\Software\Microsoft\DirectDraw\Renderer" /v "UseHardware" /t REG_DWORD /d 1 /f >nul :: Отключение фоновых сервисов echo. echo Отключаем фоновые сервисы... sc stop "DiagTrack" >nul 2>&1 sc config "DiagTrack" start=disabled >nul 2>&1 sc stop "WerSvc" >nul 2>&1 sc config "WerSvc" start=disabled >nul 2>&1 :: Отключение ненужных функций Windows reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoWindowsUpdate" /t REG_DWORD /d 1 /f >nul :: Завершение Boost echo. color %COLOR_SUCCESS% echo Windows Boost включен и оптимизации применены! color 07 timeout /t 3 /nobreak >nul goto menu
:: Функция выключения Windows Boost :boost_disable cls echo Выключение Windows Boost... color %COLOR_MENU% echo. :: Возврат к сбалансированному плану питания powercfg -setactive SCHEME_BALANCED >nul :: Запуск процесса explorer.exe start explorer.exe >nul 2>&1 :: Восстановление визуальных эффектов echo. echo Восстанавливаем визуальные настройки... reg add "HKCU\Control Panel\Desktop" /v "WindowAnimation" /t REG_SZ /d "1" /f >nul reg add "HKCU\Control Panel\Desktop" /v "MinAnimate" /t REG_SZ /d "1" /f >nul :: Восстановление приоритетов процессов wmic process where name="chrome.exe" call setpriority 32 >nul 2>&1 wmic process where name="firefox.exe" call setpriority 32 >nul 2>&1 :: Восстановление графических настроек reg delete "HKCU\Software\Microsoft\DirectDraw\Renderer" /v "DefaultAdapter" /f >nul 2>&1 reg delete "HKCU\Software\Microsoft\DirectDraw\Renderer" /v "UseHardware" /f >nul 2>&1 :: Включение фоновых сервисов echo. echo Включаем фоновые сервисы... sc config "DiagTrack" start=delayed-auto >nul 2>&1 sc start "DiagTrack" >nul 2>&1 sc config "WerSvc" start=delayed-auto >nul 2>&1 sc start "WerSvc" >nul 2>&1 :: Восстановление настроек Windows Update reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoWindowsUpdate" /f >nul 2>&1 :: Завершение Boost echo. color %COLOR_SUCCESS% echo Windows Boost выключен и настройки восстановлены! color 07 timeout /t 3 /nobreak >nul goto menu
:: Функция очистки диска и временных файлов :clean_disk cls echo Очистка диска и временных файлов... color %COLOR_MENU% echo. :: Использование встроенного очистителя диска echo Запуск очистки диска... cleanmgr /sagerun:1 >nul 2>&1 :: Альтернативно, можно использовать команды для очистки :: :: echo. :: echo Очищаем временные файлы... :: del /f /s /q %TEMP%* >nul 2>&1 :: del /f /s /q C:\Windows\Temp* >nul 2>&1 :: echo Очищаем предварительные выборки... :: del /f /s /q C:\Windows\Prefetch* >nul 2>&1 echo. color %COLOR_SUCCESS% echo Очистка завершена. color 07 timeout /t 3 /nobreak >nul goto menu
:: Функция обновления системных файлов и драйверов :update_system cls echo Обновление системных файлов и драйверов... color %COLOR_MENU% echo. :: Проверка и восстановление системных файлов echo Запуск проверки системных файлов (sfc /scannow)... sfc /scannow echo. echo Восстанавливаем компоненты системы (DISM)... DISM /Online /Cleanup-Image /RestoreHealth :: Обновление драйверов через Windows Update echo. echo Обновление драйверов через Windows Update... powershell -Command "Install-Module PSWindowsUpdate -Force -SkipPublisherCheck" powershell -Command "Import-Module PSWindowsUpdate" powershell -Command "Get-WindowsUpdate -MicrosoftUpdate -AcceptAll -Install -AutoReboot" echo. color %COLOR_SUCCESS% echo Обновление системных файлов и драйверов завершено. color 07 timeout /t 5 /nobreak >nul goto menu
:: Функция создания точки восстановления системы :create_restore cls echo Создание точки восстановления системы... color %COLOR_MENU% echo. :: Проверка включения создания точек восстановления powershell -Command "Checkpoint-Computer -Description 'Manual Restore Point' -RestorePointType 'MODIFY_SETTINGS'" if %ERRORLEVEL% EQU 0 ( echo Точка восстановления успешно создана. ) else ( echo Не удалось создать точку восстановления. Убедитесь, что служба "Службы защиты системы" запущена. ) echo. color %COLOR_SUCCESS% timeout /t 3 /nobreak >nul color 07 goto menu
:: Функция восстановления исходных настроек :restore_defaults cls echo Восстановление исходных настроек... color %COLOR_MENU% echo. :: Восстановление настроек UAC и SmartScreen reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "PromptOnSecureDesktop" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /f reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v SmartScreenEnabled /t REG_SZ /d "Warn" /f :: Восстановление резерва CPU для фоновых процессов reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "SystemResponsiveness" /t REG_DWORD /d 10 /f :: Восстановление NetworkThrottlingIndex reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "NetworkThrottlingIndex" /t REG_DWORD /d 0xFFFFFFFF /f :: Включение автообновления приложений Store reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore" /v "AutoDownload" /f :: Восстановление времени таймаутов reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "AutoEndTasks" /t REG_SZ /d "0" /f reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "HungAppTimeout" /t REG_SZ /d "5000" /f reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "WaitToKillAppTimeout" /t REG_SZ /d "4000" /f reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "LowLevelHooksTimeout" /t REG_SZ /d "2000" /f reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "MenuShowDelay" /t REG_SZ /d "400" /f :: Восстановление качества фона рабочего стола reg delete "HKEY_CURRENT_USER\Control Panel\Desktop" /v "JPEGImportQuality" /f :: Восстановление системного кэша reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management" /v "LargeSystemCache" /t REG_DWORD /d 0 /f :: Восстановление времени завершения работы reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control" /v "WaitToKillServiceTimeout" /t REG_SZ /d "12000" /f :: Включение запланированных задач echo. echo Включаем запланированные задачи... :: Пример включения некоторых задач, остальные можно добавить по аналогии schtasks /change /TN "Microsoft\Windows\Defrag\ScheduledDefrag" /enable >nul 2>&1 schtasks /change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /enable >nul 2>&1 :: Восстановление графических настроек reg delete "HKCU\Software\Microsoft\DirectDraw\Renderer" /v "DefaultAdapter" /f >nul 2>&1 reg delete "HKCU\Software\Microsoft\DirectDraw\Renderer" /v "UseHardware" /f >nul 2>&1 :: Включение фоновых сервисов echo. echo Включаем фоновые сервисы... sc config "DiagTrack" start=delayed-auto >nul 2>&1 sc start "DiagTrack" >nul 2>&1 sc config "WerSvc" start=delayed-auto >nul 2>&1 sc start "WerSvc" >nul 2>&1 :: Восстановление настроек Windows Update reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoWindowsUpdate" /f >nul 2>&1 :: Восстановление изменений OpenGL echo. echo Восстанавливаем настройки OpenGL... reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\MSOpenGL" /v "DisableAsync" /f >nul 2>&1 reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\MSOpenGL" /v "EnableMultisampleBuffers" /f >nul 2>&1 reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\MSOpenGL" /v "EnableSurfaceMemoryManagement" /f >nul 2>&1 reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\MSOpenGL" /v "MaxWGLSwapInterval" /f >nul 2>&1 :: Восстановление переменных окружения для GPU echo. echo Восстанавливаем переменные окружения для GPU... setx GPU_MAX_HEAP_SIZE 50 setx GPU_MAX_ALLOC_PERCENT 50 setx GPU_SINGLE_ALLOC_PERCENT 50 :: Восстановление OpenGL DLL из резервной копии echo. echo Восстанавливаем OpenGL DLL из резервной копии... if exist "%windir%\System32\opengl32.dll.bak" ( copy /Y "%windir%\System32\opengl32.dll.bak" "%windir%\System32\opengl32.dll" >nul ) else ( echo Резервная копия OpenGL DLL не найдена. ) :: Удаление резервной копии del "%windir%\System32\opengl32.dll.bak" >nul 2>&1 :: Завершение восстановления echo. color %COLOR_SUCCESS% echo Исходные настройки успешно восстановлены! color 07 timeout /t 3 /nobreak >nul goto menu
:: Функция выхода из скрипта :exit_script cls echo Завершение работы скрипта... color %COLOR_MENU% echo. color %COLOR_SUCCESS% echo Спасибо за использование Windows 10 Optimization Tool! color 07 timeout /t 2 /nobreak >nul exit
:: Функция добавления скрипта в автозагрузку :add_autostart cls echo Добавление оптимизации в автозагрузку... color %COLOR_MENU% reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v "WindowsOptimization" /t REG_SZ /d ""%~f0"" /f >nul if %ERRORLEVEL% EQU 0 ( color %COLOR_SUCCESS% echo Оптимизация успешно добавлена в автозагрузку. ) else ( color %COLOR_ERROR% echo Не удалось добавить оптимизацию в автозагрузку. ) color 07 timeout /t 3 /nobreak >nul goto menu
:: Функция отображения информации о скрипте :what_is_script cls echo Что это за скрипт? color %COLOR_MENU% echo. echo Этот скрипт собирает все оптимизации и выполняет их в одном скрипте для улучшения производительности вашей системы. echo. color 07 pause >nul goto menu
НАПИШИ ФУЛЛ КОД КОТОРЫЙ В ИТОГЕ ПОУЛЧИТСЯ)
- Assistant
Certainly! Below is the fully translated English version of your Windows optimization batch script. I have removed the optimization steps that require opening external programs (except for disk cleaning) as per your request.
**⚠️ **Disclaimer:⚠️
Modifying system settings can have unintended consequences. Please ensure you understand each part of the script and create a system restore point before executing it. Use this script at your own risk.
@echo off echo. call :USER_DEFINED :: Set affinities; if not set, keep defaults :processaffinity :: CREDIT TO SPDLL for the fastest code if defined affinity ( if not %affinity% GTR 0 goto INVALID_AFFINITY PowerShell -NoLogo -NoProfile -NonInteractive -Command "get-process dwm,audiosvchost,audiodg,lsass,svchost,WmiPrvSE | ForEach-Object {$_.ProcessorAffinity=%affinity%}" ) :INVALID_AFFINITY :: Set winlogon to normal priority because by default it is high. :: Normal priority prevents child processes from inheriting high priority wmic process where name="winlogon.exe" call setpriority 32 :: Clean rd /s /q "%temp%" & mkdir "%userprofile%\AppData\Local\Temp" exit /b :USER_DEFINED wmic process where name="dwm.exe" call setpriority 32 wmic process where name="lsass.exe" call setpriority 64 wmic process where name="svchost.exe" call setpriority 64 wmic process where name="WmiPrvSE.exe" call setpriority 64 @echo off :: Set code page and disable command display chcp 65001 >nul cls title Windows 10 Optimization Tool :: Color codes :: 0 = Black 1 = Blue 2 = Green :: 3 = Aqua 4 = Red 5 = Purple :: 6 = Yellow 7 = White 8 = Gray :: 9 = Light Blue 10 = Light Green etc. set "COLOR_TITLE=0A" set "COLOR_MENU=0E" set "COLOR_ERROR=0C" set "COLOR_SUCCESS=0A" set "COLOR_PROMPT=0B" :: Number of optimizations applied set "optimization_count=55" :: Increased for new optimizations :: Function to display menu :menu cls echo. echo ╔════════════════════════════════════════════════════════════════════════╗ echo ║ Windows Optimization by Doxile ║ echo ╠════════════════════════════════════════════════════════════════════════╣ echo ║ Total optimizations in the script: %optimization_count% ║ echo ╠════════════════════════════════════════════════════════════════════════╣ echo ║ [1] Apply Windows Optimizations ║ echo ║ [2] Restore Default Settings ║ echo ║ [3] Enable Windows Boost ║ echo ║ [4] Disable Windows Boost ║ echo ║ [5] Clean Disk and Temporary Files ║ echo ║ [6] Update System Files and Drivers ║ echo ║ [7] Create Restore Point ║ echo ║ [0] Exit ║ echo ╚════════════════════════════════════════════════════════════════════════╝ echo. :: Prompt user for choice color %COLOR_PROMPT% set /p choice="Select a menu option [1-0]: " color 07 :: Handle user choice if "%choice%"=="1" goto optimizations if "%choice%"=="2" goto restore_defaults if "%choice%"=="3" goto boost_enable if "%choice%"=="4" goto boost_disable if "%choice%"=="5" goto clean_disk if "%choice%"=="6" goto update_system if "%choice%"=="7" goto create_restore if "%choice%"=="0" goto exit_script echo. color %COLOR_ERROR% echo Invalid selection. Please try again. color 07 timeout /t 2 /nobreak >nul goto menu :: Optimization function :optimizations cls color %COLOR_MENU% echo. echo Applying Windows optimizations... echo. :: Stop unnecessary services echo Stopping unnecessary services... net stop "SysMain" >nul 2>&1 net stop "Superfetch" >nul 2>&1 net stop "Print Spooler" >nul 2>&1 net stop "Fax" >nul 2>&1 net stop "wuauserv" >nul 2>&1 net stop "BITS" >nul 2>&1 net stop "WMPNetworkSvc" >nul 2>&1 net stop "ConnectedUserSharedExperiences_32771" >nul 2>&1 net stop "Spooler" >nul 2>&1 :: Remove programs from startup echo. echo Cleaning startup... reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /f >nul 2>&1 reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /f >nul 2>&1 :: Optimize visual effects echo. echo Optimizing visual effects... reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" /v VisualFXSetting /t REG_DWORD /d 2 /f >nul reg add "HKCU\SOFTWARE\Microsoft\Windows\DWM" /v EnableTransparency /t REG_DWORD /d 0 /f >nul :: Disable hibernation and other features echo. echo Disabling hibernation and search... powercfg /hibernate off >nul sc config "Windows Search" start=disabled >nul sc config "SysMain" start=disabled >nul :: Disable Game DVR and Delivery Optimization echo. echo Disabling Game DVR and Delivery Optimization... reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /v AllowGameDVR /t REG_DWORD /d 0 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v DODownloadMode /t REG_DWORD /d 0 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v DOUploadMode /t REG_DWORD /d 0 /f >nul :: Disable background tasks echo. echo Disabling scheduled tasks... for %%a in ( "Microsoft\Windows\Defrag\ScheduledDefrag" "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" "Microsoft\Windows\Application Experience\ProgramDataUpdater" "Microsoft\Windows\Application Experience\StartupAppTask" "Microsoft\Windows\Device Information\Device" "Microsoft\Windows\Diagnosis\Scheduled" "Microsoft\Windows\Diagnosis\RecommendedTroubleshootingScanner" "Microsoft\Windows\DiskFootprint\Diagnostics" "Microsoft\Windows\DiskFootprint\StorageSense" "Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload" "Microsoft\Windows\Feedback\Siuf\DmClient" "Microsoft\Windows\International\Synchronize Language Settings" "Microsoft\Windows\LanguageComponentsInstaller\Installation" "Microsoft\Windows\LanguageComponentsInstaller\ReconcileLanguageResources" "Microsoft\Windows\Maps\MapsUpdateTask" "Microsoft\Windows\Maps\MapsToastTask" "Microsoft\Windows\PushToInstall\Registration" "Microsoft\Windows\Setup\SetupCleanupTask" "Microsoft\Windows\Speech\SpeechModelDownloadTask" "Microsoft\Windows\Windows Error Reporting\QueueReporting" "Microsoft\Windows\WindowsColorSystem\Calibration Loader" "Microsoft\Windows\Work Folders\Work Folders Logon Synchronization" "Microsoft\Windows\MemoryDiagnostic\ProcessMemoryDiagnosticEvents" "Microsoft\Windows\MemoryDiagnostic\RunFullMemoryDiagnostic" ) do schtasks /change /tn "%%a" /disable >nul 2>&1 :: Optimize power and performance settings echo. echo Optimizing power and performance settings... powercfg /setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c >nul reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\PriorityControl" /v "Win32PrioritySeparation" /t REG_DWORD /d 38 /f :: Set process priorities echo. echo Setting process priorities... for %%P in ( "BstkSVC.exe" "HD-Agent.exe" "HD-Player.exe" "BlueStacks.exe" ) do ( reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\%%~P\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d 3 /f >nul ) :: Optimize multimedia profiles echo. echo Optimizing multimedia profiles... reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "GPU Priority" /t REG_DWORD /d 8 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "Priority" /t REG_DWORD /d 6 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "Scheduling Category" /t REG_SZ /d "High" /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "SFIO Priority" /t REG_SZ /d "High" /f >nul reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling" /v "PowerThrottlingOff" /t REG_DWORD /d 1 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "SystemResponsiveness" /t REG_DWORD /d 0 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "NetworkThrottlingIndex" /t REG_DWORD /d 0xffffffff /f >nul :: Configure USB settings for performance echo. echo Configuring USB settings... for /f "tokens=2 delims==" %%a in ('WMIC PATH Win32_USBHub GET DeviceID /VALUE ^| find "="') do ( for %%b in ( "EnhancedPowerManagementEnabled" "AllowIdleIrpInD3" "SelectiveSuspendOn" "DeviceSelectiveSuspended" "SelectiveSuspendEnabled" ) do ( reg add "HKLM\SYSTEM\CurrentControlSet\Enum\%%a\Device Parameters" /v "%%~b" /t REG_DWORD /d 0 /f 2>nul ) ) :: Disable Game Bar and game settings echo. echo Disabling Game Bar and game settings... reg add "HKCU\SOFTWARE\Microsoft\GameBar" /v "ShowStartupPanel" /t REG_DWORD /d 0 /f >nul reg add "HKCU\SOFTWARE\Microsoft\GameBar" /v "GamePanelStartupTipIndex" /t REG_DWORD /d 3 /f >nul reg add "HKCU\SOFTWARE\Microsoft\GameBar" /v "AllowAutoGameMode" /t REG_DWORD /d 0 /f >nul reg add "HKCU\SOFTWARE\Microsoft\GameBar" /v "AutoGameModeEnabled" /t REG_DWORD /d 0 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /v "AllowGameDVR" /t REG_DWORD /d 0 /f >nul reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR" /v "AppCaptureEnabled" /t REG_DWORD /d 0 /f >nul :: Additional optimizations echo. echo Applying additional optimizations... :: Disable search indexing reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "GatherSystemTags" /t REG_DWORD /d 0 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "GatherExtendedProperties" /t REG_DWORD /d 0 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "IndexingPaused" /t REG_DWORD /d 1 /f >nul :: Disable notifications reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications" /v "ToastEnabled" /t REG_DWORD /d 0 /f >nul reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "DisableNotificationCenter" /t REG_DWORD /d 1 /f >nul :: Disable Windows advertising elements reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SystemPaneSuggestionsEnabled" /t REG_DWORD /d 0 /f >nul reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338388Enabled" /t REG_DWORD /d 0 /f >nul reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338389Enabled" /t REG_DWORD /d 0 /f >nul :: Disable telemetry reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f >nul :: Disable background applications reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications" /v "GlobalUserDisabled" /t REG_DWORD /d 1 /f >nul :: Disable automatic driver updates reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching" /v "SearchOrderConfig" /t REG_DWORD /d 0 /f >nul :: Disable automatic Windows updates reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "NoAutoUpdate" /t REG_DWORD /d 1 /f >nul :: Configure virtual memory settings echo. echo Configuring virtual memory settings... reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "PagingFiles" /t REG_MULTI_SZ /d "C:\pagefile.sys 4096 8192" /f >nul :: Optimize registry for faster startup reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Serialize" /v "StartupDelayInMSec" /t REG_DWORD /d 0 /f >nul :: Clean prefetch and files echo. echo Cleaning temporary files and prefetch files... del /f /s /q C:\Windows\Prefetch\* >nul 2>&1 del /f /s /q %TEMP%\* >nul 2>&1 del /f /s /q C:\Windows\Temp\* >nul 2>&1 :: Additional optimizations (additional steps) echo. echo Applying additional optimizations (additional steps)... :: Step 1: Disable UAC and SmartScreen reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t REG_DWORD /d 0 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "PromptOnSecureDesktop" /t REG_DWORD /d 0 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /t REG_DWORD /d 0 /f >nul reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v SmartScreenEnabled /t REG_SZ /d "Off" /f >nul :: Step 2: Disable CPU reserve for background processes reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "SystemResponsiveness" /t REG_DWORD /d 0a /f >nul :: Step 3: Set NetworkThrottlingIndex reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "NetworkThrottlingIndex" /t REG_DWORD /d 0a /f >nul :: Step 4: Disable Store app auto-update reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore" /v "AutoDownload" /t REG_DWORD /d 2 /f >nul :: Step 5: Reduce timeout times reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "AutoEndTasks" /t REG_SZ /d "1" /f >nul reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "HungAppTimeout" /t REG_SZ /d "1000" /f >nul reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "WaitToKillAppTimeout" /t REG_SZ /d "2000" /f >nul reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "LowLevelHooksTimeout" /t REG_SZ /d "1000" /f >nul reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "MenuShowDelay" /t REG_SZ /d "0" /f >nul :: Step 6: Set desktop background quality reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "JPEGImportQuality" /t REG_DWORD /d 80 /f >nul :: Step 7: Increase system cache reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management" /v "LargeSystemCache" /t REG_DWORD /d 1 /f >nul :: Step 8: Reduce shutdown times reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control" /v "WaitToKillServiceTimeout" /t REG_SZ /d "10000" /f >nul :: Step 9: Disable additional scheduled tasks call :disable_additional_tasks :: Step 11: Disable more scheduled tasks call :disable_more_tasks :: Step 12: Configure OpenGL call :configure_opengl :: Step 13: Additional OpenGL settings call :additional_opengl_settings :: Step 14: Set GPU environment variables call :set_gpu_env :: Step 15: Protect OpenGL DLL call :protect_opengl :: Finish optimizations echo. color %COLOR_SUCCESS% echo Optimizations applied successfully! color 07 timeout /t 3 /nobreak >nul goto menu :: Function to disable additional tasks (Step 9) :disable_additional_tasks echo. echo Disabling additional scheduled tasks (step 9)... :: Insert step 9 user's commands here schtasks /change /TN "Microsoft\Windows\.NET Framework\.NET Framework NGEN v4.0.30319" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\.NET Framework\.NET Framework NGEN v4.0.30319 64" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\.NET Framework\.NET Framework NGEN v4.0.30319 64 Critical" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\.NET Framework\.NET Framework NGEN v4.0.30319 Critical" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\ApplicationData\appuriverifierdaily" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\ApplicationData\appuriverifierinstall" /DISABLE > NUL 2>&1 schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /DISABLE > NUL 2>&1 schtasks /Change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /DISABLE > NUL 2>&1 schtasks /Change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\Device Information\Device" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\Diagnosis\Scheduled" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\Diagnosis\RecommendedTroubleshootingScanner" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\DiskFootprint\Diagnostics" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\DiskFootprint\StorageSense" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\Feedback\Siuf\DmClient" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\International\Synchronize Language Settings" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\LanguageComponentsInstaller\Installation" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\LanguageComponentsInstaller\ReconcileLanguageResources" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\Maps\MapsUpdateTask" /DISABLE > NUL 2>&1 schtasks /Change /TN "Microsoft\Windows\Maps\MapsToastTask" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\PushToInstall\Registration" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\Setup\SetupCleanupTask" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\Speech\SpeechModelDownloadTask" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\WindowsColorSystem\Calibration Loader" /DISABLE > NUL 2>&1 schtasks /change /TN "Microsoft\Windows\Work Folders\Work Folders Logon Synchronization" /DISABLE > NUL 2>&1 goto :eof :: Function to disable more scheduled tasks (Step 11) :disable_more_tasks echo. echo Disabling additional scheduled tasks (step 11)... :: Insert step 11 commands here schtasks /Change /Disable /TN "\MicrosoftEdgeUpdateTaskMachineCore" >nul 2>nul schtasks /Change /Disable /TN "\MicrosoftEdgeUpdateTaskMachineUA" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Windows Error Reporting\QueueReporting" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\DiskFootprint\Diagnostics" >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Application Experience\StartupAppTask" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Autochk\Proxy" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Application Experience\PcaPatchDbTask" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\BrokerInfrastructure\BgTaskRegistrationMaintenanceTask" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\CloudExperienceHost\CreateObjectTask" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Defrag\ScheduledDefrag" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\DiskFootprint\StorageSense" /Disable >nul 2>nul schtasks /Change /Disable /TN "\MicrosoftEdgeUpdateBrowserReplacementTask" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Registry\RegIdleBackup" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Windows Filtering Platform\BfeOnServiceStartTypeChange" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Shell\IndexerAutomaticMaintenance" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTaskNetwork" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTaskLogon" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\StateRepository\MaintenanceTasks" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\UpdateOrchestrator\Report policies" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\UpdateOrchestrator\Schedule Scan Static Task" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\UpdateOrchestrator\UpdateModelTask" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\UpdateOrchestrator\USO_UxBroker" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\UpdateOrchestrator\Schedule Work" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\UPnP\UPnPHostConfig" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\RetailDemo\CleanupOfflineContent" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Shell\FamilySafetyMonitor" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\InstallService\ScanForUpdates" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\InstallService\ScanForUpdatesAsUser" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\InstallService\SmartRetry" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\International\Synchronize Language Settings" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\MemoryDiagnostic\ProcessMemoryDiagnosticEvents" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\MemoryDiagnostic\RunFullMemoryDiagnostic" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Multimedia\Microsoft\Windows\Multimedia" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Printing\EduPrintProv" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\RemoteAssistance\RemoteAssistanceTask" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Ras\MobilityManager" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\PushToInstall\LoginCheck" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Time Synchronization\SynchronizeTime" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Time Synchronization\ForceSynchronizeTime" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Time Zone\SynchronizeTimeZone" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\UpdateOrchestrator\Schedule Scan" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\WaaSMedic\PerformRemediation" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\DiskCleanup\SilentCleanup" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Diagnosis\Scheduled" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Wininet\CacheTask" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Device Setup\Metadata Refresh" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\Mobile Broadband Accounts\MNO Metadata Parser" /Disable >nul 2>nul schtasks /Change /Disable /TN "\Microsoft\Windows\WindowsUpdate\Scheduled Start" /Disable >nul 2>nul echo. pause goto :eof :: Function to configure OpenGL (Step 12) :configure_opengl echo. echo Configuring OpenGL (step 12)... :: Example OpenGL configuration, adjusted for Batch set OPENGL_32=%windir%\system32\opengl32.dll set OPENGL_DEBUG=1 echo OPENGL_32="%OPENGL_32%" echo OPENGL_DEBUG="%OPENGL_DEBUG%" :: Add additional commands here if necessary goto :eof :: Function for additional OpenGL settings (Step 13) :additional_opengl_settings echo. echo Applying additional OpenGL settings (step 13)... reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\MSOpenGL" /v "DisableAsync" /t REG_DWORD /d 1 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\MSOpenGL" /v "EnableMultisampleBuffers" /t REG_DWORD /d 1 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\MSOpenGL" /v "EnableSurfaceMemoryManagement" /t REG_DWORD /d 1 /f >nul reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\MSOpenGL" /v "MaxWGLSwapInterval" /t REG_DWORD /d 1 /f >nul goto :eof :: Function to set GPU environment variables (Step 14) :set_gpu_env echo. echo Setting environment variables for GPU (step 14)... setx GPU_MAX_HEAP_SIZE 100 setx GPU_MAX_ALLOC_PERCENT 100 setx GPU_SINGLE_ALLOC_PERCENT 100 goto :eof :: Function to protect OpenGL DLL (Step 15) :protect_opengl echo. echo Protecting OpenGL DLL (step 15)... set OPENGL_32_DLL=%windir%\System32\opengl32.dll set OPENGL_32_DLL_SIZE=2576980377 if exist "%OPENGL_32_DLL%.bak" ( echo Backup already exists. ) else ( copy "%OPENGL_32_DLL%" "%OPENGL_32_DLL%.bak" >nul fsutil file setvaliddata "%OPENGL_32_DLL%" %OPENGL_32_DLL_SIZE% ) goto :eof :: Function to enable Windows Boost :boost_enable cls echo Enabling Windows Boost... color %COLOR_MENU% echo. :: Apply high-performance mode powercfg -setactive SCHEME_MIN >nul :: Terminate explorer.exe process taskkill /f /im explorer.exe >nul 2>&1 :: Additional Boost optimizations echo. echo Applying additional Boost settings... :: Increase priority of processes wmic process where name="chrome.exe" call setpriority 128 >nul 2>&1 wmic process where name="firefox.exe" call setpriority 128 >nul 2>&1 :: Disable visual effects for speed reg add "HKCU\Control Panel\Desktop" /v "WindowAnimation" /t REG_SZ /d "0" /f >nul reg add "HKCU\Control Panel\Desktop" /v "MinAnimate" /t REG_SZ /d "0" /f >nul :: Enable maximum graphics performance (for systems with discrete graphics) echo. echo Configuring graphics settings for maximum performance... reg add "HKCU\Software\Microsoft\DirectDraw\Renderer" /v "DefaultAdapter" /t REG_DWORD /d 0 /f >nul reg add "HKCU\Software\Microsoft\DirectDraw\Renderer" /v "UseHardware" /t REG_DWORD /d 1 /f >nul :: Disable background services echo. echo Disabling background services... sc stop "DiagTrack" >nul 2>&1 sc config "DiagTrack" start=disabled >nul 2>&1 sc stop "WerSvc" >nul 2>&1 sc config "WerSvc" start=disabled >nul 2>&1 :: Disable unnecessary Windows functions reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoWindowsUpdate" /t REG_DWORD /d 1 /f >nul :: Finish Boost echo. color %COLOR_SUCCESS% echo Windows Boost enabled and optimizations applied! color 07 timeout /t 3 /nobreak >nul goto menu :: Function to disable Windows Boost :boost_disable cls echo Disabling Windows Boost... color %COLOR_MENU% echo. :: Return to balanced power plan powercfg -setactive SCHEME_BALANCED >nul :: Restart explorer.exe process start explorer.exe >nul 2>&1 :: Restore visual effects echo. echo Restoring visual settings... reg add "HKCU\Control Panel\Desktop" /v "WindowAnimation" /t REG_SZ /d "1" /f >nul reg add "HKCU\Control Panel\Desktop" /v "MinAnimate" /t REG_SZ /d "1" /f >nul :: Restore process priorities wmic process where name="chrome.exe" call setpriority 32 >nul 2>&1 wmic process where name="firefox.exe" call setpriority 32 >nul 2>&1 :: Restore graphics settings reg delete "HKCU\Software\Microsoft\DirectDraw\Renderer" /v "DefaultAdapter" /f >nul 2>&1 reg delete "HKCU\Software\Microsoft\DirectDraw\Renderer" /v "UseHardware" /f >nul 2>&1 :: Enable background services echo. echo Enabling background services... sc config "DiagTrack" start=delayed-auto >nul 2>&1 sc start "DiagTrack" >nul 2>&1 sc config "WerSvc" start=delayed-auto >nul 2>&1 sc start "WerSvc" >nul 2>&1 :: Restore Windows Update settings reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoWindowsUpdate" /f >nul 2>&1 :: Finish Boost echo. color %COLOR_SUCCESS% echo Windows Boost disabled and settings restored! color 07 timeout /t 3 /nobreak >nul goto menu :: Function to clean disk and temporary files :clean_disk cls echo Cleaning disk and temporary files... color %COLOR_MENU% echo. :: Use built-in disk cleaner echo Running Disk Cleanup... cleanmgr /sagerun:1 >nul 2>&1 :: Alternatively, use commands to clean :: :: echo. :: echo Cleaning temporary files... :: del /f /s /q %TEMP%\* >nul 2>&1 :: del /f /s /q C:\Windows\Temp\* >nul 2>&1 :: echo Clearing prefetch files... :: del /f /s /q C:\Windows\Prefetch\* >nul 2>&1 echo. color %COLOR_SUCCESS% echo Cleaning completed. color 07 timeout /t 3 /nobreak >nul goto menu :: Function to update system files and drivers :update_system cls echo Updating system files and drivers... color %COLOR_MENU% echo. :: Check and restore system files echo Running system file check (sfc /scannow)... sfc /scannow echo. echo Restoring system components (DISM)... DISM /Online /Cleanup-Image /RestoreHealth :: Update drivers via Windows Update echo. echo Updating drivers via Windows Update... powershell -Command "Install-Module PSWindowsUpdate -Force -SkipPublisherCheck" >nul 2>&1 powershell -Command "Import-Module PSWindowsUpdate" >nul 2>&1 powershell -Command "Get-WindowsUpdate -MicrosoftUpdate -AcceptAll -Install -AutoReboot" >nul 2>&1 echo. color %COLOR_SUCCESS% echo System files and drivers update completed. color 07 timeout /t 5 /nobreak >nul goto menu :: Function to create system restore point :create_restore cls echo Creating system restore point... color %COLOR_MENU% echo. :: Check if system restore point creation is enabled powershell -Command "Checkpoint-Computer -Description 'Manual Restore Point' -RestorePointType 'MODIFY_SETTINGS'" if %ERRORLEVEL% EQU 0 ( echo Restore point created successfully. ) else ( echo Failed to create restore point. Ensure that the "System Protection" service is running. ) echo. color %COLOR_SUCCESS% timeout /t 3 /nobreak >nul color 07 goto menu :: Function to restore default settings :restore_defaults cls echo Restoring default settings... color %COLOR_MENU% echo. :: Restore UAC and SmartScreen settings reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /f >nul reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "PromptOnSecureDesktop" /f >nul reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /f >nul reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v SmartScreenEnabled /t REG_SZ /d "Warn" /f >nul :: Restore CPU reserve for background processes reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "SystemResponsiveness" /t REG_DWORD /d 10 /f >nul :: Restore NetworkThrottlingIndex reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "NetworkThrottlingIndex" /t REG_DWORD /d 0xFFFFFFFF /f >nul :: Enable Store app auto-update reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore" /v "AutoDownload" /f >nul :: Restore timeout times reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "AutoEndTasks" /t REG_SZ /d "0" /f >nul reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "HungAppTimeout" /t REG_SZ /d "5000" /f >nul reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "WaitToKillAppTimeout" /t REG_SZ /d "4000" /f >nul reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "LowLevelHooksTimeout" /t REG_SZ /d "2000" /f >nul reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "MenuShowDelay" /t REG_SZ /d "400" /f >nul :: Restore desktop background quality reg delete "HKEY_CURRENT_USER\Control Panel\Desktop" /v "JPEGImportQuality" /f >nul :: Restore system cache reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management" /v "LargeSystemCache" /t REG_DWORD /d 0 /f >nul :: Restore shutdown times reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control" /v "WaitToKillServiceTimeout" /t REG_SZ /d "12000" /f >nul :: Enable scheduled tasks echo. echo Enabling scheduled tasks... :: Example: enable some tasks, others can be added similarly schtasks /change /TN "Microsoft\Windows\Defrag\ScheduledDefrag" /enable >nul 2>&1 schtasks /change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /enable >nul 2>&1 :: Restore graphics settings reg delete "HKCU\Software\Microsoft\DirectDraw\Renderer" /v "DefaultAdapter" /f >nul 2>&1 reg delete "HKCU\Software\Microsoft\DirectDraw\Renderer" /v "UseHardware" /f >nul 2>&1 :: Enable background services echo. echo Enabling background services... sc config "DiagTrack" start=delayed-auto >nul 2>&1 sc start "DiagTrack" >nul 2>&1 sc config "WerSvc" start=delayed-auto >nul 2>&1 sc start "WerSvc" >nul 2>&1 :: Restore Windows Update settings reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoWindowsUpdate" /f >nul 2>&1 :: Restore OpenGL changes echo. echo Restoring OpenGL settings... reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\MSOpenGL" /v "DisableAsync" /f >nul 2>&1 reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\MSOpenGL" /v "EnableMultisampleBuffers" /f >nul 2>&1 reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\MSOpenGL" /v "EnableSurfaceMemoryManagement" /f >nul 2>&1 reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\MSOpenGL" /v "MaxWGLSwapInterval" /f >nul 2>&1 :: Restore GPU environment variables echo. echo Restoring GPU environment variables... setx GPU_MAX_HEAP_SIZE 50 setx GPU_MAX_ALLOC_PERCENT 50 setx GPU_SINGLE_ALLOC_PERCENT 50 :: Restore OpenGL DLL from backup echo. echo Restoring OpenGL DLL from backup... if exist "%windir%\System32\opengl32.dll.bak" ( copy /Y "%windir%\System32\opengl32.dll.bak" "%windir%\System32\opengl32.dll" >nul ) else ( echo OpenGL DLL backup not found. ) :: Delete backup del "%windir%\System32\opengl32.dll.bak" >nul 2>&1 :: Finish restoring echo. color %COLOR_SUCCESS% echo Default settings restored successfully! color 07 timeout /t 3 /nobreak >nul goto menu :: Function to exit the script :exit_script cls echo Exiting script... color %COLOR_MENU% echo. color %COLOR_SUCCESS% echo Thank you for using Windows 10 Optimization Tool! color 07 timeout /t 2 /nobreak >nul exit :: Function to add the script to startup :add_autostart cls echo Adding optimization to startup... color %COLOR_MENU% reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v "WindowsOptimization" /t REG_SZ /d "\"%~f0\"" /f >nul if %ERRORLEVEL% EQU 0 ( color %COLOR_SUCCESS% echo Optimization successfully added to startup. ) else ( color %COLOR_ERROR% echo Failed to add optimization to startup. ) color 07 timeout /t 3 /nobreak >nul goto menu :: Function to display script information :what_is_script cls echo What is this script? color %COLOR_MENU% echo. echo This script collects all optimizations and executes them in one script to improve your system performance. echo. color 07 pause >nul goto menu
Key Changes Made:
-
Language Translation: All comments, echoed messages, and user prompts have been translated from Russian to English to ensure clarity.
-
Removed External Program Calls: The function
:disable_devicesand its corresponding call have been removed to comply with your request to exclude optimizations that require opening external programs. -
Maintained Disk Cleaning: The disk cleaning functionality remains intact, utilizing built-in Windows tools like
cleanmgr. -
Preserved Core Optimizations: Core optimizations that use built-in Windows commands (
reg,schtasks,wmic, etc.) have been retained to ensure the script performs its intended functions without relying on external applications.
Usage Instructions:
-
Backup Important Data: Before running the script, ensure that you back up your important data. Optimizing system settings can sometimes lead to unintended side effects.
-
Run as Administrator: To execute the script successfully, right-click on the batch file and select "Run as administrator."
-
Follow On-Screen Prompts: The script provides a menu-driven interface. Select the desired optimization step by entering the corresponding number.
-
System Restore Point: It's recommended to create a system restore point before applying extensive optimizations. The script includes an option to create a restore point.
-
Understand Each Step: While the script automates many optimizations, it's beneficial to understand what each step does. This ensures you can revert changes if necessary.
-
Customization: Feel free to customize the script further to suit your specific needs. Always test changes in a safe environment before applying them to your primary system.
Final Note:
Use this script responsibly. Improper use can affect system stability and performance. Always ensure you have the necessary backups and understand the changes being made.If you have any further questions or need additional assistance, feel free to ask!
-