[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 453
  • Last Modified:

How to get the runtime of PID on another host

I have no problem getting the runtime of a Process ID on my local host but how can I get the runtime or the start time of a specific Process ID on a REMOTE host?
 
I'm trying to find out how long a user has been logged on either to the console or thru a TS session. However I'm not using Terminal Services per se. Thru a GPO I'm allowing a single TS connection to a server. I can get all the info I need except how long they have been logged on. The process ID that I'm wanting the data on is the 'explorer.exe' process associated with their Session ID. I have all of this data, I'm just needing the final piece, the number of seconds that Process ID has been running.  

Thanks in advance.
Ken
0
softbreeze
Asked:
softbreeze
  • 3
  • 2
1 Solution
 
keamoCommented:
If you have PStools suite, you can use "pslist \\computername" to get a list of remote PIDs.
0
 
softbreezeAuthor Commented:
Getting the remote PIDs I'm interested in is not a problem using the WTSEnumerateProcesses. My question is:

Is there a way to get the runtime of a known PID on a remote server? More specificly if my program is running on Host-A how can I get the runtime of a PID running on Host-B.
0
 
keamoCommented:
Sorry, I misread your question.  I know Process Explorer will tell you it's runtime locally.  But not remotely.  
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
keamoCommented:
Ok, I'll try to redeem myself....If you run "pslist \\computername -d"  It should give you the elapsed time the process has been running.
0
 
softbreezeAuthor Commented:
thanks
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now