Skip to content

Instantly share code, notes, and snippets.

@Himura2la
Created December 27, 2018 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Himura2la/02d4f2c7c1b7df468567b6fc1ab2fa58 to your computer and use it in GitHub Desktop.
Save Himura2la/02d4f2c7c1b7df468567b6fc1ab2fa58 to your computer and use it in GitHub Desktop.
Copy a file from a remote server using PowerShell and WSMan
Copy-Item -FromSession (New-PSSession remote-server-hostname) -Path "C:\DataDir" -Destination "D:\Backpus\DataDir" -Recurse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment