Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
CMD: Running batch under diff user
Name: blink Date: August 4, 2006 at 00:58:26 Pacific OS: XP/2003 CPU/Ram: Present Product: -
Comment:
I'm currently coding a batchfile that does some modifications on user groups. For this to work, an administrative account is needed. All users that will be using this tool logon on using their normal account that does not have administrative rights.
Of course its an option to rightclick the bat file and do a run as, but it would be much easier and cleaner if, when the file is opened, it automatically runs as the administrative account.
Is there a way to implement the runas command and the actual code in one batch file?
Summary: I tried a few runas to get network connections to open under limited user. Such as. runas /user:computername\Administrator "rundll32.exe shell32.dll,Control_RunDLL control.exe" Can't seem to get to w...
Summary: This article explains everything you need to know to run programs under limited user accounts. In my honest opinion, it's no fun especially when the PC is your very own... i_XpUser ...
Summary: Hi: I am unable to run msconfig under my user account, although I can do it as administrator (guess I lied in the subject field, but I DO consider my user account as admin, too, so there!) when I atte...