Bulk Change Recording Field

avatar
jbullen
Disabled

I currently have my recording field set to ansi and would like to switch it on all objects to log. I did not see this available in the batch edit properties, is there another way to do it? I have a file name that I want to use in the field as well. Thanks.

All Comments (6)

avatar

Hello,

This is for which type of session?

Could you post a print screen please.

Best regards,

Jeff Dagenais

avatar

Screenshot attached showing existing setting, these are all SSH sessions. We simply want to change it from the ANSI file it is now to plain txt, but we have over 2,000 of these entries so manual isn't an option

Capture.PNG

avatar

Hello,

You can accomplish this by doing a custom powershell command batch action (select your entries > right click > edit > batch edit > batch action). The command to enter would be like this:

$connection.Putty.RecordingMode = 1;
$connection.Putty.RecordingFileName = "C:\path\to\your\file.log"
$RDM.Save();
This will change the mode to ANSI and set the filename to whatever you entered.

Regards,

Hubert Mireault

avatar

OK, were close. I am trying to change it to a TXT file FROM ansi, not to it. So I figured out that is recording mode 2, however for the file name it is putting just "NAME$.txt" rather then my custom name. Full script below


$connection.Putty.RecordingMode = 2;
$connection.Putty.RecordingFileName = "$SESSIONRECORDING$$NAME$_$DATE_TEXT$_$TIME_TEXT$.txt"
$RDM.Save();

avatar

Can you try replacing the double quotes to single quotes and see if it works?

Using the code you sent:

[font="Open Sans", sans-serif]$connection.Putty.RecordingMode = 2;[/font]
[font="Open Sans", sans-serif]$connection.Putty.RecordingFileName = '$SESSIONRECORDING$$NAME$_$DATE_TEXT$_$TIME_TEXT$.txt'[/font]
[font="Open Sans", sans-serif]$RDM.Save();[/font]

Hubert Mireault

avatar

That works! Thank you, that saved me a ton of time, already done. :)