1
1
I have a script that get files from one location to another. My script works fine.
However I'd like to check first for "connected sessions". With SSH.NET PowerShell module I checked this with:
$ASESSION = (Get-SshSession -ComputerName $AHOST).connected
Is there a way of doing this with WinSCP?
I'm confused. Are you already using SSH.NET library in PowerShell?
– nixda – 2014-11-24T21:22:40.887Get-SshSession
is a hint for this. And now you want to use PowerShell together with WinSCP?That is correct. In former days we had two unix systems and used SSH.NET library in our script. Now we changed to Windows and want to change to WinSCP.NET assembly. – MuH – 2014-11-25T17:50:43.100
Sorry, this may sound like a stupid question from me. But you are aware that SSH.NET can be used in PowerShell, right? This said, you can use your old script with PowerShell under Windows. Or am I missing something? – nixda – 2014-11-25T19:42:11.930