Powershell set execution policy problem.
Posted: Thu Jun 13, 2024 7:12 pm
Hey folks! just wondering if anyone has some advice or path forward. I am trying to accomplish 3rd party application package/patch management in our environment.
I notice Chocolatey uses set-execution policy to bypass on a lot of its functionality. My environment has strict policies in place to use only trusted signed scripts. We cannot disable execution policy and any scripts will fail to set the policy as well.
Does anyone know of a way around this. i.e. maybe once chocolatey is installed it functions outside of powershell scripts and is purely command line based? if deploying chocolatey is the only issue I can solve that. Just wanted to see if there are any recommendations of anything that functions outside of this powershell execution policy method.
Thank you!
I notice Chocolatey uses set-execution policy to bypass on a lot of its functionality. My environment has strict policies in place to use only trusted signed scripts. We cannot disable execution policy and any scripts will fail to set the policy as well.
Does anyone know of a way around this. i.e. maybe once chocolatey is installed it functions outside of powershell scripts and is purely command line based? if deploying chocolatey is the only issue I can solve that. Just wanted to see if there are any recommendations of anything that functions outside of this powershell execution policy method.
Thank you!