Windows 7: Enable Execution of Windows PowerShell Scripts

By default, the execution of PowerShell scripts is disabled in Windows 7. This will prevent you from not only executing any of your own scripts, but also will prevent the Windows PowerShell Modules (located in Administrative Tools in the Control Panel) from working.

1. Click the Orb (Start button).

2. Select All Programs.

3. Select Accessories.

4. Select Windows PowerShell.

5. Right-click the Windows PowerShell shortcut and select Run as administrator.

6. When the UAC window appears, click the Yes button.

7. To change the script execution policy, use the Set-ExecutionPolicy cmdlet. Input Set-ExecutionPolicy unrestricted and press Enter on your keyboard.

8. You will be prompted as to whether you wish to change the execution policy, press Y on your keyboard and press Enter.

9. Script execution is now enabled.

 

About Rob Rogers

Once a prolific author here on Tech-Recipes, Rob has moved on to greener pastures.
View more articles by Rob Rogers

The Conversation

Follow the reactions below and share your own thoughts.

  • xiangxiang

    [url=http://www.mp4converter.jp/wmv-to-ipad-converter-win.html]WMV iPad変換[/url]

  • U3dd

    Thks for your help. It works fine.

  • PaulR

    Thanks from a newbie.

  • Alexander

    When I run this script I get this:
    The term ‘Alert’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At C:\dailybackup.ps1:74 char:6
    + Alert