Thread cmd über perl-script als admin ausführen (8 answers)
Opened by Caleb6666 at 2010-05-21 10:04

esskar
 2010-05-21 11:44
#137472 #137472
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
machs mal übersichtlicher
Code (perl): (dl )
1
2
3
4
my $cmd_line = sprintf(qq~runas /user:%s\\%s cscript.exe "c:\\windows\\system32\\Printing_Admin_Scripts\\de-DE\\%s.vbs" "%s"|~, 
    $ENV{USERDOMAIN}, $ENV{USERNAME}, @_);
open (CMD, $cmd_line) or die "Unable to open external program: $!";
# ...

View full thread cmd über perl-script als admin ausführen