Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Process CPU Usage

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,59961
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Process CPU Usage
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Process CPU Usage - 5/7/2008 8:14:06 PM   
  ninjamaster

 

Posts: 105
Score: 0
Joined: 1/23/2007
Status: offline
Hi peeps,

I am looking at writing a script to monitor CPU usage on a number of PC's that are taking a long time to completely login each day. 

I don't want to sit with task manager open and monitoring which process (Or even number of processes) is hogging the CPU hence the thought behind my script. (And yes I realise that cscript.exe will show up in the list :) )

I just can't see which query returns CPU usage for a process as there is no "objProcess.CPUUsage" :p

Any clues please?

< Message edited by ninjamaster -- 5/7/2008 8:27:56 PM >
 
 
Post #: 1
 
 RE: Process CPU Usage - 5/7/2008 8:39:53 PM   
  ninjamaster

 

Posts: 105
Score: 0
Joined: 1/23/2007
Status: offline
Going to play about with

Win32_PerfFormattedData_PerfProc_Process


I might (OK. Probably will ! ) be back :)

(in reply to ninjamaster)
 
 
Post #: 2
 
 RE: Process CPU Usage - 5/7/2008 9:27:17 PM   
  ninjamaster

 

Posts: 105
Score: 0
Joined: 1/23/2007
Status: offline
hhhhm. It would seem that getting a list of processes by CPU usage is not as easy as I would think. And beyond my intermediate scripting skills. :(


I would have thought that if it can be monitored with Task Manager then it would/could/should(?) be easy enough in a script?!???!

(in reply to ninjamaster)
 
 
Post #: 3
 
 RE: Process CPU Usage - 5/7/2008 11:59:18 PM   
  ebgreen


Posts: 4972
Score: 31
Joined: 7/12/2005
Status: offline
Define easy. It is an intermediate programming task.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to ninjamaster)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Process CPU Usage Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts