#154086 - 2006-01-20 05:11 PM
Re: RUNNAS - Tokenized Runas Utility
|
Shawn
Administrator
Registered: 1999-08-13
Posts: 8611
|
New version of runnas available (1.10) added the following features:
- /wait Wait for the program to finish.
- /return Return errorlevel of program. Use with /wait.
- /title For console processes, this is the title displayed in the
title bar if a new console window is created.
|
Top
|
|
|
|
#154088 - 2006-01-20 06:58 PM
Re: RUNNAS - Tokenized Runas Utility
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11624
Loc: CA
|
Quote:
How about a default behavior for the title parameter of: "<process> - <user>"?
Boy, talk about the new younger GUI age.
|
Top
|
|
|
|
#154098 - 2006-02-07 09:38 PM
Re: RUNNAS - Tokenized Runas Utility
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11624
Loc: CA
|
Recently came across this KB and thought it might be of some value if for nothing else some examples of how the Microsoft version works.
Secondary Logon (Run As): Starting Programs and Tools in Local Administrative Context http://support.microsoft.com/kb/225035
|
Top
|
|
|
|
#154099 - 2006-07-17 06:10 PM
Re: RUNNAS - Tokenized Runas Utility
|
imjin
Lurker
Registered: 2006-03-17
Posts: 4
|
Let me start off by saying that this is a great tool! This is my 1st post since I've usually been a lurker here while I learn KiXtart... I have a question on a possible future modification to runnas.
This tool is currently the only way I've been able to execute apps under an administrative context for our users at login, most of which are not local admins (teachers, students, etc..). We're in the process of migrating away from ScriptLogic due to renewal costs (to the tune of $250k) and I've been attempting to rebuild everything ScriptLogic did. I've pretty much got everything rebuilt with the exception of being able to execute a program (or script) under an administrative context and run it hidden. At login, one of the first things we do is run a "net localgroup" command from a batch file and add a series of domain groups to the local administrators group of each machine. Runnas does this beautifully, but I have to make a separate line for each execution, so if have 6 groups to add, it flashes up 6 windows. On the occasion where the group is already a part of the local administrators group, it will show the error 1378 (account name is already a member of the group) in the dos window. When the users see this, they think all hell is breaking loose because they just saw the word "error".
I've tried combining the RunEx UDF (which does a shellexecute) with Runnas unsuccessfully. I'm not sure if it had to do with requiring single/double quotes within each, but I gave up on that endeavor. I've tried a few other things like piping the stdout to NUL which works unless the accounts are already present, then the errors flash by in the dos window again. Is it possible to add another option that allows for hidden execution?
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 255 anonymous users online.
|
|
|