Quantcast
Channel: Devolutions Forum - Recent Posts
Viewing all articles
Browse latest Browse all 19717

Topic "Creating Putty Session" a message from Douglas Bell

$
0
0
Here is the code that I am using to import my CSV file with the intention of creating multiple putty sessions however what is getting created is a &quotSSH shell&quot connection


cls;
$PSDefaultParameterValues['Set-RDM-Property:NoRefresh']=$true

$csv = Import-Csv $args[0];
Write-Host;

foreach ($connection in $csv)
{
Write-Host (&quotImporting : &quot + $connection.DataCenter + &quot-&quot + $connection.Name);
Write-Host;
#1
$session = New-RDM-Session -Name $connection.Name -Group &quotHMS Servers\&quot+$connection.DataCenter -Kind &quotPutty&quot
Set-RDM-Session $session -NoRefresh
Set-RDM-Property $session.ID -Path Putty -Property UseSession -Value false
Set-RDM-Property $session.ID -Path Putty -Property Host -Value $connection.IPAddress
Set-RDM-Property $session.ID -Path Putty -Property ProtocolType -Value SSH
}

Viewing all articles
Browse latest Browse all 19717

Trending Articles