chocolatey-community / chocolatey-packages-template

A template to use when setting up to create packages both manual and automatic
Apache License 2.0
83 stars 348 forks source link

setup\au_setup.ps1 cannot be loaded. The file is not digitally signed #30

Closed ericoporto closed 5 years ago

ericoporto commented 5 years ago
.\au_setup.ps1 : File C:\Users\User\git\chocolatey-packages-template\setup\au_setup.ps1 cannot be loaded. The file
C:\Users\User\git\chocolatey-packages-template\setup\au_setup.ps1 is not digitally signed. You cannot run this script
on the current system. For more information about running scripts and setting execution policy, see
about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ .\au_setup.ps1
+ ~~~~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

I get this error.

gep13 commented 5 years ago

@ericoporto if you run Get-ExecutionPolicy on your machine, what does it return?

ferventcoder commented 5 years ago

Closing as stale - The file is not signed, that is correct. It's something you would need to do if you are going to use AU as not much of it is signed IIRC.