Thanks. So I turned on Enable Workstations at a client site and it scans the machines fine. When I try to push an app update like Google Chrome I get the following if Chocolatey is not installed:
App Manager Running Agent Update Checks for [Google Chrome]...
The system cannot find the path specified
These are the command entries from last night when it tried to update apps on its own:
0|C:\ProgramData\chocolatey\bin\choco.exe-File or Directory Does Not Exist
cmd.exe!!! /c "@CHOCOEXE@ install jre8 -fy"-'CHOCOEXE@' is not recognized as an internal or external command,
operable program or batch file.
cmd.exe!!! /c "@CHOCOEXE@ install googlechrome -fy"-'CHOCOEXE@' is not recognized as an internal or external command,
operable program or batch file.
cmd.exe!!! /c "@CHOCOEXE@ install dropbox -fy"-'CHOCOEXE@' is not recognized as an internal or external command,
operable program or batch file.
-Software Inventories have been Updated.
And this is the command when I try to upgrade by right clicking:
cmd.exe!!! /c "C:\ProgramData\chocolatey\bin\choco.exe upgrade -fy googlechrome"-The system cannot find the path specified.
If I run the following PowerShell command via Habitat:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('
https://chocolatey.org/install.ps1'))
Here is the output from that command:
Executing -> Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('
https://chocolatey.org/install.ps1'))
.....Getting latest version of the Chocolatey package for download.
Getting Chocolatey from
https://chocolatey.org/api/v2/package/c ... ey/0.10.15.
Downloading 7-Zip commandline tool prior to extraction.
Extracting C:\Windows\TEMP\chocolatey\chocInstall\chocolatey.zip to C:\Windows\TEMP\chocolatey\chocInstall...
Installing chocolatey on this machine
Creating ChocolateyInstall as an environment variable (targeting 'Machine')
Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
WARNING: It's very likely you will need to close and reopen your shell
before you can use choco.
Restricting write permissions to Administrators
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\ProgramData\chocolatey\lib'
(i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'.
I then tell it via Habitat to upgrade Chrome again and it upgrades fine. Text file attached has what it shows on the log area. Looks like it has permissions to C:\Programdata fine?