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?
↧