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 have a script in which I have used runas /savecred. First time it asked me for password. Later on it didn't ask me and it was working fine. But if another user logs on to the same server and runs the same script its asking him to enter the password.

How can I make the password to be stored for any user who kicks off that batch file.

I have checked Start > Run > control userpasswords2 > Advanced > Manage Passwords. It shows the stored username only when I am logged in. How can we store the same username and password be for all on the same machine?

share|improve this question

migrated from stackoverflow.com Apr 11 '13 at 17:47

This question came from our site for professional and enthusiast programmers.

1 Answer 1

If you don't mind to have the password in cleartext in the script, you can use

runas /user:DOMAIN\youradminuser C:\somepath\somefile.exe

But most of the time it's probably not suggested to save passwords cleartext...

share|improve this answer

Your Answer


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.