Page 4 of 4

Re: Auto-Install failing. "Access to the path 'C:\ProgramData\chocolatey\lib\"

Posted: Fri Apr 23, 2021 9:15 pm
by aaroncampbell72
I found the solution.
When adding packages to our repository there is an "As Admin" option. If that is selected and credentials are incorrect or not set then the install scripts fails/stops when trying to open an elevated session on the target PC. I re-added packages without selecting "As Admin" and now they're auto-installing.

Re: Auto-Install failing. "Access to the path 'C:\ProgramData\chocolatey\lib\"

Posted: Mon Apr 26, 2021 12:59 pm
by Cubert
Correct,

The As Admin setting expects that you have all the credentials setup for the client in the client configs so that when the LTscript pulls the "admin" user/pass there is something there for it to use that will work on agent.

Otherwise when not checking that box it will use the default user the agent runs as which in most cases is SYSTEM which has all rights needed.