defrag

Microsoft ドライブ最適化ツール

ディスク デフラグ モジュール


defrag

  • C:\Windows\system32\Defrag.exe /?

Output:


Defrag <ボリューム> <操作> [<Options>]

ボリューム:
  /C | /AllVolumes      各ボリュームで、指定された操作の一覧から
                        優先操作のみを実行します。
  /E | /VolumesExcept <ボリューム パス>
                        指定されたボリュームを除く各ボリュームで、指定された
                        すべての操作を実行します。例外一覧が空の場合は、
                        /AllVolumes として動作します。
  ボリューム パス          ドライブ文字に続けてコロン、マウント ポイントまたは
                        ボリューム名を指定します。複数のボリュームを指定できます。
                        指定された各ボリュームで、指定されたすべての操作を実行します。

操作:
  /A | /Analyze         分析を実行します。
  /B | /BootOptimize    起動パフォーマンスを高めるためにブート最適化を実行します。
  /D | /Defrag          従来のデフラグを実行します (これは既定値です)。階層型
                        ボリュームでは、従来のデフラグはキャパシティ層でのみ
                        実行されます。
  /G | /TierOptimize    階層型ボリュームで、ファイルを最適化して適切なストレージ層に
                        配置します。
  /K | /SlabConsolidate シン プロビジョニングされたボリュームで、スラブの統合を実行して
                        スラブの使用効率を高めます。
  /L | /Retrim          シン プロビジョニングされたボリュームで、空きスラブを解放するために
                        再トリムを実行します。SSD では、書き込みパフォーマンスを改善するために再トリムを実行します。
  /O | /Optimize        メディアの種類ごとに適した最適化を実行します。
  /T | /TrackProgress   特定のボリュームに対して実行中の操作の進行状況を追跡します。1 つの
                        インスタンスは 1 つのボリュームについてのみ進行状況を表示できます。
                        別のボリュームの進行状況を表示するには、別のインスタンスを起動してください。
  /U | /PrintProgress   操作の進行状況を画面に出力します。
  /V | /Verbose         断片化の統計情報を含む詳細を出力します。
  /X | /FreespaceConsolidate
                        空き領域の統合を実行し、空き領域をボリュームの終わりに
                        移動します (シン プロビジョニングされたボリュームであっても)。
                        階層型ボリュームでは、統合はキャパシティ層でのみ実行
                        されます。

オプション:
  /H | /NormalPriority  この操作を通常の優先度で実行します (既定では "低")。
  /I | /MaxRuntime n    TierOptimize 指定時にのみ使用可能です。階層の最適化は
                        各ボリュームで最大 n 秒間実行されます。
       /LayoutFile <ファイル パス>
                        BootOptimize 指定時にのみ使用可能です。このファイルには、
                        最適化する対象のファイルの一覧が含まれています。既定の場所は
                        %windir%\Prefetch\layout.ini です。
  /M | /MultiThread [n] この操作をバックグラウンドで各ボリュームに対して並列に実行します。
                        TierOptimize の場合、最大 n 個のスレッドで並列してストレージ層を
                        最適化します。n の既定値は 8 です。その他すべての最適化では
                        n が無視されます。
       /OnlyPreferred   ボリュームが明示的に指定されている場合、指定された各ボリュームで、
                        指定されたすべての操作をデフラグで実行します。このスイッチにより、
                        指定された各ボリュームで、指定された操作の一覧から
                        優先操作のみをデフラグで実行できます。

:
  Defrag C: /U /V
  Defrag C: D: /TierOptimize /MultiThread
  Defrag C:\mountpoint /Analysis /U
  Defrag /C /H /V

Defrag <Volumes> <Operations> [<Options>]

Volumes:
  /C | /AllVolumes      On each volume run only the preferred operations from
                        the given list of operations.
  /E | /VolumesExcept <volume paths>
                        Perform all the given operations on each volume except.
                        those specified. If the exception list is empty, this
                        behaves as /AllVolumes.
  volume paths          Specifies the drive letter followed by a colon, mount point
                        or volume name. More than one volume can be specified.  Run
                        all the given operations on each specified volume..

Operations:
  /A | /Analyze         Perform analysis.
  /B | /BootOptimize    Perform boot optimization to increase boot performance.
  /D | /Defrag          Perform traditional defrag (this is the default). On a tiered
                        volume, traditional defrag is performed only on the Capacity
                        tier.
  /G | /TierOptimize    On tiered volumes, optimize files to reside on the appropriate
                        storage tier.
  /K | /SlabConsolidate On thinly provisioned volumes, perform slab consolidation to
                        increase slab usage efficiency.
  /L | /Retrim          On thinly provisioned volumes, perform retrim to release free
                        slabs. On SSDs perform retrim to improve write performance.
  /O | /Optimize        Perform the proper optimization for each media type.
  /T | /TrackProgress   Track progress of a running operation for a given volume. An
                        instance can show progress only for a single volume. To see
                        progress for another volume launch another instance.
  /U | /PrintProgress   Print the progress of the operation on the screen.
  /V | /Verbose         Print verbose output containing the fragmentation statistics.
  /X | /FreespaceConsolidate
                        Perform free space consolidation, moves free space towards
                        the end of the volume (even on thin provisioned volumes). On
                        tiered volumes consolidation is performed only on the Capacity
                        tier.

Options:
  /H | /NormalPriority  Run the operation at normal priority (default is low).
  /I | /MaxRuntime n    Available only with TierOptimize. Tier optimization would
                        run for at most n seconds on each volume.
       /LayoutFile <file path>
                        Available only with BootOptimize. This file contains the list
                        of files to be optimized.  The default location is
                        %windir%\Prefetch\layout.ini.
  /M | /MultiThread [n] Run the operation on each volume in parallel in the background.
                        For TierOptimize, at most n threads optimize the storage tiers
                        in parallel. Default value of n is 8. All other optimizations
                        ignore n.
       /OnlyPreferred   When volumes are specified explicitly, defrag performs all
                        the given operations on each specified volume.  This switch
                        lets defrag run only the preferred operations, from the
                        given list of operations, on each specified volume.

Examples:
  Defrag C: /U /V
  Defrag C: D: /TierOptimize /MultiThread
  Defrag C:\mountpoint /Analysis /U
  Defrag /C /H /V

Return Code: 0


C:\Windows\system32\Defrag.exe
c:\>ver
Microsoft Windows [Version 10.0.19045.2075]
FileInfo
File Size210432bytes
Creation Time2022/07/08 08:50:27
LastWrite Time2022/07/08 08:50:27
ProductVersion10.0.19041.1889
FileVersion10.0.19041.1889 (WinBuild.160101.0800)
HashValue
MD5e2601e315e9a9837279a23963f5819b0
SHA15bb7fdaf33e556323a1152d36b0f9159cc53d291
SHA22441be16e34be8fd8be5beb97c491a2b771e3c7b0b14ff94361435d6bd
SHA2567a18dbbe6ca138389424a7b2c0135ba4a7541c33e0443227f3cf505b58b52a85
SHA384ac7671cdac495d43d49884151da54e6f01e4e9820556bedfd0479bbb6257ec4ae3dc44f4aa713dcf2bc61102d75a0073
SHA51266d899eb1f20df9096b10ee889512e7bfb51114665e7004d41d31ae89253b8972c2947deab71e5e20ba3bb8cd70f7f97b798b54b59642f26dcf1381ab0fcf052
Built with Hugo
テーマ StackJimmy によって設計されています。