About 382,000 results
Open links in new tab
  1. Copy file remotely with PowerShell - Stack Overflow

    May 24, 2012 · I am writing a PowerShell script that I want to run from Server A. I want to connect to Server B and copy a file to Server A as a backup. If that can't be done then I would like to …

  2. Is there a single PowerShell command to copy and rename files?

    Jan 21, 2013 · 43 I am using the following command to copy files from a network share to my local hard drive based on a CSV file.

  3. PowerShell Command to Copy File on Remote Machine

    Dec 31, 2014 · I have a requirement to copy file from local machine to remote machine using PowerShell. I can copy the file to remote computer using following command: copy-item -Path …

  4. Recursively copy a set of files from one directory to another in …

    Will copy the Directory, creating a "Trunk" directory in F2. If you want to avoid creating the top-level Trunk folder, you have to stop telling PowerShell to copy it:

  5. Upload file to SFTP using PowerShell - Stack Overflow

    You can have WinSCP generate the PowerShell script for the upload for you: Login to your server with WinSCP GUI; Navigate to the target directory in the remote file panel; Select the file for …

  6. Copy multiple files from one location to another using powershell ...

    Jan 10, 2022 · } PowerShell Trick #2 @AbrahamZinala mentioned using Copy-Item with the -Force parameter to create the directory. Unfortunately it doesn't work. The -Force parameter is …

  7. powershell - Should Copy-Item create the destination directory ...

    Here's a oneliner to do this. Split-Path retrieves the parent folder, New-Item creates it and then Copy-Item copies the file. Please note that the destination file will have the same filename as …

  8. Recursively copy contents of directory and subdirectories in …

    Sep 27, 2022 · Get-ChildItem -Path "sourcefoldername" -Recurse | Copy-Item -Destination "C:\\Users\\username\\destinationfoldername\\" Specifically, files located in …

  9. Powershell to copy files over network - Stack Overflow

    Aug 11, 2015 · Use Copy Item. Robocopy would be cool if you were doing a true mirror, in my experience using copy item is better for most cases in PowerShell. If you want a unique name …

  10. How to use PowerShell copy-item and keep structure

    Forget Copy-Item, it never does what you expect, Invoke-Expression invokes a commandline command and allows for using powershell variables. I use the good-old xcopy command with …