Kaseya Community

Get running process list and processor usage

  • I'm looking to have a script that gets a snapshot of the current running processes and their processor/ram usage. Any ideas on how this can be done?

    Legacy Forum Name: Get running process list and processor usage,
    Legacy Posted By Username: rnobles
  • Quick hint:

    Have a Kaseya script execute "tasklist /v > processes.txt" and return processes.txt to the server via Get File

    -Ed


    Legacy Forum Name: System Administration Scripts,
    Legacy Posted By Username: bellcpa
  • Thanks for the help, but I'm still lost here. I opened up the script editor, and couldn't figure out what to put where. Can you point me to any documentation on script writing in Kaseya?

    Legacy Forum Name: System Administration Scripts,
    Legacy Posted By Username: rnobles
  • Here you go, import this as a new script. The resulting processes.txt is accessed via Scripts tab, Get File option, agent name, processes.txt.

    BTW: You can access the same info directly from Kaseya via Remote Cntl tab, Task Manager with ability to end processes.



    Script Name: Get Process Info
    Script Description:

    IF True
    THEN
    Get Variable
    Parameter 1 : 10
    Parameter 2 :
    Parameter 3 : agentTemp
    OS Type : 1
    Execute Shell Command
    Parameter 1 : tasklist /v >> #agentTemp#\processes.txt
    Parameter 2 : 1
    OS Type : 1
    Get File
    Parameter 1 : #agentTemp#\processes.txt
    Parameter 2 : processes.txt
    Parameter 3 : 1
    OS Type : 1
    Delete File
    Parameter 1 : #agentTemp#\processes.txt
    OS Type : 1
    ELSE



    Legacy Forum Name: System Administration Scripts,
    Legacy Posted By Username: bellcpa
  • That script worked awesome. Is there a way to include the percentage of processor used in the resulting file?



    Thanks so much for the help


    Legacy Forum Name: System Administration Scripts,
    Legacy Posted By Username: rnobles