[# POWERSHELL] Enabling execute permissions for PowerShell scripts

Hi,

I am going to sign up for that next time I see this error

   1: C:\>;;powershell.exe -command ./New-Scriptazo.ps1

   2: File C:\\New-Scriptazo.ps1 cannot be loaded because the execution of scripts is disabled on this system.

   3: Please see "get-help about_signing" for more details.

   4: At line:1 char:22

   5:   + ./New-Scriptazo.ps1 <;;<<<

   6:   + CategoryInfo          : NotSpecified: (:) [], PSSecurityException   

   7:   + FullyQualifiedErrorId : RuntimeException

I agree that the sentence from the console of PowerShell to enable executing commands is

   1: Set-ExecutionPolicy RemoteSigned

Brunito ready?

Greetings @ the estate

The Bruno

Source: http://technet.microsoft.com/en-us/library/ee176949.aspx

Advertisements

[#POWERSHELL] Habilitando permisos de ejecución para scripts de PowerShell

Buenas,

me lo voy a apuntar para que la próxima vez que me aparezca este error

   1: C:\>;powershell.exe -command ./New-Scriptazo.ps1

   2: File C:\\New-Scriptazo.ps1 cannot be loaded because the execution of scripts is disabled on this system. 

   3: Please see "get-help about_signing" for more details.

   4: At line:1 char:22

   5: + ./New-Scriptazo.ps1 <;<<<

   6:     + CategoryInfo          : NotSpecified: (:) [], PSSecurityException

   7:     + FullyQualifiedErrorId : RuntimeException

me acuerde que la sentencia desde la consola de PowerShell para habilitar la ejecución de comandos es

   1: Set-ExecutionPolicy RemoteSigned

Listo Brunito???

 

Saludos @ La Finca

El Bruno

   

Fuente: http://technet.microsoft.com/en-us/library/ee176949.aspx