For the complete documentation index, see llms.txt. This page is also available as Markdown.

PowerShell terminal (local)

This article details the many settings and options available for PowerShell terminal (local) session entries in Remote Desktop Manager.

SETTINGS

DESCRIPTION

Name

The name of the entry.

Folder

The folder where the entry is located. Click the browse button to select a folder, or click the add button to create a new one.

Display

How the entry opens: External, Embedded (tabbed), or Undocked. When External or Undocked is selected, two lists beside it select the monitor and the virtual desktop. The virtual desktop list is not supported on macOS.

On Linux, the list also offers Default (inherited), which uses the display mode of the nearest parent folder that sets one, otherwise the default of the entry type. The mode it resolves to is shown next to the list.

Host

Where the host of the entry comes from. Select a host mode from the list. When the host comes from a linked host entry, the Host field of the Host and credentials tab is unavailable.

Credentials

How the credentials of the entry are provided. Select a credential mode from the list. When the credentials come from another source, the Username, Domain, and Password fields of the Host and credentials tab are unavailable.

General

SETTINGS
DESCRIPTION

Type

What the session runs:

  • Command — Run the command entered in the Command field.

  • Embedded script — Run a script stored in the entry. Click Edit embedded script to write or modify it. The script cannot be empty.

  • Filename — Run the PowerShell script file selected in the Filename field.

Command

The PowerShell command to run. Available when Type is set to Command.

Filename

The path of the PowerShell script file to run. Click the browse button to select an existing file or to create a new one. Available when Type is set to Filename.

Edit embedded script

Open the script editor to write or modify the embedded script. Available when Type is set to Embedded script.

Arguments

The arguments passed to the command or script.

Executable arguments

Additional arguments passed to the PowerShell executable when the session starts.

Working directory

The folder in which the session starts. Click the browse button to select a folder.

Load RDM CmdLet

Load the Remote Desktop Manager PowerShell module in the session before the command or script runs.

Terminal

SETTINGS
DESCRIPTION

Application

The terminal application that hosts the session:

  • Default (Windows Terminal)

  • Classic

  • Windows Terminal

  • Let Windows decide

Configuration

An optional Windows Terminal entry whose profile the session uses. Select an entry to use its profile instead of the default profile configured on your machine. On Windows, click the browse button to pick an entry. Click the clear button to remove the selection. Visible when Application is set to Default (Windows Terminal) or Windows Terminal. The selected entry is saved only when Application is set to Windows Terminal.

Host and credentials

SETTINGS
DESCRIPTION

Host

The host name or IP address of the computer. Enter a host or click the browse button to select one. Unavailable when the host comes from a linked host entry.

Username

The username used by the session. Unavailable when the credentials come from another source.

Domain

The domain of the user. Unavailable when the credentials come from another source.

Password

The password of the user. Unavailable when the credentials come from another source, or when the Disable password saving in vaults system setting is enabled.

The tab also lists the variables you can use in your parameters: $USERNAME$, $DOMAIN$, $HOST$, and $PASSWORD$.

Parameters

SETTINGS
DESCRIPTION

Parameter name

The name of the parameter. Click the name to rename the parameter in a separate window.

#

The token that identifies the parameter on the command line, such as {1} for the first parameter.

Type

Select the parameter type:

  • Unused

  • Text

  • Secured

  • Env. variable

Default value

The default value of the parameter. The value is masked when the type is Secured, and unavailable when the type is Unused.

Delete (row button)

Reset the parameter of the row: its type returns to Unused, its default value is cleared, and its name returns to the default name. Shown when the type is not Unused.

Add

Add a parameter at the end of the list.

Delete

Remove the last parameter of the list. Available when parameters were added beyond the first five.

Load

Read the parameters declared in the script selected on the General tab and add them to the list.

Prompt for parameters on open

Prompt for the parameter values each time the session opens.

On macOS and Linux, the parameter names are typed directly in the list, the token is shown to the left of the name, and the Add parameter button below the list replaces the Add and Delete buttons. Hover over a row and click its delete button to clear the parameter.

Run as

SETTINGS
DESCRIPTION

Run as administrator

Run the session with administrator privileges. When selected, the credential fields below are unavailable.

Run as mode

How the session is elevated:

  • Default (ShellExecute)

  • GSudo

Credentials

The credentials used to run the session:

  • None

  • Current session

  • Username and password — Enter the Username, Domain, and Password. Select Always ask for password to be prompted for the password instead of saving it.

  • Linked (vault) — Select the Credential entry to use.

  • My personal credentials — Click the button next to the list to edit them.

  • Find by name (user vault) — Enter the Entry name of a credential entry of your user vault. Not offered for an entry in the user vault.

  • My privileged account — Click the button next to the list to edit it.

  • Linked (user vault) — Select the Credential entry of your user vault to use. Offered only for an entry in the user vault.

On Linux, the linked modes are grouped under a single Linked item, with a Vault list that selects the vault of the credential entry.

Advanced

SETTINGS
DESCRIPTION

PowerShell version

The PowerShell version that runs the session:

  • Default — Use the version set in the application settings. The list shows this version in parentheses.

  • Windows PowerShell (2.0) [Deprecated]

  • Windows PowerShell (5.1)

  • PowerShell 7

Threading

The apartment state of the PowerShell thread:

  • Default — Use the value set in the application settings. The list shows this value in parentheses.

  • MTA (multithreaded apartment)

  • STA (single-threaded apartment)

Command type

How the command is passed to PowerShell:

  • Default — Use the command type set in the application settings. The list shows this command type in parentheses.

  • Command

  • Encoded command

  • Secure command

Prompt mode

Whether PowerShell starts in interactive mode:

  • Default (Interactive) — Neither mode is forced, and PowerShell starts in interactive mode on its own.

  • Interactive — Available with PowerShell 7 only.

  • Non-interactive

No exit

Keep PowerShell open after the command or script completes.

Resize window

Resize the PowerShell window and buffer to the sizes set in the application settings when the session starts.

No profile

Start PowerShell without loading the PowerShell profile.

No logo

Hide the PowerShell startup banner.

Debug

Display the preparation steps that Remote Desktop Manager runs before the command or script, instead of clearing the console.

See also

Last updated

Was this helpful?