Thread cmd über perl-script als admin ausführen
(8 answers)
Opened by Caleb6666 at 2010-05-21 10:04
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: $!"; # ... |