Well it did run, but it reported the error above in my first post
- niccoc1603
fingerprint
and not the $sessionOptions.TlsHostCertificateFingerprint
. Because with the URL with the fingerprint
, the script should break at the very beginning, without creating any log file.
$sessionOptions.TlsHostCertificateFingerprint = "xx-58-e7-2a-xx-77-30-xx-2e-00-2e-xx-67-7a-xx-fa-16-xx-xx-xx"
Exception calling "ParseUrl" with "1" argument(s): "SSH host key fingerprint "xx-xx-xx-..." does not match pattern /..../"
Session.Open
:
$session.SessionLogPath = "C:\path\winscp.log"
$session.Open($sessionOptions)
Session.SessionLogPath
Session.SessionLogPath
. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
Exception calling "Open" with "1" argument(s): "Connection failed.
Peer certificate rejected
Disconnected from server
Connection failed."
ftps://xxx:xxx%21;fingerprint=xx-58-e7-2a-xx-77-30-xx-2e-00-2e-xx-67-7a-xx-fa-16-xx-xx-xx@12x.11x.xxx.xxx/
$sessionUrl = "ftps://xxx:xxx%21;fingerprint=xx-58-e7-2a-xx-77-30-xx-2e-00-2e-xx-67-7a-xx-fa-16-xx-xx-xx@12x.11x.xxx.xxx/",
$sessionOptions.TlsHostCertificateFingerprint = "xx-58-e7-2a-xx-77-30-xx-2e-00-2e-xx-67-7a-xx-fa-16-xx-xx-xx"