Thanks, however, there is still an issue with randomly launching the chocolatey installer so all the installs don't launch and all fail at the same time. Each system still shows attempting the install at the same time and then shows a failure. I have attached a screenshot showing this.
- Chocolatey_install_failure.PNG (61.58 KiB) Viewed 4111 times
- Chocolatey_install_failure2.PNG (7.73 KiB) Viewed 4111 times
Below is part of the output from the script log:
Installer returned -> [Exception calling "DownloadFile" with "2" argument(s): "The remote server
returned an error: (429) Too Many Requests."
At C:\Windows\LTSvc\Habitat\AppManage\install.ps1:257 char:5
+ (Get-Downloader $url @ProxyConfiguration).DownloadFile($url, $fil ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : WebException
Microsoft.PowerShell.Archive\Expand-Archive : The path
'C:\Windows\TEMP\chocolatey\chocoInstall\chocolatey.zip' either does not exist
or is not a valid file system path.
At C:\Windows\LTSvc\Habitat\AppManage\install.ps1:515 char:5
+ Microsoft.PowerShell.Archive\Expand-Archive -Path $file -Destinat ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (C:\Windows\TEMP...\chocolatey.
zip:String) [Expand-Archive], InvalidOperationException
+ FullyQualifiedErrorId : ArchiveCmdletPathNotFound,Expand-Archive
& : The term
'C:\Windows\TEMP\chocolatey\chocoInstall\tools\chocolateyInstall.ps1' is not
recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
At C:\Windows\LTSvc\Habitat\AppManage\install.ps1:526 char:3
+ & $chocoInstallPS1
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Windows\TEMP...ateyInstall.p
s1:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Forcing web requests to allow TLS v1.2 (Required for requests to Chocolatey.org)
Getting latest version of the Chocolatey package for download.
Not using proxy.
Getting Chocolatey from
https://community.chocolatey.org/api/v2 ... ey/0.10.15.
Downloading
https://community.chocolatey.org/api/v2 ... ey/0.10.15 to C:\Windows\TEMP\chocolatey\chocoInstall\chocolatey.zip
Not using proxy.
Extracting C:\Windows\TEMP\chocolatey\chocoInstall\chocolatey.zip to C:\Windows\TEMP\chocolatey\chocoInstall
Installing Chocolatey on the local machine
Ensuring Chocolatey commands are on the path
Ensuring chocolatey.nupkg is in the lib folder]