This method invokes the chkdsk operation on the disk. The method is applicable to only those instances of logical disk that represent a physical disk in the machine. It is not applicable to mapped logical drives. The return value of the method will indicate one of the following – Success – Chkdsk completed, Success – Locked and chkdsk scheduled on reboot, Failure – Unknown file system, Failure – Unknown error, Failure – Unsupported File System.


UInt32 ReturnValue = Chkdsk(Boolean FixErrors, Boolean VigorousIndexCheck, Boolean SkipFolderCycle, Boolean ForceDismount, Boolean RecoverBadSectors, Boolean OkToRunAtBootUp)


Return Value


See Also

Help and Questions

  Community Content

You are cordially invited to add knowledge to this page. If you have sample code or additional information related to this WMI class, please share it. Use the comment form to send your information. We will edit and incorparate it into the reference library. Thank you!

Please do not use the comment form to submit questions. If you have questions or need assistance, visit our free forum: Help me with WMI.

Content last updated: 2013-12-27 12:09:24 (UTC).