Jump to content

.bat runas


dworley
 Share

Recommended Posts

Hello all,

I am running "regedit" from a computer that is not logged in with administrator priveliges in Windows XP Professional. The computer must stay logged into the profile called "PUser" (it is a power user profile... creative name, I know)

I am running regedit from a batch file, and this line of code works beautifully:

"runas /user:localhost\administrator regedit"

the only drawback is that it always prompts me for "administrator"s password. I want to include the password somewhere in the command line or something like that so that it automatically logs in. The security of this obvious availability of the password is not a problem.

Thanks,

-darryl

Link to comment
Share on other sites

http://www.microsoft.com/resources/documen...s.mspx?mfr=true

according to this, there is not an option.

BUT I think if I remember correctly, I had to do this before and here is how I did it. I may be wrong as it's been a long while since I have done this.

runas /user:localhost\administrator:password regedit

Edit: just tested, it does not work.

I am sure there is 3rd party software available to do this, but I have not found any that are trust worthy.

Link to comment
Share on other sites

This one looks pretty good. Haven't tried it myself.

Before i developed runasspc. I looked for a version of runas with the following criteria.

The user does not have to enter a password, like runas.

Only the applications allowed by me, could be started by the user.

To rename an unauthorised application has no success like group policy or other similar runas tools.

The saved credentials should not be used to run any other application like runas /savecred.

It should be simple to handle.

It must be secure.

RunasSpc is free for private use.

http://www.robotronic.de/runasspcEn.html

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy