MoshiachNow
IS-IT--Management
HI,
RUnning on XP,using Win32:
rocess::Info to get the process UserModeTime"
my $CONNECT_MONIKER = "WinMgmts:{impersonationLevel=impersonate}!//$Config{machine}";
my $WMI = Win32::OLE->GetObject( $CONNECT_MONIKER ) || &disp("Unable to connect to \\$Machine:",'RED');
my $ProcList = $WMI->InstancesOf( "Win32_Process" );
my $pi = Win32:
rocess::Info->new;
foreach my $Proc ( $ProcList ) {
my @info = $pi->GetProcInfo ($Proc->{'ProcessID'});
print "info=@info\n";
}
"@info" prints as a list of hashes.
How do I get the UserModeTime for each process out of this ?
Thanks
Long live king Moshiach !
RUnning on XP,using Win32:

my $CONNECT_MONIKER = "WinMgmts:{impersonationLevel=impersonate}!//$Config{machine}";
my $WMI = Win32::OLE->GetObject( $CONNECT_MONIKER ) || &disp("Unable to connect to \\$Machine:",'RED');
my $ProcList = $WMI->InstancesOf( "Win32_Process" );
my $pi = Win32:

foreach my $Proc ( $ProcList ) {
my @info = $pi->GetProcInfo ($Proc->{'ProcessID'});
print "info=@info\n";
}
"@info" prints as a list of hashes.
How do I get the UserModeTime for each process out of this ?
Thanks
Long live king Moshiach !