Runas and chkdsk

Discussion in 'Windows 7 Help and Support' started by teligence, Oct 30, 2011.

  1. teligence

    teligence New Member

    Oct 30, 2011
    Likes Received:
    Running a clean installation of Windows 7 Home Premium, 64-bit, fully updated.

    I'm writing a document that I would like to include a hyperlink to a shortcut or batch file that the reader (my daughter) can simply click on and it will run chkdsk via batch file in a command prompt.

    When I run it I get the following response:

    "Access Denied as you do not have sufficient privileges.
    You have to invoke this utility running in elevated mode."

    It works fine if I disable UAC, but I would prefer to leave that level of security in place.

    When using "runas" and an admin account referenced in the command line, I receve a prompt for the pasword as expected, enter it, receive a command bos message that states that it's trying to start chkdsk as the admin user I referenced. Anothe box flashes up for an instant - too quick to see anything but the flash - then disappears and I. back at the starting command prompt.

    How do I run chkdsk from a user-level command prompt?

Share This Page