Joc Posted August 8, 2009 Share Posted August 8, 2009 Hi,I would like to run my wpi.cmd on a newly installed computer. (automaticaly of course)Well, I know RUNAS, RUNASSCP, SANUR, SUDOWIN, CPAU and other similar programs. I have a problem with them: my administrator havent got any password. How can I start any program with admin rights, with black password? (Change user to admin is not a right solution! )Joc Link to comment Share on other sites More sharing options...
ajua Posted August 10, 2009 Share Posted August 10, 2009 If your account doesn't have any password, you can run elevated applications by just clicking through UAC prompts.Just right-click on the file and choose run as administrator. Link to comment Share on other sites More sharing options...
Joc Posted August 15, 2009 Author Share Posted August 15, 2009 If your account doesn't have any password, you can run elevated applications by just clicking through UAC prompts.Just right-click on the file and choose run as administrator.As I said I would like to run it automatically from a script. For example: "runas /user:administrator wpi.cmd"Joc Link to comment Share on other sites More sharing options...
njven Posted August 19, 2009 Share Posted August 19, 2009 (edited) Why not just add a password and remove it when done?echo password | net user Administrator *runasspc /user:"administrator" /password:"password" /program:"wpi.cmd"echo | net user Administrator *That sets Administrator password to "password"Then removes it again. All completely automatically.I couldn't get it to work, but you can set and remove a password and see if that works. Edited August 19, 2009 by njven Link to comment Share on other sites More sharing options...
Joc Posted August 26, 2009 Author Share Posted August 26, 2009 Great idea!!! Thanks,Joc Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now