Open opoplawski opened 9 months ago
@opoplawski looking into the latter error it sounds like we might also need to run Unblock-File on the script? https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0713009
Although I had thought that this wasn't something that would normally happen for files created in this manner 🤔
@opoplawski Can you try the branch from #161 to see if that helps any for the issue you're seeing?
More information about the client machine would be useful, too; this isn't a signing issue exactly, Ansible automatically runs scripts with the execution policy set to Unrestricted, this is something else. The error reminds me a bit of perhaps AppLocker or something of that nature, perhaps?
Checklist
What You Are Seeing?
Trying to do an initial chocolatey install on a Windows 11 Enterprise machine I get:
What is Expected?
Chocolatey is installed
How Did You Get This To Happen?
System Details
Installed Packages
Output Log
Additional Context
I can fix the signing issue by adding
-NoNewline
to theSet-Content
call. But then I get: