When I log in remotely using PowerShell, I'm placed in a default location:
> Enter-PSSession SERVER
[SERVER]: PS C:\Users\smithe\Documents>
I'd like to copy a folder recursively to this location without having to specify it explicitly, something along the lines of:
> Copy-Item -Path .\LocalFolder -Destination \\SERVER\: -Recurse
Obviously the colon above is the wrong syntax--I'm only using it since that's what one would use using scp
:
scp -r ./LocalFolder server: