9 replies
by joseph moore
You need the RUNAS tool. It is a part of the Windows Resource Kit.
If this is a Win2K/XP machine, they have RUNAS built in. On those ones, you can just hold down the Shift key, then right-click on the BAT file, and choose Run As....
You then put in your Administrator login, password and domain (if it is a domain member), and click OK.
hope this helps
by lkspecial
by lkspecial
by mrjay67
You could make a dummy account with admin rights only to the folder or program you are trying to run. I suspect you are trying to get something to install using the batch as just running a batch shouldnt require admin rights.
You could map the share and use the dummy account rights(add the login as a switch at the end of the map) you can do net use /? to get the general idea of how to do it. Although it took a few tries to get it just right as the example is not exact. If applicable deletethe map so access is not readily available. Once the batch is ran and if its no longer needed you could remove the dummy account.
this is something I did to get network printer drivers to install from my PC thorough a script.
Hopefully this will help or get you in a right direction.
Jason
by mrjay67
by lkspecial
by beermonster
Hi,
I came up with a way of automating runas by calling it via a vbscript and having the vbscript pass across the admin password. I use an encoder to encode the vbscript so that the admin password can't be read by anyone. Drop me a line if you need a sample of the script. darthusr@hotmail.com
by lkspecial
by lkspecial
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending