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 code | Description |
---|---|
|
Success |
|
Remote Drive |
|
Removable Drive |
|
Drive Not Root Directory |
|
Unknown Drive |
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2003 |
Namespace |
Root\CIMV2 |
MOF |
|
DLL |
|