Zoomed Image

Command Prompt

Endpoint Management Guide

Connect to a Computer

Command Prompt

Command Prompt opens a text terminal on one Windows computer in a browser window. You type commands and see their output as they run. The session runs through the agent and the xAssets relay, like Remote Desktop.

The remote terminal is the command prompt only. The PowerShell menu item and its transform are removed when the database is upgraded. To run PowerShell on a computer, start powershell.exe from the command prompt, or use an approved script.

Endpoints > Endpoint List > select a computer > Connect > Command Prompt.

The terminal opens for one computer. With more than one row selected, a message asks you to select one computer and no terminal opens.

Requirements

  • An agent on the computer, online. The terminal has no agentless route.
  • The relay address in the Remote Relay Server URL setting (RemoteRelayURL). See Set Up the Relay.
  • The Endpoint.Operate permission.
  • One approval for each session. A terminal session is a High risk action. The agent opens it only after an approver has signed the run. See Approving a Script.

Program started

The agent starts cmd.exe with no window, in the C:\ folder, as the NETWORK SERVICE account. Commands run with NETWORK SERVICE rights on the computer. They reach the network as the computer account.

The user at the computer sees nothing and is not asked for consent.

Linux computers open a bash terminal. See Linux Computers.

Start sequence

  1. xAssets checks your rights.
  2. It sends a start command to the agent with a new random session token.
  3. The agent checks the approval, connects out to the relay and starts the program.
  4. Your browser connects to the relay with the same token. The terminal shows "cmd.exe on" with the computer name when it is ready.

Each start is a job in Activity named "Remote Terminal to" plus the computer name.

Key points

  • One terminal session runs per computer. Starting a new one ends the open one.
  • A command that waits for input in a new window cannot be answered. The program has no desktop.
  • To run the same command on many computers, use an approved script. See Run a Script.