Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Icon management
#4
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
Reply


Messages In This Thread
Icon management - by thefool - 15-02-2018, 07:06 PM
RE: Icon management - by DevOma - 16-02-2018, 10:08 AM
RE: Icon management - by thefool - 16-02-2018, 10:24 AM
RE: Icon management - by DevOma - 16-02-2018, 10:40 AM



Users browsing this thread: 1 Guest(s)