The new version resolves the problem. Thanks.
- floppymaster
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
pa$w"or`d -> "pa`$w`"or``d"
# Set up session options
$sessionOptions = New-Object WinSCP.SessionOptions -Property @{
Protocol = [WinSCP.Protocol]::Sftp
HostName = "ftp.example.com"
UserName = "myuser"
Password = "pa$sword" # Accidental reference to '$sword' variable
SshHostKeyFingerprint = "ssh-rsa 2048 0b:1e:4b:29:43:7e:a3:aa:f4:6b:fe:50:cb:32:f8:35"
}
# Set up session options
$sessionOptions = New-Object WinSCP.SessionOptions -Property @{
Protocol = [WinSCP.Protocol]::Sftp
HostName = 'ftp.example.com'
UserName = 'myuser'
Password = 'pa$sword'
SshHostKeyFingerprint = 'ssh-rsa 2048 0b:1e:4b:29:43:7e:a3:aa:f4:6b:fe:50:cb:32:f8:35'
}