3 Replies Latest reply: Aug 5, 2009 9:13 AM by zman RSS

    How to perform check disk when winpe provisioning

    Rookie

      I build a provisioning task to use ghost v11 to backup user's whole harddisk, and do check disk on c:, I use chkdsk /r c:, but the parameter /r need user input "Y" to confirm, it seemed that LANDesk can not do it. I think autoit can do this.I write a Autoit script,but it not worked.A cmd windows popup,perform the chkdsk,but not recieve the "Y" to confirm,so it is pending in winpe.I think the popup cmd window not active,the "Y" send to where I don't know. Who can help me to perfect this script?

       

      Run("chkdsk c: /r")

      SendKeepActive("x:\i386\system32\chkdsk.exe")
      Sleep(2000)
      send("{Y 1}{enter 1}")
      Sleep(2000)
      send("{Y 1}{enter 1}")
      Sleep(2000)
      send("{Y 1}{enter 1}")