Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ExcludeFromAutoChk method of the Win32_Volume class

The ExcludeFromAutoChk method excludes volumes from the Chkdsk operation to be run at the next reboot.

If not excluded, Chkdsk is performed on the volume if the dirty bit is set for the disk.

Note  Calls to exclude volumes are not cumulative. That is, if a call is made to exclude some volumes, then a new list is not added to the list of volumes that were already marked for exclusion. The new list overwrites the previous list.

This method is applicable to only the volume instances that represent a physical disk, and is not applicable to mapped logical drives.

This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.

Syntax


uint32 ExcludeFromAutoChk(
  [in]  string Volume[]
);

Parameters

Volume [in]

List of volumes that are excluded from AutoChk at the next reboot. The string consists of the drive letter followed by a colon for the logical disk.

Example: "C:"

Return value

Return codeDescription
0

Success

1

Remote Drive

2

Removable Drive

3

Drive Not Root Directory

4

Unknown Drive

 

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

Vds.mof

DLL

Vdswmi.dll

See also

Win32_Volume

 

 

Community Additions

Show:
© 2014 Microsoft