Skip to main content

Process Manager

ProcessManagerW10.png

The “Process Manager” plugin displays all running processes on a selected computer. It also allows you to terminate individual processes.

Create Process

Processes are executed using PSExec. This is a simplified Telnet replacement for running programs on remote clients (Further information).

The dialog for creating processes is designed to accommodate various application scenarios. Typical scenarios include, for example, executing a PowerShell command or a script via powershell.exe or cscript.exe. Depending on the scenario, you can specify either a script or a command. Scripts that have been executed before are saved along with any arguments entered for them. This allows typical actions to be conveniently reused at any time.

A key feature is that processes are executed in the local system context of the web service. Consequently, the user does not need administrative permissions on the respective client.

To make this feature available only to specific user groups, the plugin can be configured differently. The “CAN_CREATE_PROCESS” function is used for this purpose.

process_manager_custom_actions.png

Configuration Description

Target Machine

The selection of possible target machines is limited to the user's permission context.
Executer

This specifies the program to be run on the target machine. Various programs are preconfigured by default.

  • powershell.exe

    Run PowerShell commands

  • powershell.exe -file

    Execute PowerShell scripts, e.g., from any UNC share (using the [...] button next to the command text field)

  • cmd.exe /C

    Execute command-line commands

  • cscript.exe

    Execute VB scripts

Command This field is used to specify the parameter for the selected executor. You can use the [...] button next to the text field to enter a UNC path to a script file
Arguments Additional arguments can be specified here. These are typically arguments for a script that was previously selected (via Command).
Run as The execution context in which the respective process is to be created.
  • SYSTEM

    In this case, the system context is the computer account of the web service to which the SCCM Manager is connected. The PSExec connection is established remotely via the server.

  • Current User

    This refers to the currently logged-in user, or the execution context of the SCCM Manager client. The PSExec connection is established locally via the client.

  • Custom ...

    This option allows you to establish the PSExec connection with any user. The connection is established locally via the client.

Account This displays the user under whose account PSExec is running.
Priority

Here you can select the process priority. The following priorities are available:

  • low

  • belownormal

  • normal

  • abovenormal

  • high

  • relatime

Wait for exit If this option is enabled, the PSExec process waits for a response from the launched program until a timeout is reached. If the process returns before the timeout expires, the corresponding exit code is displayed, and a return value is shown in the “Standard Output” field. If this option is disabled, the program is launched or triggered without waiting for a return value. Instead of an exit code, the respective process ID is then displayed in the “Exit Code” field.
Exit Code This field displays the exit code of the program being run if the “Wait for exit” option is enabled; otherwise, it displays the process ID of the program that was started.
Standard Output The output of the currently running program is displayed here.
PSExec Logging This output displays the standard error output of the PSExec process.
Exception General program errors are displayed here.
    Default Plugin Integration
    • Assembly: ProcessManagerPlugin
    • Name: PROCESS_MANAGER (gets translated)
    • Icon: window_oscillograph.png
    • SelectedComputer: SingleWithPing
    Supported Functions
    • CAN_CREATE_PROCESS: Enables the “Create Process” menu item.