[The ConditionalMount property is no longer available for use as of Windows Server 2012. Instead, use the DiskRunChkDsk property.]
This property is not supported.
Windows Server 2003:
Determines whether a physical disk is mounted only if chkdsk performs successfully. The following table summarizes the attributes of the ConditionalMount property.
|Minimum||FALSE (0) always mount the disk|
|Maximum||TRUE (1) conditionally mount the disk|
Setting ConditionalMount to FALSE causes the operating system to attempt to mount the disk regardless of chkdsk failures, if any. With ConditionalMount set to TRUE (the default), the operating system will not attempt to mount a disk if chkdsk reports errors for the disk. Note that if chkdsk does not run, it will not produce errors, and therefore the operating system will attempt to mount the disk regardless of the ConditionalMount setting. The SkipChkdsk property determines if chkdsk runs or not.
The following table summarizes the interaction between SkipChkdsk and ConditionalMount.
|SkipChkdsk value||ConditionalMount value||Chkdsk runs?||Disk mounted?|
|FALSE||TRUE||yes||If chkdsk reports errors, no. Otherwise, yes.|
Forcing a disk to mount despite errors can result in loss of data. Use caution when changing these properties.
The property value portion of a property list entry for ConditionalMount can be set with the following example code.
DWORD ConditionalMountData = FALSE; CLUSPROP_DWORD ConditionalMountValue; ConditionalMountValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_DWORD; ConditionalMountValue.cbLength = sizeof(DWORD); ConditionalMountValue.dw = ConditionalMountData;
Minimum supported client
Minimum supported server
|Windows Server 2003 Enterprise, Windows Server 2003 Datacenter|
End of server support
|Windows Server 2003 Datacenter, Windows Server 2003 Enterprise|