tomohulk / WinSCP

WinSCP PowerShell Wrapper Module
GNU General Public License v3.0
153 stars 30 forks source link

Invoke-WinSCPCommand fails in version #67

Closed ewhitesides closed 7 years ago

ewhitesides commented 7 years ago

The following command fails in version 5.11.1.0

Invoke-WinSCPCommand -Command "/usr/local/ldm/bin/pqmon 2>&1 | grep 'pqmon.c:466:main()'" -WinSCPSession $session

but succeeds in version 5.9.6.0

i noted the difference in the new version where you create the session differently, so it's not related to that.

ewhitesides commented 7 years ago

error output is 'Invoke-WinSCPCommand : The term 'Write-OutputType' is not recognized'

ewhitesides commented 7 years ago

my command is very specific to what i'm running. i tried a command as simple as 'ls -l' and got the same error if you try to reproduce it.

dotps1 commented 7 years ago

Fixed in 5.11.1.1.

ewhitesides commented 7 years ago

thanks!