This topic has not yet been rated - Rate this topic

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 codeDescription
0

Success

1

Remote Drive

2

Removable Drive

3

Drive Not Root Directory

4

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

Vds.mof

DLL

Vdswmi.dll

See also

Win32_Volume

 

 

Send comments about this topic to Microsoft

Build date: 11/19/2012

Community Additions

ADD
© 2013 Microsoft. All rights reserved.