from here:

https://forum.winreducer.net/t1097-removing-optimize-drives-service-cause-error-when-shrinking-partition

when optimize drives service is removed the feature to shrink or extend partitions is broken.

so it would be nice if the optimize drives service would be split into two parts.



this files:

> \Windows\System32\defragproxy.dll
> \Windows\System32\defragsvc.dll
> \Windows\System32\de-DE\defragsvc.dll.mui


and this registry keys :

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID\{ab7c873b-eb14-49a6-be60-a602f80e6d22}]
"LocalService"="defragsvc"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{d20a3293-3341-4ae8-9aaf-8e397cb63c34}]
"AppID"="{ab7c873b-eb14-49a6-be60-a602f80e6d22}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{87CB4E0D-2E2F-4235-BC0A-7C62308011F6}\InProcServer32]
@=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,00,25,\
  00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,65,00,\
  66,00,72,00,61,00,67,00,70,00,72,00,6f,00,78,00,79,00,2e,00,64,00,6c,00,6c,\
  00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{0C401E84-3083-4764-B6B5-A0DE8FEDD40C}\ProxyStubClsid32]
@="{87CB4E0D-2E2F-4235-BC0A-7C62308011F6}"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\defragsvc]
"ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
  74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
  00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,\
  6b,00,20,00,64,00,65,00,66,00,72,00,61,00,67,00,73,00,76,00,63,00,00,00
"ObjectName"="localSystem"
"ErrorControl"=dword:00000001
"Start"=dword:00000003
"Type"=dword:00000010

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\defragsvc\Parameters]
"ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,\
  00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\
  64,00,65,00,66,00,72,00,61,00,67,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,\
  00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Svchost]
"defragsvc"=hex(7):64,00,65,00,66,00,72,00,61,00,67,00,73,00,76,00,63,00,00,00,\
  00,00


are needed so that the shrinking feature will work

###################################################



i also found some more registry keys that are left by winreducer but CAN BE removed:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\DefragPath]
@=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,00,25,\
  00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,66,00,\
  72,00,67,00,75,00,69,00,2e,00,65,00,78,00,65,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\explorer\MyComputer\DefragPath]
@=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,00,25,\
  00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,66,00,\
  72,00,67,00,75,00,69,00,2e,00,65,00,78,00,65,00,00,00

[HKEY_USERS\.DEFAULT\Software\Classes\Local Settings\MuiCache\1\52C64B7E]
"@%SystemRoot%\\system32\\defragsvc.dll,-101"="Disk Defragmenter"
"@%systemroot%\\system32\\dfrgui.exe,-172"="Defragments your disks so that your computer runs faster and more efficiently."
"@C:\\Windows\\system32\\dfrgui.exe,-103"="Disk Defragmenter"