text
stringlengths
0
4.23k
Parameters
Parameter
Description
<byte>
For master boot record (MBR) disks, specifies the new value for the type field, in hexadecimal form, for the partition. Any partition type byte can be specified with this parameter except for type 0x42, which specifies an LDM partition. Note that the leading 0x is omitted when specifying the hexadecimal partition type.
<GUID>
For GUID partition table (gpt) disks, specifies the new GUID value for the type field for the partition. Recognized GUIDs include:EFI system partition: c12a7328-f81f-11d2-ba4b-00a0c93ec93bBasic data partition: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7Any partition type GUID can be specified with this parameter except the following:Microsoft Reserved partition: e3c9e316-0b5c-4db8-817d-f92df00215aeLDM metadata partition on a dynamic disk: 5808c8aa-7e8f-42e0-85d2-e1e90434cfb3LDM data partition on a dynamic disk: af9b60a0-1431-4f62-bc68-3311714a69adCluster metadata partition: db97dba9-0840-4bae-97f0-ffb9a327c7e1
override
forces the file system on the volume to dismount before changing the partition type. When you run the set id command, DiskPart attempts to lock and dismount the file system on the volume. If override isn't specified, and the call to lock the file system fails (for example, because there is an open handle), the operation fails. If override is specified, DiskPart forces the dismount even if the call to lock the file system fails, and any open handles to the volume will stop being valid.
noerr
Used 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.
<byte>
<GUID>
Remarks
Examples
To set the type field to 0x07 and force the file system to dismount, type:
set id=0x07 override
To set the type field to be a basic data partition, type:
set id=ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
set metadata
Sets the name and location of the shadow creation metadata file used to transfer shadow copies from one computer to another. If used without parameters, set metadata displays help at the command prompt.
Syntax
set metadata [<drive>:][<path>]<metadata.cab>
Parameters
Parameter
Description
[<drive>:][<path>]
Specifies the location to create the metadata file.
<metadata.cab>
Specifies the name of the cab file to store shadow creation metadata.
[<drive>:][<path>]
<metadata.cab>
set option
Sets the options for shadow copy creation. If used without parameters, set option displays help at the command prompt.
Syntax
set option {[differential | plex] [transportable] [[rollbackrecover] [txfrecover] | [noautorecover]]}
Parameters
Parameter
Description
[differential]
Specifies to create a point-in-time snapshot of specified volumes.
[plex]
Specifies to create a point-in-time clone copy of the data on a specified volume.
[transportable]
Specifies that the shadow copy is not to be imported yet. The metadata .cab file can later be used to import the shadow copy to the same or a different computer.
[rollbackrecover]
Signals writers to use autorecover during the PostSnapshot event. This is useful if the shadow copy will be used for rollback (for example, with data mining).
[txfrecover]
Requests VSS to make the shadow copy transactionally consistent during creation.
[noautorecover]
Stops writers and the file system from performing any recovery changes to the shadow copy to a transactionally consistent state. Noautorecover can't be used with txfrecover or rollbackrecover.
404 - Page not found
We couldn't find this page. You can try signing in, or choosing from the relevant search results below:
We couldn't find this page. You can try changing directories, or choosing from the relevant search results below:
Set verbose
Specifies whether verbose output is provided during shadow copy creation. If used without parameters, set verbose displays help at the command prompt.