About 169,000 results
Open links in new tab
  1. How to copy text from PowerShell - Super User

    Jun 22, 2011 · 87 Sometimes I want to copy a command from Powershell to paste in a document, or I want to copy the output? How can I select and copy text in Powershell? At least I know a way how to …

  2. Copy and paste in Windows PowerShell - Super User

    Mar 28, 2012 · To select text in PowerShell with the mouse, just select it as usual. To copy the selected text to the clipboard you have to either hit Enter, or right-click. To paste into the PowerShell window, …

  3. How to run windows command shell "copy" from PowerShell?

    Jan 2, 2023 · 1 copy in PowerShell is aliased to Copy-Item which is not the same as the Dos command copy. The follow command works great for large files and is very fast. In my case my powershell …

  4. Recursively copy contents of directory and subdirectories in PowerShell

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

  5. Copy file remotely with PowerShell - Stack Overflow

    May 24, 2012 · 124 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 connect to …

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

    Copy-Item C:\Code\Trunk -Filter *.csproj.user -Destination C:\Code\F2 -Recurse Will copy the Directory, creating a "Trunk" directory in F2. If you want to avoid creating the top-level Trunk folder, you have to …

  7. powershell - Copy (append) multiple files into a single destination ...

    Feb 22, 2022 · As noted by lit in the comments, in PowerShell copy is a built-in alias of the Copy-Item cmdlet, which functions differently from cmd.exe 's internal copy command: As of PowerShell 7.2.1, …

  8. 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 /E so directories …

  9. Powershell command to copy entire folder and contents to a different ...

    Nov 22, 2019 · I have an assignment where I have to write a powershell command on windows server 2019 that copies my documents folder to another folder called backups. my current script looks like …

  10. powershell - copy-item With Alternate Credentials - Stack Overflow

    I have encountered this recently, and in the most recent versions of Powershell there is a new BitsTransfer Module, which allows file transfers using BITS, and supports the use of the -Credential …