Can't download a file with PSFTP - target is null... RRS feed

  • Question

  • I am very new to PS and am trying to download files using PSFTP. The command in my script is:

                Get-FTPItem -Session $Session -Path $Source -LocalPath $Destination -Verbose

    The output is: Manual Version 1.pdf
    c:\users\bill\pictures\pdc\pdc down\banta\
    VERBOSE: Performing the operation "Download item: ' Manual Vers
    ion 1.pdf'" on target "".

    I do not understand how the "target" in the VERBOSE output can be null when the value of the -LocalPath parameter is c:\users\bill\pictures\pdc\pdc down\banta\ . I must be missing something simple but I cannot see it. Thanks for any help.

    • Moved by Bill_Stewart Friday, July 7, 2017 6:54 PM Unanswerable drive-by question
    Monday, May 29, 2017 1:13 AM

All replies