Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Powershell RDP Options
#1
Hi, 
I am working on automatically configuring Connection in ASG Desktop with Powershell. 
I would like to add RDP Options to the Connection via Powershell (or any other Language) but I cat find a Command. 
 - Port number
 - Start a Program 
 - Disable CredSSP
Does anyone have a Solution?

$NewCon = [PSCustomObject]@{
    ConnectionName = "TEST"
    ConnectionDescription = "Test"
    ConnectionDestination = "ServerDNS"
    ParentId = '123456...'
    Port = 3389
    Program = "c:\...."
}


$NewObject = New-RDBaseItem -ParentItemId $NewCon.ParentId ...
Set-RDPropertiesConnection -ItemId $NewObject.ItemId  ...
Reply
#2
Which version do you use? In latest version we have some cmdlet's to set these values

But you need to do it in some steps

Set-RDBaseItem - create the item
Set-RDPropertiesConnectionRdpConnection - set of Port, CredSSP and so on
Set-RDPropertiesConnectionRdpPrograms - set of "execute Program" and so on
Regards/Gruss
Oliver
Reply
#3
Hi, thanks for your quick answer.
We are currently using V2019, it does not have the Set-RDPropertiesConnectionRdpConnection or Set-RDPropertiesConnectionRdpPrograms Commands.
Is there another solution? or do we have to upgrade?
Reply
#4
We try to add by customer requests - so if not available in 2019 I don't see any other solution
Regards/Gruss
Oliver
Reply




Users browsing this thread: 1 Guest(s)