Connect-To: FTP session fails with new WinSCP module version #44

Closed
opened 2019-04-09 10:08:31 +02:00 by OCram85 · 0 comments
Owner

Problem

try {
    $FTPSessionOption = New-WinSCPSessionOption @WinSCPConParams
    $Global:WinSCPSession = New-WinSCPSession @FTPSessionOption
}

Parameter changed for New-WinSCPSession. Splatting the session opions fails

Solution

try {
    $FTPSessionOption = New-WinSCPSessionOption @WinSCPConParams
    $Global:WinSCPSession = New-WinSCPSession -SessionOption TFTPSessionOption
}

See SCP connection type

## Problem ```powershell try { $FTPSessionOption = New-WinSCPSessionOption @WinSCPConParams $Global:WinSCPSession = New-WinSCPSession @FTPSessionOption } ``` Parameter changed for New-WinSCPSession. Splatting the session opions fails ## Solution ```powershell try { $FTPSessionOption = New-WinSCPSessionOption @WinSCPConParams $Global:WinSCPSession = New-WinSCPSession -SessionOption TFTPSessionOption } ``` > See `SCP` connection type
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: OCram85/PSCredentialStore#44
No description provided.