Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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 .

or

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

or

open a command prompt runas /user:UserNameHere del

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.