Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking to delete a bunch of folders and files that I think was created under a different account with admin privalages. I don't want to log out of my current user and re-login under that admin account.

How can I delete those folders & files as a different user?

IE: Is there a command via the command line that I can specify a different user account & password to delete those files recursively?

share|improve this question
up vote 2 down vote accepted

You can use the runas command from command prompt or a run screen:

type windows key-r (to open run window) runas /user:UserNameHere Explorer .


type windows key - r (to open run window) runas /user:UserNameHere cmd


open a command prompt runas /user:UserNameHere del

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .