Runas command

J

Jonathan

Hey guys! I know you'll be able to help me out here.
Needing to create a batch file and use the runas command
so we can run maintenance programs as Admin while user
logged on as PowerUser. Here's the problem. We can't
seem to suppress the password so that our users will not
see the password. Any ideas?
 
E

edubbs

Have you thought about su.exe from the Win2k Resource Kit?
I'm not sure if Runas has the functionality you need.

E
 
T

Torgeir Bakken (MVP)

Jonathan said:
Hey guys! I know you'll be able to help me out here.
Needing to create a batch file and use the runas command
so we can run maintenance programs as Admin while user
logged on as PowerUser. Here's the problem. We can't
seem to suppress the password so that our users will not
see the password. Any ideas?

Hi

Some Runas wrapper utilities or alternatives that might help you:

http://groups.google.com/[email protected]
 
C

Chuck

Might also check this link.. http://www.tek-
tips.com/gfaqs.cfm/lev2/4/lev3/32/pid/329/fid/2760 Talks
about using the "vbrunas" script encoded as a vbe. We've
used this process successfully, and it works for the most
part.. make sure your scripts aren't too busy because the
script uses WshShell.SendKeys to send the password to a
waiting window. If another window pops or focus changes
for some reason the sendkeys will send to wrong window and
the script will hang. Some of this can be avoided by
making sure that logon scripts run synchronously. Hope
this helps, Chuck Czarnik
 
R

Roger Abell

If you are in a domain, consider msi wrappering your
maint tasks and having them assigned by GPO.
 
G

Guest

I appreciate it guys. I'll work with these and see what
we can come up with. Thanks again!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top