Jump to content

WPI without admin rights


Recommended Posts

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


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

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 by njven
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...