Posted: 2013-08-13 10:24
I would like to know how I can call a session that i have already register in the winscp GUI
All exemple that I found require to spefify the session configuration in the powershell script :
# Setup session options
$sessionOptions = New-Object WinSCP.SessionOptions
$sessionOptions.Protocol = [WinSCP.Protocol]::Sftp
$sessionOptions.HostName = "example.com"
$sessionOptions.UserName = "user"
$sessionOptions.Password = "mypassword"
$sessionOptions.SshHostKeyFingerprint = "ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
$session = New-Object WinSCP.Session
Any help would be appreciate
Location: Prague, Czechia
You cannot (at least not in any documented and reliable way), the assembly by purpose runs independently from the GUI configuration.
Location: United States
Posted: 2013-08-26 01:31
It looks like you cannot do this
You can post new topics in this forum
And it's free!