CmdID

CmdID / Commands

add

Mirrors the simple volume with focus to the specified active disk. Windows commands reference

On Windows 2 sub-commands

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

Mirrors the simple volume with focus to the specified active disk. NOTE: This DiskPart command isn't available in any edition of Windows Vista.

add disk=<n> [align=<n>] [wait] [noerr]

To create a mirror of the volume with focus on disk 2, type

add disk=2Identify
disk=<n>Specifies a disk, other than the one containing the existing simple volume, to contain the mirror. You can mirror only simple volumes. The specified disk must have unallocated space at least as large as the size of the simple volume you want to mirror.
align=<n>Typically used with hardware RAID Logical Unit Number (LUN) arrays to improve performance. Aligns all volume or partition extents to the closest alignment boundary. n is the number of kilobytes (KB) from the beginning of the disk to the closest alignment boundary.
waitWaits for the volume to finish synchronizing with the added disk before returning. Without this parameter, DiskPart returns after the mirrored volume is created and doesn't wait for the synchronization to complete.
noerrFor scripting only. When an error is encountered, DiskPart continues to process commands as if the error didn't occur. Without this parameter, an error causes DiskPart to exit with an error code.

Windows

from the Windows commands reference, CC BY 4.0

Adds volumes to the set of volumes that are to be shadow copied, or adds aliases to the alias environment. If used without subcommands, add lists the current volumes and aliases. NOTE: Aliases are not added to the alias environment until the shadow copy is created. Aliases that you need immediately should be added by using add alias.

add
add volume <volume> [provider <providerid>]
add alias <aliasname> <aliasvalue>

To display the volumes added and the aliases that are currently in the environment, type

The following output shows that drive C has been added to the Shadow Copy Set

Volume c: alias System1 GUID \\?\Volume{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}\ 1 volume in Shadow Copy Set. No Diskshadow aliases in the environment.
volumeAdds a volume to the Shadow Copy Set, which is the set of volumes to be shadow copied. See add volume for syntax and parameters.
aliasAdds the given name and value to the alias environment. See add alias for syntax and parameters.
/?Displays help at the command line.

Sub-commands

each with its page