text stringlengths 0 4.23k |
|---|
For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without this parameter, an error causes DiskPart to exit with an error code. |
Examples |
To take the disk with focus offline, type: |
offline volume |
offline |
Takes an online disk or volume to the offline state. |
Syntax |
offline disk |
offline volume |
Parameters |
Parameter |
Description |
offline disk |
Takes the online disk with focus to the offline state. |
offline volume |
Takes the online volume with focus to the offline state. |
online disk |
Takes the offline disk to the online state. For basic disks, this command attempts to bring online the selected disk and all volumes on that disk. For dynamic disks, this command attempts to bring online all disks that are not marked as foreign on the local computer. It also attempts to bring online all volumes on the set of dynamic disks. |
If a dynamic disk in a disk group is brought online and it's the only disk in the group, then the original group is recreated and the disk is moved to that group. If there are other disks in the group and they're online, then the disk is simply added back into the group. If the group of a selected disk contains mirrored or RAID-5 volumes, this command also resynchronizes these volumes. |
Note |
A disk must be selected for the online disk command to succeed. Use the select disk command to select a disk and shift the focus to it. |
Important |
This command will fails if it's used on a read-only disk. |
Syntax |
online disk [noerr] |
Parameters |
For instructions about using this command, see Reactivate a Missing or Offline Dynamic Disk. |
Parameter |
Description |
noerr |
For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without this parameter, an error causes DiskPart to exit with an error code. |
Examples |
To take the disk with focus online, type: |
online disk |
online volume |
Takes the offline volume to the online state. This command works on volumes that have failed, are failing, or are in failed redundancy state. |
Note |
A volume must be selected for the online volume command to succeed. Use the select volume command to select a volume and shift the focus to it. |
Important |
This command will fails if it's used on a read-only disk. |
Syntax |
online volume [noerr] |
Parameters |
Parameter |
Description |
noerr |
For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without this parameter, an error causes DiskPart to exit with an error code. |
Examples |
To take the volume with focus online, type: |
online volume |
online |
Takes an offline disk or volume to the online state. |
Syntax |
online disk |
online volume |
Parameters |
Parameter |
Description |
online disk |
Takes the offline disk with focus to the online state. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.