Skip to main content
Terminal Services Managerv26.11 · Nov 2026 Download View Pricing

Custom command-line tools

No tool ships with every utility an administrator uses. Terminal Services Manager lets you add your own to the Tools menu, so the scripts and executables you already rely on run against whatever server, session, or process you have selected.

Add a tool

Choose Tools > Manage tools to open the tool manager, then Add item to create one. The Add tool dialog opens (it is titled Edit tool when you change an existing one). Give the tool a Tool name, point Program name at the executable or script, and set the Parameters it runs with. Acts on sets what the tool runs against: Computer, Session, or Process. When several rows are selected sets what happens when you select more than one row: Ask each time, Run for every selected row, or Run for the focused row only.

Edit tool dialog with a PowerShell command that tests the SMB port

The power is in the parameters. Variables are filled in from the selected row when the tool runs, so one entry works against whichever host, session, or process you have selected. The ones you will use most:

Variable Replaced with
%computer_name% the selected server or computer name
%computer_ip% the selected computer's address
%path% a UNC path to the computer, in the form \\name
%session_user%, %session_domain% the user who owns the selected session, and the user's domain
%session_id% the session ID
%client_name%, %client_ip% the client the session connected from
%pid%, %process_name% the selected process's ID and name

For example, a tool that runs mstsc.exe /v:%computer_name% opens a remote desktop to whatever server is selected, and a PowerShell script that takes %computer_name% as an argument runs against the host you are looking at. Group related tools under categories with Add category, and reorder them with Up and Down. Use Tools > Export tools and Tools > Import tools to share the set with colleagues. The User sessions and Processes lists have their own Tools menus with ready-made commands.

Read every property in the inspector

To see everything Terminal Services Manager knows about a server, session, or process, double-click the row. The inspector on the right lists every property grouped by category, with the CPU and memory trend at the top. Right-click a property and choose Copy value or Copy name and value, or press Ctrl+C to copy the value of the selected rows. Servers and users also have an Active Directory tab.

The inspector

This is the place for a deep look at a single item: the full picture for a server that is misbehaving, or every attribute of a process you are about to end.

See custom command-line tools and the inspector in the handbook for the complete reference.

Was this page helpful?