This is the
default setting under Server Core.
-w
Performs a full defragmentation of the drive regardless of fragment size. Although this
option can improve performance on heavily fragmented drives, you pay a penalty in additional
defragmentation time.
MANAGING PARTITIONS WITH THE DISKPART COMMAND
229
-c
Performs defragmentation of all drives on the system. Combine this command line switch
with the
??“w
or
??“r
command line switch to specify the level of defragmentation.
Managing Partitions with the DiskPart Command
The DiskPart command lets you manage partitions on your hard drive without relying on the
graphical utilities. In some cases, this utility is your only resource when the graphical environment
isn??™t running and you need to make a repair. You can use DiskPart with direct command line input
or supply a text file containing a script of actions for DiskPart to perform. You??™ll usually have a
better experience with DiskPart if you create a script to perform the required tasks. Using a script
reduces the potential for error. To use a script, type
DiskPart /s
ScriptName
and press Enter.
Otherwise, start the command line version of DiskPart by typing
DiskPart
and pressing Enter.
Pages:
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567