# Batch Actions Samples

## Description

The Batch Actions allow for a quick way to modify multiple sessions at once, but within Remote Desktop Manager itself.

To be able to create your PowerShell script, you would need the name of the field(s) that you would like to update. To retrieve the exact name of the field, right-click on your session and select Clipboard Copy. You can then paste the information in a text editor to retrieve the name of the field(s) that you would like to modify via the Custom PowerShell Command.

Since they use the Powershell technology, we provides samples in this section because the fields are the same when accessed through our Batch Actions or through Powershell.

## Samples

### Disable Only send password in HTML Password Field option in Web browser sessions

$connection.Web.OnlySendPasswordInPasswordField =$false;
$RDM.Save(); ### SSH Shell Batch Edit (Session Type Settings)$connection.Terminal.MaxScrollbackLines = 2000;

$connection.Terminal.AlwaysAcceptFingerprint =$true;

$connection.Terminal.EnableLogging =$true;
$connection.Terminal.LogPath = '$LOGPATH$\$NAME$_$DATE_TEXT_ISO$_$TIME_TEXT_ISO$.log';$connection.Terminal.LogMode = 1;
$connection.Terminal.LogOverwriteMode = 0;$RDM.Save();

Here are some values that you can change for this command;

LogPath: your path between ' ' (single quotes). You can also use variables. i.e. %USERPROFILE%, $NAME$, etc. In this example $LOGPATH$ is a custom variable defined in the Data Source Settings (System Settings) - Custom Variables

LogMode: 1 = Printable Output, 0 = Event

TerminalLogOverwriteMode: 0 = default, 1 = prompt, 2 = append, 3 = overwrite

Here's also other options that you can modify;

$connection.Terminal.BellMode = 'Visual'$connection.Terminal.CloseOnDisconnect = $false Convert web browser sessions into LogMeIn sessions$connection.ConnectionType = 'LogMeIn';
$connection.ConnectionSubType = '' ;$connection.LogMeIn.Url = $connection.WebBrowserUrl;$RDM.Save();

Enable the "Hide script errors in all your LogMeIn sessions."

$connection.LogMeIn.ScriptErrorsSuppressed =$true;
$RDM.Save(); Hide navigation bar.$connection.LogMeIn.ShowUrl = $false;$RDM.Save();

Change the Web Browser Application.

$connection.LogMeIn.WebBrowserApplication = "GoogleChrome";$RDM.Save();

Enable the Sandbox Process.

$connection.LogMeIn.SandboxProcess =$true;
$RDM.Save(); Change the URL.$connection.LogMeIn.Url = " ";
$RDM.Save(); Change the Portal Login field.$connection.LogMeIn.DashboardHostUrl = " ";
$RDM.Save(); Change Username & Password. Please run these two one at a time Host;$connection.LogMeIn.UserName = " ";
$RDM.Save();$connection.LogMeIn.SafePassword = " ";
$RDM.Save(); Portal;$connection.LogMeIn. DashboardEmail = " ";
$RDM.Save();$connection.LogMeIn. SafePasswordDashboard = " ";

### Bulk Change Recording Field for Putty sessions

$connection.Putty.RecordingMode = 1;$connection.Putty.RecordingFileName = "C:\path\to\your\file.log"
\$RDM.Save();