Sample scripts

   Disk Drives and Volumes
       Prevent AutoChk From Running , WMI

' Prevent AutoChk From Running

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set objDisk = objWMIService.Get("Win32_LogicalDisk")

errReturn = objDisk.ExcludeFromAutoChk(Array("C:"))

VbsEdit includes all these samples!

This package includes VbsEdit 32-bit, VbsEdit 64-bit, HtaEdit 32-bit and HtaEdit 64-bit.
The evaluation version never expires.


Copyright © 2001-2017 Adersoft