I'm writing a PowerPack that allows a group to do some basic Linux administration. I'm using PSCP.exe to copy some files. It works great in a PowerShell console, but doesn't work in PowerGUI when using variables.
#doesn't work in PowerGUI...error = "local to local copy not supported" #worksfine in PoSH param ($computer)
Do you have the issue with PowerGUI Admin Console or Script Editor? Do you mean your script works in PowerShell console using the example with variables?
I guess the problem here is in using $computer variable with the following colon symbol (which is treated as scoped variable by PowerShell). Could you try enclosing the variable with $( ) operator like this: