I need to install chocolatey package as windows administrator. Is there a way to achieve this using a puppet agent service?

asked 2017-08-23 15:52:31 -0600

Subhi gravatar image

I have custom chocolatey install/uninstall/modify scripts that create a service in windows. It requires admin privileges to create the windows service. However when puppet agent runs it fails because of a lack of privileges. I can run the chocolatey command directly from powershell prompt (run as administrator). Is there a way to instruct the agent to run choco command as an administrator?

edit retag flag offensive close merge delete