$fingerprint
Hello
Pls, how I have to us "$fingerprint"
I hav to download (function?) and uploade (function?) file
My scripte is not work correctly
Thx for your help
Arnold
Pls, how I have to us "$fingerprint"
I hav to download (function?) and uploade (function?) file
My scripte is not work correctly
Thx for your help
Arnold
cls Get-Module winscp | ft Path $hostname = 'ftp://.........' $username = '.............' $password = '.............' $fingerprint = 'yourFingerprint' $PortNumber = "22" $WinSCPSessionOption = New-WinSCPSessionOption -Property @{ Protocol = [WinSCP.Protocol]::Sftp # Transfer Protocols (SFTP, FTP, SCP, WebDAV, S3) HostName = $using:hostname UserName = $using:username SecurePassword = $using:password PortNumber = $using:PortNumber } $sshHostKeyFingerprint = Get-WinSCPHostKeyFingerprint -SessionOption $WinSCPSessionOption -Algorithm SHA-256 $WinSCPSessionOption.SshHostKeyFingerprint = $sshHostKeyFingerprint $WinSCPSession = New-WinSCPSession -SessionOption ($WinSCPSessionOption) Get-WinSCPSession Receive-WinSCPItem -WinSCPSession $WinSCPSession -RemotePath "/" -LocalPath "C:\Users\admin\OneDrive\......." $WinSCPSessionOption.SshHostKeyFingerprint = $sshHostKeyFingerprint Remove-WinSCPSession