batcmd.com Windows 8 Services

Optimize drives - Windows 8 Service

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

This service also exists in Windows 10, 11 and 7.

Startup Type

Windows 8 edition Windows 8 Windows 8.1 Windows 8.1 Update 1
Core Manual Manual Manual
Pro Manual Manual Manual
Enterprise Manual Manual Manual

Default Properties

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:
  • SeChangeNotifyPrivilege
  • SeImpersonatePrivilege
  • SeIncreaseWorkingSetPrivilege
  • SeTcbPrivilege
  • SeSystemProfilePrivilege
  • SeAuditPrivilege
  • SeCreateGlobalPrivilege
  • SeBackupPrivilege
  • SeManageVolumePrivilege

Default Behavior

The Optimize drives service runs as localSystem in its own process of svchost.exe. Other services may not run in the same process. If Optimize drives fails to start, the error is logged. Windows 8 startup proceeds, but a message box is displayed informing you that the defragsvc service has failed to start.

Dependencies

Optimize drives won't start, if the Remote Procedure Call (RPC) service is stopped or disabled.

Restore Default Startup Type of Optimize drives

Automated Restore

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

2. Save the RestoreOptimizedrivesWindows8.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.

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 8 installation media.

Yea, though I walk through the valley of the shadow of death, I will fear no evil: for thou art with me; thy rod and thy staff they comfort me.