Help for this page

Select Code to Download


  1. or download this
    my $exe='myprogram.exe';
    my $user='tester';
    ...
    open(FH,"| $cmd")  || die $^E;
    print FH $pass;
    close(FH);
    
  2. or download this
    H:\Products\Sandbox>runas.pl
    Enter the password for tester:
    Attempting to start myprogram.exe as user "GUYBOX\tester" ...
    RUNAS ERROR: Unable to run - myprogram.exe
    1326: Logon failure: unknown user name or bad password.