New-Object : The member "Speed" was not found for the specified .NET object.
I used the latest version to create a powershell code output, and then downloaded the latest version of the .net library.
Now when I run it, I get this error
New-Object : The member "Speed" was not found for the specified .NET object.
try
{
# Connect
$session.Open($sessionOptions)
# Set up transfer options
$transferOptions = New-Object WinSCP.TransferOptions -Property @{
Speed = 8192
}
# Transfer files
$session.PutFiles("E:\SQL_Server_Backups\file.rar", "/RAR/*", $False, $transferOptions).Check()
Now when I run it, I get this error
New-Object : The member "Speed" was not found for the specified .NET object.
try
{
# Connect
$session.Open($sessionOptions)
# Set up transfer options
$transferOptions = New-Object WinSCP.TransferOptions -Property @{
Speed = 8192
}
# Transfer files
$session.PutFiles("E:\SQL_Server_Backups\file.rar", "/RAR/*", $False, $transferOptions).Check()