Not possible to create SCP session from PowerShell

Implemented

Not possible to create SCP session from PowerShell

avatar

I'm trying to create SCP session using PowerShell cmdlets, but apparently there is no session type for 'Scp'

$scp_session = New-RDMSession -Type "Scp"  -Name "WinSCP"

New-RDMSession : Cannot validate argument on parameter 'Type'. The argument "Scp" does not belong to the set "ADConsole,AddOn,Agent,AppleRemoteDesktop,ApplicationTool
,Aws,Azure,AzureQueueStorage,AzureStorage,AzureTableStorage,BeyondTrustPasswordSafeConsole,ChromeRemoteDesktop,CitrixWeb,CommandLine,Computer,Contact,ControlUp,Creden
tial,Customer,Dameware,Database,DataEntry,DataReport,DataSource,DeskRoll,Desktone,DevolutionsProxy,Document,DropBox,Ftp,Gateway,Group,Host,HpRgs,HyperV,ICA,IDrac,Ilo,
IntelAMT,InventoryReport,Iterm,LogMeIn,PCAnywhere,PlayList,PortForward,PowerShell,PowerShellRemoteConsole,ProxyTunnel,PSExec,Putty,Radmin,RDCommander,RDPConfigured,RD
PFilename,RemoteAssistance,ResetPassword,S3,ScreenConnect,ScreenHero,SecureCRT,Serial,SessionTool,Sheet,SkyDrive,SNMPReport,Spiceworks,Splunk,SSHShell,SSHTunnel,Sync,
TeamViewer,TeamViewerConsole,Telnet,TemplateGroup,TerminalConsole,VirtualBox,VirtualPC,VMRC,VMWare,VMWareConsole,VNC,VPN,Wayk,WebBrowser,WebDav,WindowsVirtualPC,XenSe
rver,XWindow" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the command again.
At line:1 char:37
+ $scp_session = New-RDMSession -Type "Scp"  -Name "WinSCP"
+                                     ~~~~~
    + CategoryInfo          : InvalidData: (:) [New-RDMSession], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,RemoteDesktopManager.PowerShellModule.NewRDMSessionCommand


When I exported XML file from GUI with SCP session in it I got something like this, so I'm assuming that there should be 'Scp' type for session in PowerShell:

  <Connection>
    <ConnectionType>Scp</ConnectionType>
    <Group>TEST\Linux Servers</Group>
    <ID>26a734f1-a25d-4242-8ad2-94c5083285af</ID>
    <Name>SCP</Name>
    <OpenEmbedded>true</OpenEmbedded>
    <Stamp>77a1cb75-5990-412d-9274-2e8922c28004</Stamp>
    <Scp>
      <Host>$IP$</Host>
    </Scp>
  </Connection>

All Comments (2)

avatar

Hello,

I have contacted the engineering department regarding this.

I should have an answer soon.

Regards,

David Grandolfo

avatar

To create a SCP entry try the command below:

$session = New-RDMSession -Name "My SCP Session" -Type Host
$session.ConnectionType = "SCP"
Set-RDMSession -Session $session
Update-RDMUI


I also opened a ticket to add SCP as a supported type.

Regards,

David Grandolfo