Helps the computer run more efficiently by optimizing files on storage drives.
This service also exists in Windows 10, 7 and 8.
Windows 11 version | Home | Pro | Education | Enterprise |
---|---|---|---|---|
21H2 | Manual | Manual | Manual | Manual |
22H2 | Manual | Manual | Manual | Manual |
23H2 | Manual | Manual | Manual | Manual |
Display name: | Optimize drives |
Service name: | defragsvc |
Type: | own |
Path: | %WinDir%\system32\svchost.exe -k defragsvc |
File: | %WinDir%\System32\defragsvc.dll |
Error control: | normal |
Object: | localSystem |
Privileges: |
|
The Optimize drives service is running as localSystem in its own process of svchost.exe. No other services run in the same process. If Optimize drives fails to start, the error is logged. Windows 11 startup proceeds, but a message box is displayed informing you that the defragsvc service has failed to start.
Optimize drives is unable to start, if the Remote Procedure Call (RPC) service is stopped or disabled.
1. Select your Windows 11 edition and release, and then click on the Download button below.
2. Save the RestoreOptimizedrivesWindows11.bat file to any folder on a local drive such as SSD or a hard disk.
3. Right-click the downloaded batch file and select Properties.
4. Check the Unblock checkbox and click OK.
5. Right-click the batch file again and select Run as administrator.
6. Restart the computer to save changes.
Note. Make sure that the defragsvc.dll
file exists in the %WinDir%\System32
folder. If this file is missing you can try to restore it from your Windows 11 installation media.