Remotely run Check Disk via VBS

Home Forums Scripting General Scripting Remotely run Check Disk via VBS

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    Lan
    Member
    #126270

    I often have to connect to a users machine and run a check disk as they don’t have rights…

    * runas iexplore.exe as me and browse to c:, or ‘explorer /separate’ as myself,
    * right click local disc c:
    * properties
    * Tools
    * check Now…
    * tick automatically fix file system errors and scan for and attempt recovery of bad sectors

    then I get the “do you want to schedule this for next restart of the computer” message, say yes and then close all the windows and let the user finish off what they are doing and reboot later.

    is it possible to create a script that can sit on my desktop, I open it, it prompts for a computer name for me to type in and connect up to that machine and do all that without the hasstle of connecting up and doing the above?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.