Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am trying to paste powershell script from a website but it doesn't let me right click on powershell console neither "Crtl + V" is working

i downloaded powershell V.1

share|improve this question

4 Answers 4

up vote 0 down vote accepted

When you are surfing the internet and find a PowerShell script that you want to test or eventually save there are several ways to do so. You can copy the contents of the script and save it as a .Ps1 script in notepad or if available download it from the author’s page.

The simplest way to test small PowerShell scripts you find is to use the old copy and paste method as outlined below.

  1. First copy and paste the contents of the PowerShell script to place it in your clipboard buffer.

  2. Then from the PowerShell console right mouse click on the PowerShell icon in the upper left hand corner.

  3. From the context menu click “Edit” and then click “Paste” to execute the script.

Example:

Cat C:\Windows\System32\WindowsPowershell\v1.0\Examples\Profile.ps1

Note: Depending on the script in your clipboard buffer you may have to press “Enter” to execute the script as in the example above.

find it here, Hope it helps :)

enter link description here

share|improve this answer
    
thnx it now working –  tereško Aug 28 '12 at 11:22

yup thats becasue you need to change it to be customised as its not available ootb ;)

just follow this: http://technet.microsoft.com/en-us/library/ee156814.aspx

or use these:

http://technet.microsoft.com/en-us/magazine/ff678293.aspx

Paste:

Alt+Space+P

Copy:

Alt+Space+Y

hope it helps

share|improve this answer
    
i apply it but no working –  tereško Aug 28 '12 at 11:16

Simple way.. Copy the required content.. open the shell > right click > paste :)

share|improve this answer

just use The right click !!! for both copy and paste

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.