Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
285 B

  1. use Win32::OLE;
  2. use Win32::OLE::Enum;
  3. $services = Win32::OLE->GetObject('winmgmts:');
  4. $services->{Security_}->{ImpersonationLevel} = 3;
  5. $cls = $services->Get("Win32_process");
  6. $str = $cls->{Path_}->{Path};
  7. #print "class: $str\n";
  8. $WScript->Echo("class: $str\n");