martomi / chiadog

A watch dog providing a peace in mind that your Chia farm is running smoothly 24/7.
MIT License
457 stars 120 forks source link

Scripts disabled on this system #235

Closed aitorserra closed 3 years ago

aitorserra commented 3 years ago

I'm getting this error, any idea about what it's? Thanks.

C:\Users\aitor\chiadog> . .\venv\Scripts\activate . : No se puede cargar el archivo C:\Users\aitor\chiadog\venv\Scripts\Activate.ps1 porque la ejecución de scripts está deshabilitada en este sistema. Para obtener más información, consulta el tema about_Execution_Policies en https:/go.microsoft.com/fwlink/?LinkID=135170. En línea: 1 Carácter: 3

F1DNA commented 3 years ago

Probably this:

PS C:\Windows\system32> Get-ExecutionPolicy Restricted PS C:\Windows\system32> Set-ExecutionPolicy RemoteSigned

Execution Policy Change The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose you to the security risks described in the about_Execution_Policies help topic at https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): a PS C:\Windows\system32> Get-ExecutionPolicy RemoteSigned PS C:\Windows\system32>

F1DNA commented 3 years ago

If that doesn't work and you want to live dangerously, you can:

Set-ExecutionPolicy Bypass

I don't chia on windows so not sure what policy you actually need here. remotesigned hopefully is what you need

martomi commented 3 years ago

Above suggestions should work, it's the same approach we use in the start.cmd script.