Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Unable to run Scripts in Windows PowerShell.  (Read 5577 times)

0 Members and 1 Guest are viewing this topic.

Chetan Singh

  • Full Member
  • ***
  • Posts: 123
  • Karma: +2/-0
  • Bienvenido a las Tecnologías de la Admin-Ahead.
    • Admin-Ahead Server Technologies.
Unable to run Scripts in Windows PowerShell.
« on: January 25, 2014, 12:44:24 pm »
Hello,

By default script execution is disabled in PowerShell. This is a security setting that prevents your computer from running PowerShell scripts by default, so that you will (hopefully) learn about the potential security risks of running downloaded scripts and be aware of the potential consequences before you enable running Powershell scripts on your system.

======================================>>>
WARNING: File C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PSDiagnostics\PSDiagnostics.psm1 cannot be loaded
because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.
======================================>>>

To fix this error and enabled script execution, please run following command

Run the command powershell#  Set-ExecutionPolicy RemoteSigned
======================================>>>

Now, try to run script again, it should work this time.

Thank you,

Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!