Windows 10 Services

Optimize drives - Windows 10 Service

Helps the computer run more efficiently by optimizing files on storage drives.

This service also exists in Windows 7 and 8.

Startup Type

Windows 10 version Home Pro Education Enterprise
1507 Manual Manual Manual Manual
1511 Manual Manual Manual Manual
1607 Manual Manual Manual Manual
1703 Manual Manual Manual Manual
1709 Manual Manual Manual Manual

Default Properties

Display name:Optimize drives
Service name:defragsvc
Path:%WinDir%\system32\svchost.exe -k defragsvc
Error control:normal
  • SeChangeNotifyPrivilege
  • SeImpersonatePrivilege
  • SeIncreaseWorkingSetPrivilege
  • SeTcbPrivilege
  • SeSystemProfilePrivilege
  • SeAuditPrivilege
  • SeCreateGlobalPrivilege
  • SeBackupPrivilege
  • SeManageVolumePrivilege

Default Behavior

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 10 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.

Restore Default Startup Type for Optimize drives

Automated Restore

1. Select your Windows 10 edition and release, and then click on the Download button below.

2. Save the RestoreOptimizedrivesWindows10.bat file to any folder on your hard drive.

3. Right-click the downloaded batch file and select Run as administrator.

4. 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 10 installation media.