in reply to Windows runas command
If the command prompt is not invoked correctly, you may need to add a "cmd/c " before the "echo".my $User="Somebody"; my $Pass="ThisIsInsecure!"; my $Program_to_run="notepad.exe"; my $result=`echo $Pass|RunAs /User:$User $Program_to_run`;
Theory is when you know something, but it doesn't work.
Practice is when
something works, but you don't know why it works.
Programmers combine Theory
and Practice: Nothing works and they don't know why.
-Anonymous
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Windows runas command
by Anonymous Monk on Feb 14, 2010 at 18:01 UTC | |
by flintstone (Initiate) on Feb 15, 2010 at 17:41 UTC | |
by Anonymous Monk on Feb 15, 2010 at 18:11 UTC | |
|
Re^2: Windows runas command
by flintstone (Initiate) on Feb 15, 2010 at 17:52 UTC |