Share via

execution of scripts is disabled how do you enable?

Anonymous
2011-04-08T06:44:48+00:00

power shell modual says execution of scripts cant be loaded its disabled

Windows for home | Previous Windows versions | Windows update

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. Anonymous
    2011-04-09T03:36:01+00:00

    Hi,

    This issue usually occurs if you do not run Power shell as an Administrator.

    Try the following steps and check if it helps:

    a)      Right-click your PowerShell icon and select Run as administrator.

    b)      Check the current script execution policy by using the Get-ExecutionPolicy cmdlet. To do this, input “Get-ExecutionPolicy” (without quotes) and press Enter on your keyboard. PowerShell will return a value of Restricted.

    c)       To change the script execution policy, use the Set-ExecutionPolicy cmdlet. Input “Set-ExecutionPolicy unrestricted” (without quotes) and press Enter on your keyboard.

    d)      To ensure that the script execution policy has been changed, use the Get-ExecutionPolicy cmdlet again. PowerShell should return a value of Unrestricted.

    e)      You should now be able to run your PowerShell scripts.

    100+ people found this answer helpful.
    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2012-12-08T15:20:53+00:00

    Hi,

    This issue usually occurs if you do not run Power shell as an Administrator.

    Try the following steps and check if it helps:

    a)      Right-click your PowerShell icon and select Run as administrator.

     

    b)      Check the current script execution policy by using the Get-ExecutionPolicy cmdlet. To do this, input “Get-ExecutionPolicy” (without quotes) and press Enter on your keyboard. PowerShell will return a value of Restricted.

     

    c)       To change the script execution policy, use the Set-ExecutionPolicy cmdlet. Input “Set-ExecutionPolicy unrestricted” (without quotes) and press Enter on your keyboard.

     

    d)      To ensure that the script execution policy has been changed, use the Get-ExecutionPolicy cmdlet again. PowerShell should return a value of Unrestricted.

     

    e)      You should now be able to run your PowerShell scripts.

     

     

    thank you. yes it did work

    4 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2012-07-07T13:19:00+00:00

    the response was cannot bind parameter - cannot convert value cmdlet

    3 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2014-06-06T00:31:40+00:00

    Thank you. Solution still works.

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2012-07-07T13:20:58+00:00

    This did not work for me. I received a response "cannot bind parameter" "cannot convert value cmdlet"

    0 comments No comments