Batch edit of putty sessions to SSH Shell

Batch edit of putty sessions to SSH Shell

avatar

I could probably be missing how this is done but I have many entries that are currently set up for using Putty however I would like to change them to use the SSH shell. Is there a way I can do this with batch edit ?

All Comments (3)

avatar

sadly this would require more of a refactoring than a batch edit. We do not support it at this time.

How many do you need to modify? If the number is great, then a powershell script could do the trick, but it does take some time to put in place.

Maurice

avatar

about 150. Guess it is time to learn about powershell LOL

avatar

There are some good PowerShell examples here:

http://forum.devolutions.net/forum42-remote-desktop-manager--powershell-repository.aspx

In this case I would suggest you start with:
- copy a sessions (Right-Click -> Clipoboard -> Copy) & paste that in your favourite text editor
- now modify (convert to SSH Shell) the session (manually)
- copy (same as above) and paste

Now you have the before and after of what the session should look like. This will come in handy when you call Get-RDM-Property & Set-RDM-Property CmdLet since you need the path of the properties.

The next step is to iterate through all your sessions, read into variables all values you need, change the session type, write back the values in the appropriate properties (this is where the two exports come in handy).

Example of a copy/paste session:
<?xml version="1.0"?>
<ArrayOfConnection>
<Connection>
<ConnectionType>Putty</ConnectionType>
<CreatedBy>DEVOLUTIONS18\slavergne</CreatedBy>
<CreationDateTime>2013-10-10T15:38:56.8585151-04:00</CreationDateTime>
<Events />
<ID>f46a7931-bfe8-4820-8db3-fc4b5f0c1e65</ID>
<MetaInformation />
<Name>putty</Name>
<OpenEmbedded>true</OpenEmbedded>
<PinEmbeddedMode>False</PinEmbeddedMode>
<Putty>
<Port>22</Port>
<PortFowardingArray />
<TelnetEncoding>IBM437</TelnetEncoding>
</Putty>
<Stamp>0e8298fe-b90e-48af-aab4-406b2296356a</Stamp>
<SubMode>2</SubMode>
<TemplateSourceID>7b95dd02-d0fa-4adc-b001-1f80aaeb9ba8</TemplateSourceID>
<UpdateDateTime>2013-10-10T15:40:53.8792213-04:00</UpdateDateTime>
<UpdatedBy>DEVOLUTIONS18\slavergne</UpdatedBy>
<UsesSerialPorts>false</UsesSerialPorts>
</Connection>
</ArrayOfConnection>

Stéfane Lavergne