Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Run ChkDskContent of Run ChkDsk.vbsMD5 Hash: DC7250F3D68FCFD82E8B2B0FA174EA7E |
||
' Description: Runs ChkDsk.exe against drive D on a computer.
Const FIX_ERRORS = True strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objDisk = objWMIService.Get("Win32_LogicalDisk.DeviceID='D:'") errReturn = objDisk.ChkDsk(FIX_ERRORS) | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |