Computer Optimization Batch File.

Computer Optimization Batch File. 2024-11-18

  • Hi there and welcome to PC Help Forum (PCHF), a more effective way to get the Tech Support you need!
    We have Experts in all areas of Tech, including Malware Removal, Crash Fixing and BSOD's , Microsoft Windows, Computer DIY and PC Hardware, Networking, Gaming, Tablets and iPads, General and Specific Software Support and so much more.

    Why not Click Here To Sign Up and start enjoying great FREE Tech Support.

    This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  • Hello everyone We want to personally apologize to everyone for the downtime that we've experienced. Due to the issues we've had, your password will need to be reset. Please click the button that says "Forgot Your Password" and change it. Thanks, PCHF Management

This batch file is designed to perform several tweaks and customizations to the Windows operating system.​




It will significantly reduce load on your system. Running this from my experience on average will drop CPU usage by 8-15 points.




Here's a breakdown of what the script does:

Echo Off:


The script starts with @echo off to prevent commands from being displayed in the command prompt window as they are executed.

System Restore:

The script uses PowerShell to enable system restore on the C: drive and creates a restore point named "PreBatchPCHF." This acts as a safeguard, allowing users to revert the system to this point if necessary.

Stopping and Renaming System Services:

The script forcefully stops several Windows services and executables like DeviceCensus.exe, SearchHost.exe, ElevocControlService.exe, textinputhost.exe, smartscreen.exe, and StartMenuExperienceHost.exe.

It then uses icacls to grant full control permissions to everyone, effectively removing any security restrictions on these files.

These executables are renamed with a .bak extension, likely to disable them from being run again in their current state.

Registry Modifications:

The script makes various changes to the Windows registry to disable or modify certain system features, such as telemetry, prefetching, driver searching during updates, Windows Update for drivers, and several service start types.

Disabling Scheduled Tasks:

  • It disables a series of scheduled tasks related to system diagnostics, experience improvement programs, defragmentation, disk diagnostics, feedback systems, maps updates, and more.
  • This reduces system resource use for these tasks and modifies user experience components.

Power Management and Features:

  • Disables the "HypervisorPlatform" Windows Optional Feature via PowerShell.
  • Turns off hibernation with powercfg -h off.
  • Turns off BitLocker encryption on the C: and D: drives using manage-bde -off.
  • Modifies file system behaviors, such as disabling last access time updates and encrypting paging files.
System Reboot:

Finally, the script schedules an immediate system reboot using shutdown -r to apply the changes made by the script.




Bleow is an explanation of what each command does.

powershell -Command "Enable-ComputerRestore -Drive 'C:\'" This line uses PowerShell to enable System Restore on the C: drive. System Restore allows you to revert your computer to a previous state if problems occur.
wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "PreBatchPCHF", 100, 7 This command creates a system restore point named "PreBatchPCHF". It uses the Windows Management Instrumentation Command-line (WMIC) to create a restore point before making changes to the system.

taskkill /F /IM DeviceCensus.exe This forcefully terminates the DeviceCensus.exe process. DeviceCensus is a Windows telemetry service.
icacls "%windir%\System32\DeviceCensus.exe" /grant Everyone:F This grants full control permissions to everyone for the DeviceCensus.exe file, allowing modifications to be made.
rename "%windir%\System32\DeviceCensus.exe" DeviceCensus.bak This renames the DeviceCensus.exe file to DeviceCensus.bak, effectively disabling it.
taskkill /F /IM SearchHost.exe This forcefully terminates the SearchHost.exe process, which is related to Windows Search.
icacls "%windir%\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\SearchHost.exe" /grant Everyone:F This grants full control permissions to everyone for the SearchHost.exe file.
move "%windir%\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\SearchHost.exe" "C:\Windows\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\SearchHost.exe.bak" This renames and moves the SearchHost.exe file, adding a .bak extension to disable it.
taskkill /f /im searchhost.exe This forcefully terminates the SearchHost.exe process again, ensuring it's not running.
icacls "%windir%\systemapps\LKG\MicrosoftWindows.LKG.Search_cw5n1h2txyew\SearchHost.exe" /grant Everyone:F This grants full control permissions to everyone for another instance of SearchHost.exe in the LKG (Last Known Good) folder.
move /Y "%windir%\systemapps\LKG\MicrosoftWindows.LKG.Search_cw5n1h2txyew\SearchHost.exe" "%windir%\systemapps\LKG\MicrosoftWindows.LKG.Search_cw5n1h2txyew\SearchHost.exe.bak" This renames the LKG version of SearchHost.exe to disable it.
taskkill /f /im elevoccontrolservice.exe This forcefully terminates the ElevocControlService.exe process, which is related to audio drivers.
icacls "%windir%\system32\ElevocInstallDriver\ElevocControlService.exe" /grant Everyone:F This grants full control permissions to everyone for the ElevocControlService.exe file.
move /Y "%windir%\system32\ElevocInstallDriver\ElevocControlService.exe" "%windir%\system32\ElevocInstallDriver\ElevocControlService.exe.bak" This renames the ElevocControlService.exe file to disable it.
taskkill /f /im elevoccontrolservice.exe This forcefully terminates the ElevocControlService.exe process again.
icacls "%windir%\Drivers\Audio\Source\ThirdParty\E0828\ElevocAPO64\ElevocControlService.exe" /grant Everyone:F This grants full control permissions to everyone for another instance of ElevocControlService.exe.
move /Y "C:\Drivers\Audio\Source\ThirdParty\E0828\ElevocAPO64\ElevocControlService.exe" "C:\Drivers\Audio\Source\ThirdParty\E0828\ElevocAPO64\ElevocControlService.exe.bak" This renames another instance of ElevocControlService.exe to disable it.
taskkill /F /IM textinputhost.exe This forcefully terminates the TextInputHost.exe process, which is related to text input services.
icacls "%windir%\System32\textinputhost.exe" /grant Everyone:F This grants full control permissions to everyone for the TextInputHost.exe file.
move "%windir%\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\textinputhost.exe" "%windir%\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\textinputhost.bak" This renames the TextInputHost.exe file to disable it.
taskkill /F /IM smartscreen.exe This forcefully terminates the SmartScreen.exe process, which is part of Windows security features.
icacls "%windir%\System32\smartscreen.exe" /grant Everyone:F This grants full control permissions to everyone for the SmartScreen.exe file.
move "%windir%\System32\smartscreen.exe" "%windir%\System32\smartscreen.bak" This renames the SmartScreen.exe file to disable it.
taskkill /F /IM StartMenuExperienceHost.exe This forcefully terminates the StartMenuExperienceHost.exe process, which is related to the Windows Start Menu.
icacls "%windir%\System32\StartMenuExperienceHost.exe" /grant Everyone:F This grants full control permissions to everyone for the StartMenuExperienceHost.exe file.
move "%windir%\SystemApps\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\StartMenuExperienceHost.exe" "%windir%\SystemApps\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\StartMenuExperienceHost.bak" This renames the StartMenuExperienceHost.exe file to disable it.
icacls "%windir%\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy" /grant Everyone:F This grants full control permissions to everyone for the Cortana folder.
move "%windir%\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy" "%windir%\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy.bak" This renames the entire Cortana folder to disable it.

reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve This line adds a registry key to disable the new Windows 11 context menu. It forces Windows to use the classic context menu instead of the new one introduced in Windows 11
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f This command disables Windows telemetry by setting the AllowTelemetry value to 0. This prevents Windows from collecting and sending usage data to Microsoft.
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v EnablePrefetcher /t REG_DWORD /d 0 /f This line disables the Windows Prefetcher by setting EnablePrefetcher to 0. The Prefetcher is a feature that preloads commonly used applications to improve startup times, but disabling it can sometimes improve performance on certain systems.
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main" /v "AllowPrelaunch" /t REG_DWORD /d 0 /f This command disables the pre-launch feature of Microsoft Edge. When disabled, Edge won't start processes in the background before it's actually opened by the user.
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\TabPreloader" /v "AllowTabPreloading" /t REG_DWORD /d 0 /f Similar to the previous command, this one disables tab preloading in Microsoft Edge. This prevents Edge from preloading tabs in the background.
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v ExcludeWUDriversInQualityUpdate /t REG_DWORD /d 1 /f This line excludes driver updates from Windows quality updates. It prevents Windows Update from automatically installing driver updates along with regular system updates.
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching" /v SearchOrderConfig /t REG_DWORD /d 0 /f This command changes the driver search behavior in Windows. Setting SearchOrderConfig to 0 tells Windows to only use drivers from Windows Update that are specifically targeted for your computer's hardware.
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UpdatePolicy\PolicyState" /v ExcludeWUDrivers /t REG_DWORD /d 1 /f This final line also relates to driver updates. It sets ExcludeWUDrivers to 1, which tells Windows Update to exclude driver updates entirely.

MicrosoftEdge\Main - AllowPrelaunch: This disables the pre-launch feature of Microsoft Edge, preventing it from starting processes in the background before the browser is opened.
MicrosoftEdge\TabPreloader - AllowTabPreloading: This disables tab preloading in Microsoft Edge, which means tabs won't load in the background before you switch to them.
WindowsUpdate - ExcludeWUDriversInQualityUpdate: This setting prevents Windows Update from including driver updates in quality updates.
DriverSearching - SearchOrderConfig: This modifies how Windows searches for device drivers, potentially limiting automatic driver updates.
UpdatePolicy\PolicyState - ExcludeWUDrivers: This excludes Windows Update drivers from being installed automatically.
FrameServer: This service enables camera effects for some Windows features. Setting it to "4" disables the service.
FrameServerMonitor: This is related to the FrameServer service. Disabling it may affect camera-related features.
WpcMonSvc (Parental Controls): This service monitors and enforces parental controls. Disabling it turns off this feature.
lfsvc (Geolocation Service): This service provides apps with location data. Disabling it may affect location-based features.
RasAuto (Remote Access Auto Connection Manager): This manages automatic connections to remote networks. Disabling it may affect some network features.
RasMan (Remote Access Connection Manager): This service manages network connections between the local computer and remote networks.
RemoteAccess: This service implements dial-up and virtual private network (VPN) connections.
SessionEnv: This service supports Remote Desktop Session Host scenarios. Disabling it may affect remote desktop functionality.
TermService (Remote Desktop Services): This allows users to connect interactively to a remote computer. Disabling it turns off Remote Desktop.
UmRdpService (Remote Desktop Services UserMode Port Redirector): This service supports remoting of USB devices in Remote Desktop scenarios.
SysMain (Superfetch): This service maintains and improves system performance over time. Disabling it may affect system responsiveness.
BDESVC (BitLocker Drive Encryption Service): This service is used for BitLocker Drive Encryption. Disabling it turns off BitLocker functionality.
GameInputSvc: This service manages game-related input devices. Disabling it may affect some gaming peripherals.
XblAuthManager, XblGameSave, XboxGipSvc, XboxNetApiSvc: These are Xbox-related services for authentication, game saves, and networking. Disabling them affects Xbox features on Windows.
BcastDVRUserService: This service is related to Game DVR and broadcasting features in Windows. Disabling it turns off these gaming features.
DiagTrack (Connected User Experiences and Telemetry): This service collects and sends usage and diagnostic data to Microsoft. Disabling it stops this data collection.
WSearch (Windows Search): This service provides content indexing and search results. Disabling it turns off Windows Search functionality.
WbioSrvc (Windows Biometric Service): This service supports biometric features like fingerprint recognition. Disabling it turns off biometric authentication.
HvHost, vmickvpexchange, vmicguestinterface, vmicshutdown, vmicheartbeat, vmicvmsession, vmicrdv, vmictimesync, vmicvss: These are all Hyper-V related services. Disabling them turns off various Hyper-V virtualization features.

Task: \Microsoft\Windows\AppID\SmartScreenSpecific Explanation: Disables the SmartScreen specific task, which is part of Windows Defender SmartScreen that helps protect against malicious software and phishing attempts.
Task: \Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser Explanation: Disables the task that collects and sends usage data to Microsoft to improve application compatibility.
Task: \Microsoft\Windows\Application Experience\ProgramDataUpdater Explanation: Disables the task responsible for updating program data, which helps with application compatibility and performance.
Task: \Microsoft\Windows\Application Experience\StartupAppTask Explanation: Disables the task that collects and sends data about startup applications to Microsoft.
Task: \Microsoft\Windows\CloudExperienceHost\CreateObjectTask Explanation: Disables a task related to the Cloud Experience Host, which manages cloud-based features in Windows.
Task: \Microsoft\Windows\Customer Experience Improvement Program\Consolidator Explanation: Disables the task that consolidates and sends usage data to Microsoft as part of the Customer Experience Improvement Program.
Task: \Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask Explanation: Disables the kernel-level data collection task for the Customer Experience Improvement Program.
Task: \Microsoft\Windows\Customer Experience Improvement Program\UsbCeip Explanation: Disables the task that collects data about USB devices for the Customer Experience Improvement Program.
Task: \Microsoft\Windows\Defrag\ScheduledDefrag Explanation: Disables the scheduled disk defragmentation task, which optimizes disk performance.
Task: \Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector Explanation: Disables the task that collects disk diagnostic data to help identify potential disk problems.
Task: \Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticResolver Explanation: Disables the task that attempts to resolve disk issues identified by the disk diagnostic data collector.
Task: \Microsoft\Windows\DiskFootprint\Diagnostics Explanation: Disables the task that performs diagnostics related to disk space usage and reports issues.
Task: \Microsoft\Windows\Feedback\Siuf\DmClient Explanation: Disables the task related to the Windows Feedback feature, which collects and sends feedback data to Microsoft.
Task: \Microsoft\Windows\Location\Notifications Explanation: Disables location-based notifications task, which manages notifications related to location services.
Task: \Microsoft\Windows\Location\WindowsActionDialog Explanation: Disables the task that manages Windows action dialogs related to location services.
Task: \Microsoft\Windows\Maps\MapsToastTask Explanation: Disables the task responsible for displaying toast notifications related to the Maps app.
Task: \Microsoft\Windows\Maps\MapsUpdateTask Explanation: Disables the task that updates offline maps data for the Maps app.
Task: \Microsoft\Windows\NetTrace\GatherNetworkInfo Explanation: Disables the task that gathers network information for diagnostics and troubleshooting purposes.
Task: \Microsoft\Windows\Offline Files\Background Synchronization Explanation: Disables background synchronization of offline files, which keeps local copies of network files up to date.
Task: \Microsoft\Windows\Offline Files\Logon Synchronization Explanation: Disables synchronization of offline files when a user logs on to the system.
Task: \Microsoft\Windows\RemoteAssistance\RemoteAssistanceTask Explanation: Disables the Remote Assistance task, which allows remote users to provide technical support.
Task: \Microsoft\Windows\Shell\FamilySafetyMonitor Explanation: Disables the Family Safety monitoring task, which is part of parental controls and usage monitoring.
Task: \Microsoft\Windows\Shell\FamilySafetyRefresh Explanation: Disables the task that refreshes Family Safety settings and data.
Task: \Microsoft\Windows\Shell\IndexerAutomaticMaintenance Explanation: Disables the automatic maintenance task for Windows Search Indexer, which manages the search index.
Task: \Microsoft\Windows\WindowsUpdate\Automatic App Update Explanation: Disables the task responsible for automatically updating Microsoft Store apps.
Task: \Microsoft\Windows\Work Folders\Work Folders Logon Synchronization Explanation: Disables synchronization of Work Folders when a user logs on to the system.
Task: \Microsoft\Windows\Work Folders\Work Folders Maintenance Work Explanation: Disables maintenance tasks related to Work Folders, such as cleaning up old versions of files.
Task: \Microsoft\Windows\Workplace Join\Automatic-Device-Join Explanation: Disables the task that automatically joins devices to a workplace network or Azure Active Directory.



powershell Disable-WindowsOptionalFeature -Online -FeatureName "HypervisorPlatform" This line uses PowerShell to disable the Windows Hypervisor Platform feature. The Hypervisor Platform is a component that allows Windows to run virtual machines. Disabling it can free up system resources if you're not using virtualization.
powercfg -h off This command disables hibernation on the system. Hibernation is a power-saving feature that saves the current state of the computer to the hard drive and then shuts down. Disabling it can free up disk space used by the hiberfil.sys file.
manage-bde -off C: This command turns off BitLocker Drive Encryption for the C: drive. BitLocker is a full disk encryption feature in Windows. Turning it off will decrypt the drive, which can improve performance but reduces security.
manage-bde -off D: Similar to the previous command, this turns off BitLocker Drive Encryption for the D: drive.
fsutil behavior set DisableLastAccess 1 This command disables the Last Access Time update on files and folders. By default, Windows updates the last access time stamp whenever a file or folder is accessed, which can impact performance. Disabling this can improve file system performance, especially on systems with many files.
fsutil behavior set EncryptPagingFile 0 This command disables encryption of the Windows paging file (also known as the swap file or virtual memory file). The paging file is used as an extension of the computer's physical memory. Disabling its encryption can improve system performance but might slightly reduce security.
shutdown -r This command initiates a system restart. The '-r' flag tells the system to reboot after shutting down.


Download the Batch file from HERE.

Or...

Create and run batch file.


Open a notepad and copy the entire content of the code box below.
Do not copy the word code!
Paste the txt into the notepad. Save the file to your desktop as Tune.bat
Now you will right click the on Tune.bat and run as administrator.

Code:
@echo off
powershell -Command "Enable-ComputerRestore -Drive 'C:\'"
wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "PreBatchPCHF", 100, 7
taskkill /F /IM DeviceCensus.exe
icacls "%windir%\System32\DeviceCensus.exe" /grant Everyone:F
rename "%windir%\System32\DeviceCensus.exe" DeviceCensus.bak
taskkill /F /IM SearchHost.exe
icacls "%windir%\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\SearchHost.exe" /grant Everyone:F
move "%windir%\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\SearchHost.exe" "C:\Windows\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\SearchHost.exe.bak"
taskkill /f /im searchhost.exe
icacls "%windir%\systemapps\LKG\MicrosoftWindows.LKG.Search_cw5n1h2txyew\SearchHost.exe" /grant Everyone:F
move /Y "%windir%\systemapps\LKG\MicrosoftWindows.LKG.Search_cw5n1h2txyew\SearchHost.exe" "%windir%\systemapps\LKG\MicrosoftWindows.LKG.Search_cw5n1h2txyew\SearchHost.exe.bak"
taskkill /f /im elevoccontrolservice.exe
icacls "%windir%\system32\ElevocInstallDriver\ElevocControlService.exe" /grant Everyone:F
move /Y "%windir%\system32\ElevocInstallDriver\ElevocControlService.exe" "%windir%\system32\ElevocInstallDriver\ElevocControlService.exe.bak"
taskkill /f /im elevoccontrolservice.exe
icacls "%windir%\Drivers\Audio\Source\ThirdParty\E0828\ElevocAPO64\ElevocControlService.exe" /grant Everyone:F
move /Y "C:\Drivers\Audio\Source\ThirdParty\E0828\ElevocAPO64\ElevocControlService.exe" "C:\Drivers\Audio\Source\ThirdParty\E0828\ElevocAPO64\ElevocControlService.exe.bak"
taskkill /F /IM textinputhost.exe
icacls "%windir%\System32\textinputhost.exe" /grant Everyone:F
move "%windir%\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\textinputhost.exe" "%windir%\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\textinputhost.bak"
taskkill /F /IM smartscreen.exe
icacls "%windir%\System32\smartscreen.exe" /grant Everyone:F
move "%windir%\System32\smartscreen.exe" "%windir%\System32\smartscreen.bak"
taskkill /F /IM StartMenuExperienceHost.exe
icacls "%windir%\System32\StartMenuExperienceHost.exe" /grant Everyone:F
move "%windir%\SystemApps\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\StartMenuExperienceHost.exe" "%windir%\SystemApps\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\StartMenuExperienceHost.bak"
icacls "%windir%\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy" /grant Everyone:F
move "%windir%\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy" "%windir%\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy.bak"
reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v EnablePrefetcher /t REG_DWORD /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main" /v "AllowPrelaunch" /t REG_DWORD /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\TabPreloader" /v "AllowTabPreloading" /t REG_DWORD /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v ExcludeWUDriversInQualityUpdate /t REG_DWORD /d 1 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching" /v SearchOrderConfig /t REG_DWORD /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UpdatePolicy\PolicyState" /v ExcludeWUDrivers /t REG_DWORD /d 1 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\FrameServer" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\FrameServerMonitor" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\DolbyDAXAPI" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WpcMonSvc" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\lfsvc" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\RasAuto" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\RasMan" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\RemoteAccess" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SessionEnv" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\TermService" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\UmRdpService" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SysMain" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BDESVC" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\GameInputSvc" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\XblAuthManager" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\XblGameSave" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\XboxGipSvc" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\XboxNetApiSvc" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BcastDVRUserService_3e312" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\DiagTrack" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WSearch" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WbioSrvc" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\HvHost" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\vmickvpexchange" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\vmicguestinterface" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\vmicshutdown" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\vmicheartbeat" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\vmicvmsession" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\vmicrdv" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\vmictimesync" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\vmicvss" /v "Start" /t REG_DWORD /d "4" /f
schtasks /Change /TN "\Microsoft\Windows\AppID\SmartScreenSpecific" /Disable
schtasks /Change /TN "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /Disable
schtasks /Change /TN "\Microsoft\Windows\Application Experience\ProgramDataUpdater" /Disable
schtasks /Change /TN "\Microsoft\Windows\Application Experience\StartupAppTask" /Disable
schtasks /Change /TN "\Microsoft\Windows\CloudExperienceHost\CreateObjectTask" /Disable
schtasks /Change /TN "\Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /Disable
schtasks /Change /TN "\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /Disable
schtasks /Change /TN "\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /Disable
schtasks /Change /TN "\Microsoft\Windows\Defrag\ScheduledDefrag" /Disable
schtasks /Change /TN "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /Disable
schtasks /Change /TN "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticResolver" /Disable
schtasks /Change /TN "\Microsoft\Windows\DiskFootprint\Diagnostics" /Disable
schtasks /Change /TN "\Microsoft\Windows\Feedback\Siuf\DmClient" /Disable
schtasks /Change /TN "\Microsoft\Windows\Location\Notifications" /Disable
schtasks /Change /TN "\Microsoft\Windows\Location\WindowsActionDialog" /Disable
schtasks /Change /TN "\Microsoft\Windows\Maps\MapsToastTask" /Disable
schtasks /Change /TN "\Microsoft\Windows\Maps\MapsUpdateTask" /Disable
schtasks /Change /TN "\Microsoft\Windows\NetTrace\GatherNetworkInfo" /Disable
schtasks /Change /TN "\Microsoft\Windows\Offline Files\Background Synchronization" /Disable
schtasks /Change /TN "\Microsoft\Windows\Offline Files\Logon Synchronization" /Disable
schtasks /Change /TN "\Microsoft\Windows\RemoteAssistance\RemoteAssistanceTask" /Disable
schtasks /Change /TN "\Microsoft\Windows\Shell\FamilySafetyMonitor" /Disable
schtasks /Change /TN "\Microsoft\Windows\Shell\FamilySafetyRefresh" /Disable
schtasks /Change /TN "\Microsoft\Windows\Shell\IndexerAutomaticMaintenance" /Disable
schtasks /Change /TN "\Microsoft\Windows\WindowsUpdate\Automatic App Update" /Disable
schtasks /Change /TN "\Microsoft\Windows\Work Folders\Work Folders Logon Synchronization" /Disable
schtasks /Change /TN "\Microsoft\Windows\Work Folders\Work Folders Maintenance Work" /Disable
schtasks /Change /TN "\Microsoft\Windows\Workplace Join\Automatic-Device-Join" /Disable
powershell Disable-WindowsOptionalFeature -Online -FeatureName "HypervisorPlatform"
powercfg -h off
manage-bde -off C:
manage-bde -off D:
fsutil behavior set DisableLastAccess 1
fsutil behavior set EncryptPagingFile 0
shutdown -r


In Conjunction with running this batch file I suggest:

EdgeBlock

O&O Shutup Ten
Move it to your documents folder.
Right click run as admin.
Go to actions, apply all settings.
Create the restore point when prompted.
Follow thru the prompts, and reboot if needed to apply the settings.

GeekUninstaller >View Microsoft Store Apps -- Remove anything you do not use, including one drive and Cortana.


System Ninja

Overall, this script drastically modifies the system to potentially enhance performance by disabling non-essential services, features, and telemetry. It may also increase privacy by reducing Microsoft's data collection and telemetry activities.
Author
Malnutrition
Downloads
53
Views
322
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Malnutrition