Created
December 27, 2018 14:18
-
-
Save Himura2la/02d4f2c7c1b7df468567b6fc1ab2fa58 to your computer and use it in GitHub Desktop.
Copy a file from a remote server using PowerShell and WSMan
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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