About 443,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. 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 …

  3. 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 …

  4. 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.

  5. 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 …

  6. 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 …

  7. 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:

  8. 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 …

  9. powershell - How to copy only updated or newer files - Stack …

    Feb 7, 2023 · I am trying to create a PowerShell script to copy new and modified files from the source folder to the destination folder. I am able to copy the new file with the given script but …

  10. Powershell: Copy-Item fails without exceptions - Stack Overflow

    Mar 25, 2025 · I use The following powershell code to copy file from a remote machine on the same network to the actual machine where this powershell is executed. The firewall is disabled.