Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How do I effectively copy and paste input and output in the Windows PowerShell?

share|improve this question

3 Answers

up vote 5 down vote accepted
  • 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, right click.
share|improve this answer
This is what I was missing, thanks! To actually copy it is necessary to press Enter. – orschiro Mar 28 '12 at 17:13
It is not necessary for me, but I have quickedit turned on in properties. – EBGreen Mar 28 '12 at 17:20

Powershell functions like most terminal emulators (like PuTTY) - selecting text automatically copies it to your clipboard, and right-clicking pastes the content of your keyboard at your cursor.

share|improve this answer
Hello Rilgon, That was my first intuition but it does not work. Nothing gets copied to the clipboard. – orschiro Mar 28 '12 at 16:55
That's strange, because I definitely just tried it myself just to make sure it was right, and it worked just fine. – Rilgon Arcsinh Mar 28 '12 at 16:55

Try this from the MSDN website: Copy console screen to system clipboard . This its self is a PS script, but it copies what is currently on the window to a file.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.