Optimize drives (defragsvc) Service Defaults in Windows 8

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

Default Settings

Startup type:Manual
Display name:Optimize drives
Service name:defragsvc
Service type:own
Error control:normal
Path:%SystemRoot%\system32\svchost.exe -k defragsvc
Registry key:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\defragsvc
  • SeChangeNotifyPrivilege
  • SeImpersonatePrivilege
  • SeIncreaseWorkingSetPrivilege
  • SeTcbPrivilege
  • SeSystemProfilePrivilege
  • SeAuditPrivilege
  • SeCreateGlobalPrivilege
  • SeBackupPrivilege
  • SeManageVolumePrivilege

Default Behavior

The Optimize drives service is a Win32 program that can be started by the Service Controller and that obeys the service control protocol. In Windows 8 it will not be started until the user starts it. When the Optimize drives service is started, it runs as localSystem in its own process of svchost.exe. If Optimize drives fails to start, the error details are added to Windows 8 error log. When the operating system startup is complete, the user is being notified that the defragsvc service hasn't been started.


Optimize drives can't start, if the Remote Procedure Call (RPC) service is disabled or not available.

Restore Default Startup Configuration for Optimize drives

1. Select your Windows 8 edition and update pack, and then click Download.

2. Save the Win8_defragsvc_Service_Startup.cmd file to a local storage device.

3. Run the saved file as an administrator.

4. Restart the computer.

The defragsvc service is using the defragsvc.dll file that is located in the %WinDir%\System32 folder. If the file is corrupted or deleted, you can put it back in there.