Inicio Soporte Técnico PowerShell – Solución error cannot be loaded because running scripts is disabled...

PowerShell – Solución error cannot be loaded because running scripts is disabled on this system

3102
0

Cuando al momento de  ejecutar un script en PowerShell nos marco el error “cannot be loaded because running scripts is disabled on this system”, esto es por seguridad de nuestro sistema, pero este lo podemos cambiar fácilmente.

Powershell error cannot be loaded because runnig scripts is disabled
Powershell error cannot be loaded because runnig scripts is disabled

Solución:

  • Iniciamos Powershell como Administrador.
  • Ejecutamos el comando:

Set-ExecutionPolicy RemoteSigned

  • Nos pedirá confirmación ponemos Y para SI y damos Enter.
    Solucion error powershell
    Solucion error powershell
  • Una vez ejecutada esta instrucción, ya podremos ejecutar nuestro comando en el cual marcaba el error.
  • Para regresar la protección del sistema si lo deseamos debemos ejecutar:

Set-ExecutionPolicy Restricted

  • Ahora ya regresamos la configuración.

 

Te recomendamos  Actualiza Google Chrome en Windows o Mac