This is broken at a more fundamental level. Doing the command natively doesn't work either.
Here is an extract done via PowerShell (in Admin mode). I gave "System Reserved" a drive letter, B:, so that the PS commands could be entered. I added
bold for emphasis.
Note the following:
- The "System Reserved" volume is assigned B:
- It is properly noted as being on an SSD drive under Media Type on the Optimize Drives window.
- the defrag command /A is Analysis, which says B doesn't need optimization
- the defrag command /O is to use the appropriate optimization. This fails with the familiar "parameter is incorrect. (0x80070057)" error. The other switches don't matter; same result.
So messing with Tasks and Scheduler isn't going to do a thing when the
defrag shell command itself is BROKEN! with regard to the special case of the "System Reserved"
volume.
By the way, why is there no longer a check box by each drive in the Optimize Drive window? If that was still there, or there was another way to disable Optimize from considering "System Reserved" then I would cheerfully do that. The
contents of that volume NEVER change, so why should it even be on the list? Or I guess I could spend half a day getting rid of the "System Reserved" volume altogether [it is a
KLUDGE after all], but that is a lot of risky process for dealing with a Microsoft programming error.
Here is the PowerShell log:
- PS C:\Windows\system32> get-volume
DriveLetter FileSystemLabel FileSystem DriveType HealthStatus SizeRemaining
Size
----------- --------------- ---------- --------- ------------ -------------
----
B System Reserved NTFS Fixed
Healthy 90.48 MB 350 MB
D HPsaR1-1T-Data NTFS Fixed
Healthy 329.62 GB 931.48 GB
O HPsaR5-1T-O NTFS Fixed
Healthy 931.28 GB 931.48 GB
P HPsaR5-1T-Q NTFS Fixed
Healthy 246.94 GB 931.48 GB
Q HPsaR5-1T-Q NTFS Fixed
Healthy 725.85 GB 931.36 GB
R HP3T-1T-R NTFS Fixed
Healthy 858.02 GB 931.48 GB
S HP3T-1T-S NTFS Fixed
Healthy 430.97 GB 931.48 GB
T HP3T-1T-T NTFS Fixed
Healthy 255.65 GB 931.43 GB
E WD2T Passport NTFS Fixed
Healthy 57.18 GB 1.82 TB
C CruM4-500-C NTFS Fixed
Healthy 275.78 GB 476.6 GB
H
Removable Healthy 0 B
0 B
I
Removable Healthy 0 B
0 B
J
Removable Healthy 0 B
0 B
K
Removable Healthy 0 B
0 B
F
CD-ROM Healthy 0 B
0 B
- PS C:\Windows\system32> defrag b: /a
Microsoft Drive Optimizer
Copyright (c) 2013 Microsoft Corp.
Invoking analysis on System Reserved (B:)...
The operation completed successfully.
Post Defragmentation Report:
Volume Information:
Volume size = 349.99 MB
Free space = 94.48 MB
Total fragmented space = 0%
Largest free space size = 45.08 MB
Note: File fragments larger than 64MB are not included in the fragmentation statistics.
You do not need to defragment this volume.
- PS C:\Windows\system32> defrag b: /o /u /v
Microsoft Drive Optimizer
Copyright (c) 2013 Microsoft Corp.
Invoking retrim on System Reserved (B:)...
Performing pass 1:
Retrim: 0% complete...
The parameter is incorrect. (0x80070057)