Chkdsk
Lists and corrects errors for the specified disk. Runs the chkdsk command, a Windows utility.
Privileges
Elevated - Run as administrator
Input Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Drive Letter | String | Yes | The letter of the mapped drive. |
| Fix Errors | Boolean | Yes | Determines if chkdsk should fix any errors it encounters |
| Vigorous Index Check | Boolean | Yes | Determines if chkdsk should perform an index check |
| SkipFolderCycle | Boolean | Yes | Determines if chkdsk should skip the folder cycle |
| Force Dismount | String | Yes | Determines if chkdsk should dismount the specified disk |
| Recover Bad Sectors | String | Yes | Determines if chkdsk should recover bad sectors |
| Perform chddsk at bootup | String | Yes | Delays the running of chkdsk till after a reboot. |
Output Parameters
| Name | Type | Description |
|---|---|---|
| Result | Number | Returns a success value of zero or any value other than zero to indicate failure. |
Example Input Parameters
| Name | Type | Required | Example |
|---|---|---|---|
|
Drive Letter |
String |
Yes |
C:\ |
|
Fix Errors |
Boolean |
Yes |
Optionally scan for and fix errors on the specified drive. |
|
Vigorous Index Check |
Boolean |
Yes |
Optionally perform a vigorous index check on the specified drive. |
|
SkipFolderCycle |
Boolean |
Yes |
Optionally skip the folder cycle when performing a check on the specified drive. |
|
Force Dismount |
String |
Yes |
Optionally dismount the drive when performing a check on the specified drive. |
|
Recover Bad Sectors |
String |
Yes |
Optionally recover bad sectors on the specified drive. |
|
Perform chddsk at bootup |
String |
Yes |
Optionally run chkdsk on the specified drive at device bootup. This flag does not perform device restart, use Restart System or reboot device through other means. |
