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

Support and questions for using and managing Chocolatey NuGet inside of Labtech
aaroncampbell72
Posts: 33
Joined: Tue Mar 24, 2020 6:59 pm
4

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

Post 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.

User avatar
Cubert
Posts: 2432
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

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

Post 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.

Post Reply

Return to “Chocolatey For Labtech”