16-02-2018, 10:40 AM
Ok - next patch will include the new cmdlet and here is the script you can use
Code:
$workingdir = "c:\Program Files\ASG-Remote Desktop 2018\"
Set-Location $workingdir
[Environment]::CurrentDirectory = Get-Location -PSProvider FileSystem
$path = $workingdir + "ASGRD-PSAPI.dll"
Add-Type -path $path
[reflection.assembly]::LoadFrom($path) | Import-Module
Connect-RDEnvironment -Environment YourEnvironment -PassThrough
ForEach( $Conn in Get-RDBaseItemAll -ItemType Connection )
{
$Props = Get-RDPropertiesConnection -ItemId $Conn.ItemId
if ($Props.Protocol -eq "SSH")
{
Set-RDBaseItem -ItemId $Conn.ItemId -ImageId 70082A54-918F-4BA9-B847-713A7CF4743B
}
}
Regards/Gruss
Oliver
Oliver