You cannot call a method on a null-valued expression.

Advertisement

dannygoor
Joined:
Posts:
1
Location:
Chatsworth

You cannot call a method on a null-valued expression.

I keep getting the error: You cannot call a method on a null-valued expression.

Even using a basic script like this;

$transferOptions = New-Object WinSCP.TransferOptions
$transferResult = $session.GetFiles($sourcePath, $destPath, $False, $transferOptions)
$transferResult.Check()

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum