Computer Hope

Microsoft => Microsoft Windows => Windows XP => Topic started by: dworley on March 02, 2007, 04:11:45 PM

Title: runas
Post by: dworley on March 02, 2007, 04:11:45 PM
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
Title: Re: runas
Post by: pcdoc4christ on March 03, 2007, 10:11:50 AM
Sounds like a good question for the programmers forum.  Try posting it there:
http://www.computerhope.com/cgi-bin/yabb/YaBB.cgi?board=10

If you do, please leave a note at this forum that this is what you did, as duplicate posts get under our skin!
 ;)
Title: Re: runas
Post by: dworley on March 05, 2007, 12:43:22 PM
i have posted it there now.
thanks,
-darryl

http://www.computerhope.com/cgi-bin/yabb/YaBB.cgi?num=1173123746/0