Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Solved the issue. I missed a "\" in my variable for $workspace.
can be deleted.

I am using WinSCP.exe version and its

GetFiles download only zip-Files

with my Powershell code I want to download zip files from a specific folder.
But the wildmask does not work. If I use "/fil/*" all files are downloaded

$sychronisationResult = $session.GetFiles(


When I check with this for $wildcards= "*.zip" I get the correct list:
$files =

                "/fil/", $wildcard, [WinSCP.EnumerationOptions]::None)
        write-host $files

What am I doing wrong?