Online Help > Entry Types > Macros/Scripts/Tools

Macros/Scripts/Tools PowerShell (Local)

Description

 

This entry is used to integrate a PowerShell (Local) session/script/tool.

 

Settings

 

PowerShell (Local) - General tab

PowerShell (Local) - General tab

 

OPTION

DESCRIPTION

Command

Enter the PowerShell command.

Assign file icon to session

Assign the file icon in the address bar of the session.

Arguments

Enter your command line argument. For more information please see Command Line Arguments.

Working directory

Working directory to set for the script execution.

PwerShell version

Select your PowerShell version between:

Default

Version 2

Wait for application to exit (Remote Desktop Manager will be unavailable)

Executes the script while the application waits for completion. Is it a synchronous operation therefore it will be unresponsive while the script runs.

Open embedded/tabbed

Open the PowerShell macro embedded.

Run as administrator

Run PowerShell macro as a administrator.

Resize window

Force window resize (buffer & window).

Run in 64-bits mode

Run CmdLet in 64 bits version.

Run as different user

Run the PowerShell macro as a different user.

Load RDM CmdLet

Load CmdLet Snap-in in the PowerShell session.

No exit

Leaves the PowerShell window open after the script has completed.

Debug

Show debug

 

We suggest to use either relative paths or in general paths without spaces or use the PowerShell Session to execute a script with parameters. Here some examples:

 

Macro that can use Session Variables:

.\Data\ConnectAfterReboot.ps1 -strHost $HOST$ -OpenRDMSession

 

Session that can specify a filename and arguments:

.\data\New-RDM-Data.ps1

-AddNewOnly