ScheduleAutoChk method of the Win32_Volume class
The ScheduleAutoChk method schedules AutoChk to be run at the next reboot if the volume's dirty bit has been set. The method is only applicable to those volume instances that represent a physical disk. It 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 ScheduleAutoChk( [in] string Volume[] );
Parameters
- Volume [in]
-
List of volumes scheduled for AutoChk at the next reboot. The string consists of the drive letter, mount point name, or volume globally unique identifier (GUID) name.
Return value
| Return code | Description |
|---|---|
|
Success |
|
Remote Drive |
|
Removable Drive |
|
Drive Not Root Directory |
|
Unknown Drive |
Examples
For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.
For C++ code examples, see WMI C++ Application Examples.
Requirements
|
Minimum supported client | None supported [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2003 [desktop apps only] |
|
Namespace |
\root\CIMV2 |
|
MOF |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012
