chocolatey / home

The place to start for issues with areas of Chocolatey that are infrastructure related, or really any issues could be started here. There is also choco for the CLI client, Chocolatey GUI for the GUI.
Apache License 2.0
29 stars 10 forks source link

Shims throwing access denied error #223

Closed caveman-dick closed 1 year ago

caveman-dick commented 1 year ago

What You Are Seeing?

After installing cli tools, a lot of the shims that get created throw an access denied error:

Program 'ecs-cli.exe' failed to run: Access is deniedAt line:1 char:1
+ ecs-cli
+ ~~~~~~~.
At line:1 char:1
+ ecs-cli
+ ~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

What is Expected?

The shim calls the target exe successfully.

How Did You Get This To Happen? (Steps to Reproduce)

  1. I installed the package choco install ecs-cli
  2. I then ran this command ecs-cli

System Details

Output Log

Full Log Output

~~~sh 2022-11-23 12:14:36,216 440 [DEBUG] - XmlConfiguration is now operational 2022-11-23 12:14:36,243 440 [DEBUG] - Adding new type 'WebPiService' for type 'ISourceRunner' from assembly 'choco' 2022-11-23 12:14:36,244 440 [DEBUG] - Adding new type 'WindowsFeatureService' for type 'ISourceRunner' from assembly 'choco' 2022-11-23 12:14:36,244 440 [DEBUG] - Adding new type 'CygwinService' for type 'ISourceRunner' from assembly 'choco' 2022-11-23 12:14:36,245 440 [DEBUG] - Adding new type 'PythonService' for type 'ISourceRunner' from assembly 'choco' 2022-11-23 12:14:36,245 440 [DEBUG] - Adding new type 'RubyGemsService' for type 'ISourceRunner' from assembly 'choco' 2022-11-23 12:14:36,246 440 [DEBUG] - Adding new type 'SystemStateValidation' for type 'IValidation' from assembly 'choco' 2022-11-23 12:14:36,314 440 [DEBUG] - Registering new command 'template' in assembly 'choco' 2022-11-23 12:14:36,315 440 [DEBUG] - Registering new command 'upgrade' in assembly 'choco' 2022-11-23 12:14:36,316 440 [DEBUG] - Registering new command 'export' in assembly 'choco' 2022-11-23 12:14:36,317 440 [DEBUG] - Registering new command 'list' in assembly 'choco' 2022-11-23 12:14:36,317 440 [DEBUG] - Registering new command 'info' in assembly 'choco' 2022-11-23 12:14:36,319 440 [DEBUG] - Registering new command 'help' in assembly 'choco' 2022-11-23 12:14:36,320 440 [DEBUG] - Registering new command 'config' in assembly 'choco' 2022-11-23 12:14:36,320 440 [DEBUG] - Registering new command 'features' in assembly 'choco' 2022-11-23 12:14:36,321 440 [DEBUG] - Registering new command 'new' in assembly 'choco' 2022-11-23 12:14:36,321 440 [DEBUG] - Registering new command 'outdated' in assembly 'choco' 2022-11-23 12:14:36,322 440 [DEBUG] - Registering new command 'pack' in assembly 'choco' 2022-11-23 12:14:36,322 440 [DEBUG] - Registering new command 'pin' in assembly 'choco' 2022-11-23 12:14:36,323 440 [DEBUG] - Registering new command 'push' in assembly 'choco' 2022-11-23 12:14:36,323 440 [DEBUG] - Registering new command 'apikey' in assembly 'choco' 2022-11-23 12:14:36,324 440 [DEBUG] - Registering new command 'sources' in assembly 'choco' 2022-11-23 12:14:36,325 440 [DEBUG] - Registering new command 'uninstall' in assembly 'choco' 2022-11-23 12:14:36,325 440 [DEBUG] - Registering new command 'unpackself' in assembly 'choco' 2022-11-23 12:14:36,326 440 [DEBUG] - Registering new command 'install' in assembly 'choco' 2022-11-23 12:14:36,390 440 [INFO ] - ============================================================ 2022-11-23 12:14:36,468 440 [INFO ] - Chocolatey v1.2.0 2022-11-23 12:14:36,473 440 [DEBUG] - Chocolatey is running on Windows v 10.0.19045.0 2022-11-23 12:14:36,476 440 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old". 2022-11-23 12:14:36,478 440 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old". 2022-11-23 12:14:36,484 440 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install ecs-cli --debug --verbose 2022-11-23 12:14:36,486 440 [DEBUG] - Received arguments: install ecs-cli --debug --verbose 2022-11-23 12:14:36,517 440 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage. 2022-11-23 12:14:36,524 440 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers... 2022-11-23 12:14:36,529 440 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed... 2022-11-23 12:14:36,555 440 [DEBUG] - Performing validation checks. 2022-11-23 12:14:36,559 440 [DEBUG] - Global Configuration Validation Checks: 2022-11-23 12:14:36,561 440 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked 2022-11-23 12:14:36,564 440 [DEBUG] - System State Validation Checks: 2022-11-23 12:14:36,567 440 [DEBUG] - Reboot Requirement Checks: 2022-11-23 12:14:36,569 440 [DEBUG] - - Pending Computer Rename = Checked 2022-11-23 12:14:36,571 440 [DEBUG] - - Pending Component Based Servicing = Checked 2022-11-23 12:14:36,572 440 [DEBUG] - - Pending Windows Auto Update = Checked 2022-11-23 12:14:36,573 440 [DEBUG] - - Pending File Rename Operations = Ignored 2022-11-23 12:14:36,574 440 [DEBUG] - - Pending Windows Package Installer = Checked 2022-11-23 12:14:36,575 440 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked 2022-11-23 12:14:36,577 440 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s). 2022-11-23 12:14:36,587 440 [DEBUG] - The source 'https://community.chocolatey.org/api/v2/' evaluated to a 'normal' source type 2022-11-23 12:14:36,589 440 [DEBUG] - NOTE: Hiding sensitive configuration data! Please double and triple check to be sure no sensitive data is shown, especially if copying output to a gist for review. 2022-11-23 12:14:36,595 440 [DEBUG] - Configuration: CommandName='install'| CacheLocation='C:\Users\Richard.Mayes\AppData\Local\Temp\chocolatey'| ContainsLegacyPackageInstalls='True'| CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'| Sources='https://community.chocolatey.org/api/v2/'|SourceType='normal'| Debug='True'|Verbose='True'|Trace='False'|Force='False'|Noop='False'| HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'| QuietOutput='False'|PromptForConfirmation='False'| DisableCompatibilityChecks='False'|AcceptLicense='False'| AllowUnofficialBuild='False'|Input='ecs-cli'|AllVersions='False'| SkipPackageInstallProvider='False'|SkipHookScripts='False'| PackageNames='ecs-cli'|Prerelease='False'|ForceX86='False'| OverrideArguments='False'|NotSilent='False'| ApplyPackageParametersToDependencies='False'| ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'| AllowMultipleVersions='False'|AllowDowngrade='False'| ForceDependencies='False'|PinPackage='False'| Information.PlatformType='Windows'| Information.PlatformVersion='10.0.19045.0'| Information.PlatformName='Windows 10'| Information.ChocolateyVersion='1.2.0.0'| Information.ChocolateyProductVersion='1.2.0'| Information.FullName='choco, Version=1.2.0.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'| Information.Is64BitOperatingSystem='True'| Information.Is64BitProcess='True'|Information.IsInteractive='True'| Information.UserName='Richard.Mayes'| Information.UserDomainName='WFANDCO'| Information.IsUserAdministrator='True'| Information.IsUserSystemAccount='False'| Information.IsUserRemoteDesktop='False'| Information.IsUserRemote='True'| Information.IsProcessElevated='True'| Information.IsLicensedVersion='False'|Information.LicenseType='Foss'| Information.CurrentDirectory='C:\Users\Richard.Mayes'| Features.AutoUninstaller='True'|Features.ChecksumFiles='True'| Features.AllowEmptyChecksums='False'| Features.AllowEmptyChecksumsSecure='True'| Features.FailOnAutoUninstaller='False'| Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'| Features.LogEnvironmentValues='False'|Features.LogWithoutColor='False'| Features.VirusCheck='False'| Features.FailOnInvalidOrMissingLicense='False'| Features.IgnoreInvalidOptionsSwitches='True'| Features.UsePackageExitCodes='True'| Features.UseEnhancedExitCodes='False'| Features.UseFipsCompliantChecksums='False'| Features.ShowNonElevatedWarnings='True'| Features.ShowDownloadProgress='True'| Features.StopOnFirstPackageFailure='False'| Features.UseRememberedArgumentsForUpgrades='False'| Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'| Features.SkipPackageUpgradesWhenNotInstalled='False'| Features.RemovePackageInformationOnUninstall='False'| Features.ExitOnRebootDetected='False'| Features.LogValidationResultsOnWarnings='True'| Features.UsePackageRepositoryOptimizations='True'| ListCommand.LocalOnly='False'|ListCommand.IdOnly='False'| ListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'| ListCommand.Exact='False'|ListCommand.ByIdOnly='False'| ListCommand.ByTagOnly='False'|ListCommand.IdStartsWith='False'| ListCommand.OrderByPopularity='False'|ListCommand.ApprovedOnly='False'| ListCommand.DownloadCacheAvailable='False'| ListCommand.NotBroken='False'| ListCommand.IncludeVersionOverrides='False'| UpgradeCommand.FailOnUnfound='False'| UpgradeCommand.FailOnNotInstalled='False'| UpgradeCommand.NotifyOnlyAvailableUpgrades='False'| UpgradeCommand.ExcludePrerelease='False'| NewCommand.AutomaticPackage='False'| NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'| SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'| SourceCommand.AllowSelfService='False'| SourceCommand.VisibleToAdminsOnly='False'| FeatureCommand.Command='unknown'|ConfigCommand.Command='unknown'| ApiKeyCommand.Remove='False'|PinCommand.Command='unknown'| OutdatedCommand.IgnorePinned='False'| ExportCommand.IncludeVersionNumbers='False'|Proxy.BypassOnLocal='True'| TemplateCommand.Command='unknown'| 2022-11-23 12:14:36,597 440 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _ 2022-11-23 12:14:36,601 440 [INFO ] - Installing the following packages: 2022-11-23 12:14:36,602 440 [INFO ] - ecs-cli 2022-11-23 12:14:36,603 440 [INFO ] - By installing, you accept licenses for the packages. 2022-11-23 12:14:36,676 440 [DEBUG] - Using 'https://community.chocolatey.org/api/v2/'. 2022-11-23 12:14:37,075 440 [DEBUG] - - Supports prereleases? 'True'. 2022-11-23 12:14:37,077 440 [DEBUG] - - Is ServiceBased? 'True'. 2022-11-23 12:14:37,516 440 [DEBUG] - Package 'ecs-cli' found on source 'https://community.chocolatey.org/api/v2/' 2022-11-23 12:14:38,012 440 [INFO ] - [NuGet] Installing 'ecs-cli 1.21.0'. 2022-11-23 12:14:38,019 440 [DEBUG] - [NuGet] Added file 'chocolateyinstall.ps1' to folder 'ecs-cli\tools'. 2022-11-23 12:14:38,023 440 [DEBUG] - [NuGet] Added file 'ecs-cli.nupkg' to folder 'ecs-cli'. 2022-11-23 12:14:38,261 440 [DEBUG] - [NuGet] Added file 'ecs-cli.nuspec' to folder 'ecs-cli'. 2022-11-23 12:14:38,263 440 [INFO ] - [NuGet] Successfully installed 'ecs-cli 1.21.0'. 2022-11-23 12:14:38,266 440 [INFO ] - ecs-cli v1.21.0 [Approved] 2022-11-23 12:14:38,277 440 [INFO ] - ecs-cli package files install completed. Performing other installation steps. 2022-11-23 12:14:38,369 440 [DEBUG] - Setting installer args for ecs-cli 2022-11-23 12:14:38,371 440 [DEBUG] - Setting package parameters for ecs-cli 2022-11-23 12:14:38,373 440 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\ecs-cli\tools\chocolateyinstall.ps1': 2022-11-23 12:14:38,380 440 [DEBUG] - $ErrorActionPreference = 'Stop' $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $url = 'https://amazon-ecs-cli.s3.amazonaws.com/ecs-cli-windows-amd64-latest.exe' $checksum = "062F6E642F80A3073B8FAFA3F0A865C29FBC31C09BB71C0A8F18C8427DA434C4" $packageArgs = @{ packageName = $env:ChocolateyPackageName Url = $url Checksum = $checksum checksumType = 'sha256' FileFullPath = Join-Path $toolsDir "$($env:ChocolateyPackageName).exe" } Get-ChocolateyWebFile @packageArgs 2022-11-23 12:14:38,397 440 [DEBUG] - Calling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\ecs-cli\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '' -preRunHookScripts $null -postRunHookScripts $null'] 2022-11-23 12:14:38,405 440 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-GB, PublicKeyToken=31bf3856ad364e35, requested by '' 2022-11-23 12:14:39,486 440 [DEBUG] - Host version is 5.1.19041.1, PowerShell Version is '5.1.19041.1682' and CLR Version is '4.0.30319.42000'. 2022-11-23 12:14:40,449 440 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'. 2022-11-23 12:14:40,452 440 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'. 2022-11-23 12:14:40,453 440 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'. 2022-11-23 12:14:40,455 440 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'. 2022-11-23 12:14:40,458 440 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'. 2022-11-23 12:14:40,458 440 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'. 2022-11-23 12:14:40,460 440 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'. 2022-11-23 12:14:40,463 440 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'. 2022-11-23 12:14:40,465 440 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'. 2022-11-23 12:14:40,466 440 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'. 2022-11-23 12:14:40,468 440 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'. 2022-11-23 12:14:40,468 440 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'. 2022-11-23 12:14:40,471 440 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'. 2022-11-23 12:14:40,472 440 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'. 2022-11-23 12:14:40,474 440 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'. 2022-11-23 12:14:40,475 440 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'. 2022-11-23 12:14:40,477 440 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'. 2022-11-23 12:14:40,480 440 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'. 2022-11-23 12:14:40,482 440 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'. 2022-11-23 12:14:40,484 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'. 2022-11-23 12:14:40,485 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'. 2022-11-23 12:14:40,486 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'. 2022-11-23 12:14:40,487 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'. 2022-11-23 12:14:40,489 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'. 2022-11-23 12:14:40,490 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'. 2022-11-23 12:14:40,492 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'. 2022-11-23 12:14:40,494 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'. 2022-11-23 12:14:40,496 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'. 2022-11-23 12:14:40,498 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'. 2022-11-23 12:14:40,500 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'. 2022-11-23 12:14:40,502 440 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'. 2022-11-23 12:14:40,503 440 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'. 2022-11-23 12:14:40,505 440 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'. 2022-11-23 12:14:40,507 440 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'. 2022-11-23 12:14:40,509 440 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'. 2022-11-23 12:14:40,509 440 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'. 2022-11-23 12:14:40,512 440 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'. 2022-11-23 12:14:40,514 440 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'. 2022-11-23 12:14:40,516 440 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'. 2022-11-23 12:14:40,518 440 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'. 2022-11-23 12:14:40,519 440 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'. 2022-11-23 12:14:40,526 440 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'. 2022-11-23 12:14:40,529 440 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'. 2022-11-23 12:14:40,531 440 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'. 2022-11-23 12:14:40,533 440 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'. 2022-11-23 12:14:40,535 440 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'. 2022-11-23 12:14:40,537 440 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'. 2022-11-23 12:14:40,538 440 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'. 2022-11-23 12:14:40,540 440 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'. 2022-11-23 12:14:40,542 440 [INFO ] - VERBOSE: Exporting alias 'refreshenv'. 2022-11-23 12:14:40,557 440 [DEBUG] - Loading community extensions 2022-11-23 12:14:40,603 440 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1' 2022-11-23 12:14:40,606 440 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1'. 2022-11-23 12:14:40,677 440 [DEBUG] - Function 'Get-PackageParameters' exists, ignoring export. 2022-11-23 12:14:40,680 440 [DEBUG] - Function 'Get-UninstallRegistryKey' exists, ignoring export. 2022-11-23 12:14:40,683 440 [DEBUG] - Exporting function 'Install-ChocolateyDesktopLink' for backwards compatibility 2022-11-23 12:14:40,690 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'. 2022-11-23 12:14:40,692 440 [DEBUG] - Exporting function 'Write-ChocolateyFailure' for backwards compatibility 2022-11-23 12:14:40,699 440 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'. 2022-11-23 12:14:40,702 440 [DEBUG] - Exporting function 'Write-ChocolateySuccess' for backwards compatibility 2022-11-23 12:14:40,707 440 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'. 2022-11-23 12:14:40,710 440 [DEBUG] - Exporting function 'Write-FileUpdateLog' for backwards compatibility 2022-11-23 12:14:40,715 440 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'. 2022-11-23 12:14:40,736 440 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'. 2022-11-23 12:14:40,739 440 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'. 2022-11-23 12:14:40,741 440 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'. 2022-11-23 12:14:40,743 440 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'. 2022-11-23 12:14:40,753 440 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1' 2022-11-23 12:14:40,756 440 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'. 2022-11-23 12:14:40,823 440 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'. 2022-11-23 12:14:40,826 440 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'. 2022-11-23 12:14:40,829 440 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'. 2022-11-23 12:14:40,831 440 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'. 2022-11-23 12:14:40,832 440 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'. 2022-11-23 12:14:40,834 440 [INFO ] - VERBOSE: Exporting function 'Register-Application'. 2022-11-23 12:14:40,836 440 [INFO ] - VERBOSE: Exporting function 'Remove-Process'. 2022-11-23 12:14:40,837 440 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'. 2022-11-23 12:14:40,839 440 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'. 2022-11-23 12:14:40,840 440 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'. 2022-11-23 12:14:40,841 440 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'. 2022-11-23 12:14:40,842 440 [INFO ] - VERBOSE: Importing function 'Get-WebContent'. 2022-11-23 12:14:40,844 440 [INFO ] - VERBOSE: Importing function 'Register-Application'. 2022-11-23 12:14:40,846 440 [INFO ] - VERBOSE: Importing function 'Remove-Process'. 2022-11-23 12:14:40,848 440 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-dotnetfx\chocolatey-dotnetfx.psm1' 2022-11-23 12:14:40,850 440 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-dotnetfx\chocolatey-dotnetfx.psm1'. 2022-11-23 12:14:40,919 440 [INFO ] - VERBOSE: Exporting function 'Install-DotNetFramework'. 2022-11-23 12:14:40,922 440 [INFO ] - VERBOSE: Exporting function 'Install-DotNetDevPack'. 2022-11-23 12:14:40,924 440 [INFO ] - VERBOSE: Importing function 'Install-DotNetDevPack'. 2022-11-23 12:14:40,927 440 [INFO ] - VERBOSE: Importing function 'Install-DotNetFramework'. 2022-11-23 12:14:40,929 440 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-font-helpers\FontHelp.psm1' 2022-11-23 12:14:40,931 440 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-font-helpers\FontHelp.psm1'. 2022-11-23 12:14:40,979 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFont'. 2022-11-23 12:14:40,982 440 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyFont'. 2022-11-23 12:14:40,984 440 [INFO ] - VERBOSE: Exporting alias 'Add-Font'. 2022-11-23 12:14:40,986 440 [INFO ] - VERBOSE: Exporting alias 'Remove-Font'. 2022-11-23 12:14:40,988 440 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFont'. 2022-11-23 12:14:40,989 440 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyFont'. 2022-11-23 12:14:40,991 440 [INFO ] - VERBOSE: Importing alias 'Add-Font'. 2022-11-23 12:14:40,993 440 [INFO ] - VERBOSE: Importing alias 'Remove-Font'. 2022-11-23 12:14:40,995 440 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-visualstudio\chocolatey-visualstudio.extension.psm1' 2022-11-23 12:14:40,997 440 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-visualstudio\chocolatey-visualstudio.extension.psm1'. 2022-11-23 12:14:41,454 440 [INFO ] - VERBOSE: Exporting function 'Add-VisualStudioComponent'. 2022-11-23 12:14:41,457 440 [INFO ] - VERBOSE: Exporting function 'Add-VisualStudioWorkload'. 2022-11-23 12:14:41,459 440 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstaller'. 2022-11-23 12:14:41,462 440 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstallerHealth'. 2022-11-23 12:14:41,464 440 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstance'. 2022-11-23 12:14:41,466 440 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioVsixInstaller'. 2022-11-23 12:14:41,468 440 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudio'. 2022-11-23 12:14:41,470 440 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudioInstaller'. 2022-11-23 12:14:41,471 440 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudioVsixExtension'. 2022-11-23 12:14:41,474 440 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioComponent'. 2022-11-23 12:14:41,475 440 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioProduct'. 2022-11-23 12:14:41,477 440 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioWorkload'. 2022-11-23 12:14:41,478 440 [INFO ] - VERBOSE: Exporting function 'Uninstall-VisualStudio'. 2022-11-23 12:14:41,480 440 [INFO ] - VERBOSE: Exporting function 'Uninstall-VisualStudioVsixExtension'. 2022-11-23 12:14:41,482 440 [INFO ] - VERBOSE: Importing function 'Add-VisualStudioComponent'. 2022-11-23 12:14:41,484 440 [INFO ] - VERBOSE: Importing function 'Add-VisualStudioWorkload'. 2022-11-23 12:14:41,486 440 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstaller'. 2022-11-23 12:14:41,487 440 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstallerHealth'. 2022-11-23 12:14:41,490 440 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstance'. 2022-11-23 12:14:41,492 440 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioVsixInstaller'. 2022-11-23 12:14:41,494 440 [INFO ] - VERBOSE: Importing function 'Install-VisualStudio'. 2022-11-23 12:14:41,495 440 [INFO ] - VERBOSE: Importing function 'Install-VisualStudioInstaller'. 2022-11-23 12:14:41,497 440 [INFO ] - VERBOSE: Importing function 'Install-VisualStudioVsixExtension'. 2022-11-23 12:14:41,499 440 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioComponent'. 2022-11-23 12:14:41,500 440 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioProduct'. 2022-11-23 12:14:41,502 440 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioWorkload'. 2022-11-23 12:14:41,503 440 [INFO ] - VERBOSE: Importing function 'Uninstall-VisualStudio'. 2022-11-23 12:14:41,505 440 [INFO ] - VERBOSE: Importing function 'Uninstall-VisualStudioVsixExtension'. 2022-11-23 12:14:41,507 440 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1' 2022-11-23 12:14:41,509 440 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'. 2022-11-23 12:14:41,645 440 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'. 2022-11-23 12:14:41,648 440 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'. 2022-11-23 12:14:41,651 440 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'. 2022-11-23 12:14:41,652 440 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'. 2022-11-23 12:14:41,654 440 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'. 2022-11-23 12:14:41,656 440 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'. 2022-11-23 12:14:41,657 440 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'. 2022-11-23 12:14:41,659 440 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'. 2022-11-23 12:14:41,661 440 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'. 2022-11-23 12:14:41,663 440 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'. 2022-11-23 12:14:41,665 440 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'. 2022-11-23 12:14:41,667 440 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'. 2022-11-23 12:14:41,668 440 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'. 2022-11-23 12:14:41,670 440 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'. 2022-11-23 12:14:41,671 440 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'. 2022-11-23 12:14:41,673 440 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'. 2022-11-23 12:14:41,674 440 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'. 2022-11-23 12:14:41,675 440 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'. 2022-11-23 12:14:41,677 440 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'. 2022-11-23 12:14:41,679 440 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'. 2022-11-23 12:14:41,681 440 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'. 2022-11-23 12:14:41,683 440 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'. 2022-11-23 12:14:41,686 440 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'. 2022-11-23 12:14:41,688 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'. 2022-11-23 12:14:41,689 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'. 2022-11-23 12:14:41,693 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'. 2022-11-23 12:14:41,695 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'. 2022-11-23 12:14:41,697 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'. 2022-11-23 12:14:41,700 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'. 2022-11-23 12:14:41,702 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'. 2022-11-23 12:14:41,704 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'. 2022-11-23 12:14:41,706 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'. 2022-11-23 12:14:41,709 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'. 2022-11-23 12:14:41,711 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'. 2022-11-23 12:14:41,713 440 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'. 2022-11-23 12:14:41,715 440 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'. 2022-11-23 12:14:41,717 440 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'. 2022-11-23 12:14:41,720 440 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'. 2022-11-23 12:14:41,723 440 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'. 2022-11-23 12:14:41,725 440 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'. 2022-11-23 12:14:41,727 440 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'. 2022-11-23 12:14:41,729 440 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'. 2022-11-23 12:14:41,731 440 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'. 2022-11-23 12:14:41,733 440 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'. 2022-11-23 12:14:41,736 440 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'. 2022-11-23 12:14:41,739 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'. 2022-11-23 12:14:41,741 440 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'. 2022-11-23 12:14:41,743 440 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'. 2022-11-23 12:14:41,746 440 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'. 2022-11-23 12:14:41,748 440 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'. 2022-11-23 12:14:41,750 440 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'. 2022-11-23 12:14:41,752 440 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'. 2022-11-23 12:14:41,754 440 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'. 2022-11-23 12:14:41,757 440 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'. 2022-11-23 12:14:41,759 440 [INFO ] - VERBOSE: Exporting function 'Register-Application'. 2022-11-23 12:14:41,761 440 [INFO ] - VERBOSE: Exporting function 'Remove-Process'. 2022-11-23 12:14:41,763 440 [INFO ] - VERBOSE: Exporting function 'Install-DotNetDevPack'. 2022-11-23 12:14:41,766 440 [INFO ] - VERBOSE: Exporting function 'Install-DotNetFramework'. 2022-11-23 12:14:41,767 440 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFont'. 2022-11-23 12:14:41,769 440 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyFont'. 2022-11-23 12:14:41,773 440 [INFO ] - VERBOSE: Exporting function 'Add-VisualStudioComponent'. 2022-11-23 12:14:41,775 440 [INFO ] - VERBOSE: Exporting function 'Add-VisualStudioWorkload'. 2022-11-23 12:14:41,777 440 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstaller'. 2022-11-23 12:14:41,779 440 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstallerHealth'. 2022-11-23 12:14:41,781 440 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstance'. 2022-11-23 12:14:41,784 440 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioVsixInstaller'. 2022-11-23 12:14:41,786 440 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudio'. 2022-11-23 12:14:41,788 440 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudioInstaller'. 2022-11-23 12:14:41,790 440 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudioVsixExtension'. 2022-11-23 12:14:41,791 440 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioComponent'. 2022-11-23 12:14:41,793 440 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioProduct'. 2022-11-23 12:14:41,795 440 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioWorkload'. 2022-11-23 12:14:41,797 440 [INFO ] - VERBOSE: Exporting function 'Uninstall-VisualStudio'. 2022-11-23 12:14:41,800 440 [INFO ] - VERBOSE: Exporting function 'Uninstall-VisualStudioVsixExtension'. 2022-11-23 12:14:41,802 440 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'. 2022-11-23 12:14:41,804 440 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'. 2022-11-23 12:14:41,806 440 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'. 2022-11-23 12:14:41,807 440 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'. 2022-11-23 12:14:41,809 440 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'. 2022-11-23 12:14:41,811 440 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'. 2022-11-23 12:14:41,813 440 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'. 2022-11-23 12:14:41,816 440 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'. 2022-11-23 12:14:41,819 440 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'. 2022-11-23 12:14:41,822 440 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'. 2022-11-23 12:14:41,824 440 [INFO ] - VERBOSE: Exporting alias 'refreshenv'. 2022-11-23 12:14:41,826 440 [INFO ] - VERBOSE: Exporting alias 'Add-Font'. 2022-11-23 12:14:41,828 440 [INFO ] - VERBOSE: Exporting alias 'Remove-Font'. 2022-11-23 12:14:41,830 440 [INFO ] - VERBOSE: Importing function 'Add-VisualStudioComponent'. 2022-11-23 12:14:41,833 440 [INFO ] - VERBOSE: Importing function 'Add-VisualStudioWorkload'. 2022-11-23 12:14:41,835 440 [INFO ] - VERBOSE: Importing function 'Format-FileSize'. 2022-11-23 12:14:41,837 440 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'. 2022-11-23 12:14:41,839 440 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'. 2022-11-23 12:14:41,840 440 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'. 2022-11-23 12:14:41,842 440 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyPath'. 2022-11-23 12:14:41,844 440 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'. 2022-11-23 12:14:41,846 440 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'. 2022-11-23 12:14:41,848 440 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'. 2022-11-23 12:14:41,850 440 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'. 2022-11-23 12:14:41,852 440 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'. 2022-11-23 12:14:41,854 440 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'. 2022-11-23 12:14:41,857 440 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'. 2022-11-23 12:14:41,858 440 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'. 2022-11-23 12:14:41,860 440 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'. 2022-11-23 12:14:41,861 440 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'. 2022-11-23 12:14:41,864 440 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'. 2022-11-23 12:14:41,867 440 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'. 2022-11-23 12:14:41,869 440 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'. 2022-11-23 12:14:41,872 440 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'. 2022-11-23 12:14:41,874 440 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstaller'. 2022-11-23 12:14:41,875 440 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstallerHealth'. 2022-11-23 12:14:41,877 440 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstance'. 2022-11-23 12:14:41,880 440 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioVsixInstaller'. 2022-11-23 12:14:41,881 440 [INFO ] - VERBOSE: Importing function 'Get-WebContent'. 2022-11-23 12:14:41,883 440 [INFO ] - VERBOSE: Importing function 'Get-WebFile'. 2022-11-23 12:14:41,886 440 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'. 2022-11-23 12:14:41,887 440 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'. 2022-11-23 12:14:41,889 440 [INFO ] - VERBOSE: Importing function 'Install-BinFile'. 2022-11-23 12:14:41,891 440 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'. 2022-11-23 12:14:41,893 440 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'. 2022-11-23 12:14:41,896 440 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'. 2022-11-23 12:14:41,897 440 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'. 2022-11-23 12:14:41,899 440 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFont'. 2022-11-23 12:14:41,901 440 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'. 2022-11-23 12:14:41,903 440 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'. 2022-11-23 12:14:41,905 440 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'. 2022-11-23 12:14:41,907 440 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'. 2022-11-23 12:14:41,908 440 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'. 2022-11-23 12:14:41,911 440 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'. 2022-11-23 12:14:41,912 440 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'. 2022-11-23 12:14:41,914 440 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'. 2022-11-23 12:14:41,917 440 [INFO ] - VERBOSE: Importing function 'Install-DotNetDevPack'. 2022-11-23 12:14:41,919 440 [INFO ] - VERBOSE: Importing function 'Install-DotNetFramework'. 2022-11-23 12:14:41,920 440 [INFO ] - VERBOSE: Importing function 'Install-VisualStudio'. 2022-11-23 12:14:41,922 440 [INFO ] - VERBOSE: Importing function 'Install-VisualStudioInstaller'. 2022-11-23 12:14:41,924 440 [INFO ] - VERBOSE: Importing function 'Install-VisualStudioVsixExtension'. 2022-11-23 12:14:41,925 440 [INFO ] - VERBOSE: Importing function 'Install-Vsix'. 2022-11-23 12:14:41,927 440 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'. 2022-11-23 12:14:41,929 440 [INFO ] - VERBOSE: Importing function 'Register-Application'. 2022-11-23 12:14:41,931 440 [INFO ] - VERBOSE: Importing function 'Remove-Process'. 2022-11-23 12:14:41,933 440 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioComponent'. 2022-11-23 12:14:41,935 440 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioProduct'. 2022-11-23 12:14:41,937 440 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioWorkload'. 2022-11-23 12:14:41,939 440 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'. 2022-11-23 12:14:41,940 440 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'. 2022-11-23 12:14:41,943 440 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'. 2022-11-23 12:14:41,944 440 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'. 2022-11-23 12:14:41,946 440 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'. 2022-11-23 12:14:41,949 440 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'. 2022-11-23 12:14:41,950 440 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'. 2022-11-23 12:14:41,952 440 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyFont'. 2022-11-23 12:14:41,954 440 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'. 2022-11-23 12:14:41,956 440 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'. 2022-11-23 12:14:41,959 440 [INFO ] - VERBOSE: Importing function 'Uninstall-VisualStudio'. 2022-11-23 12:14:41,961 440 [INFO ] - VERBOSE: Importing function 'Uninstall-VisualStudioVsixExtension'. 2022-11-23 12:14:41,963 440 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'. 2022-11-23 12:14:41,965 440 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'. 2022-11-23 12:14:41,967 440 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'. 2022-11-23 12:14:41,968 440 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'. 2022-11-23 12:14:41,970 440 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'. 2022-11-23 12:14:41,973 440 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'. 2022-11-23 12:14:41,974 440 [INFO ] - VERBOSE: Importing alias 'Add-Font'. 2022-11-23 12:14:41,976 440 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'. 2022-11-23 12:14:41,978 440 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'. 2022-11-23 12:14:41,980 440 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'. 2022-11-23 12:14:41,981 440 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'. 2022-11-23 12:14:41,984 440 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'. 2022-11-23 12:14:41,986 440 [INFO ] - VERBOSE: Importing alias 'refreshenv'. 2022-11-23 12:14:41,988 440 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'. 2022-11-23 12:14:41,990 440 [INFO ] - VERBOSE: Importing alias 'Remove-Font'. 2022-11-23 12:14:41,992 440 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'. 2022-11-23 12:14:42,099 440 [DEBUG] - ---------------------------Script Execution--------------------------- 2022-11-23 12:14:42,105 440 [DEBUG] - Running 'ChocolateyScriptRunner' for ecs-cli v1.21.0 with packageScript 'C:\ProgramData\chocolatey\lib\ecs-cli\tools\chocolateyinstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\ecs-cli', installArguments: '', packageParameters: '', preRunHookScripts: '', postRunHookScripts: '', 2022-11-23 12:14:42,120 440 [DEBUG] - Running package script 'C:\ProgramData\chocolatey\lib\ecs-cli\tools\chocolateyinstall.ps1' 2022-11-23 12:14:42,216 440 [DEBUG] - Running Get-ChocolateyWebFile -checksumType 'sha256' -url 'https://amazon-ecs-cli.s3.amazonaws.com/ecs-cli-windows-amd64-latest.exe' -packageName 'ecs-cli' -fileFullPath 'C:\ProgramData\chocolatey\lib\ecs-cli\tools\ecs-cli.exe' -checksum '062F6E642F80A3073B8FAFA3F0A865C29FBC31C09BB71C0A8F18C8427DA434C4' 2022-11-23 12:14:42,233 440 [DEBUG] - Running Get-OSArchitectureWidth -compare '64' 2022-11-23 12:14:42,246 440 [DEBUG] - CPU is 64 bit 2022-11-23 12:14:42,283 440 [DEBUG] - Running Get-WebHeaders -url 'https://amazon-ecs-cli.s3.amazonaws.com/ecs-cli-windows-amd64-latest.exe' -ErrorAction 'Stop' 2022-11-23 12:14:42,337 440 [DEBUG] - Setting the UserAgent to 'chocolatey command line' 2022-11-23 12:14:42,341 440 [DEBUG] - Request Headers: 2022-11-23 12:14:42,354 440 [DEBUG] - 'Accept':'*/*' 2022-11-23 12:14:42,357 440 [DEBUG] - 'User-Agent':'chocolatey command line' 2022-11-23 12:14:42,870 440 [DEBUG] - Response Headers: 2022-11-23 12:14:42,879 440 [DEBUG] - 'x-amz-id-2':'HJhKO75HuaABYgTgv4Wef3HLPsXxog3B9pxJ+mg59Tu+rkcG14bgEgQuxmw9wevLhRt8sSChgMw=' 2022-11-23 12:14:42,881 440 [DEBUG] - 'x-amz-request-id':'E7AWYK2CYFRZEHSY' 2022-11-23 12:14:42,884 440 [DEBUG] - 'Accept-Ranges':'bytes' 2022-11-23 12:14:42,885 440 [DEBUG] - 'Content-Length':'37588992' 2022-11-23 12:14:42,885 440 [DEBUG] - 'Content-Type':'application/x-msdos-program' 2022-11-23 12:14:42,887 440 [DEBUG] - 'Date':'Wed, 23 Nov 2022 12:15:04 GMT' 2022-11-23 12:14:42,889 440 [DEBUG] - 'ETag':'"35228b3d586df1fd12a10c36abde4d22-5"' 2022-11-23 12:14:42,889 440 [DEBUG] - 'Last-Modified':'Mon, 21 Dec 2020 22:48:54 GMT' 2022-11-23 12:14:42,890 440 [DEBUG] - 'Server':'AmazonS3' 2022-11-23 12:14:42,905 440 [INFO ] - Downloading ecs-cli from 'https://amazon-ecs-cli.s3.amazonaws.com/ecs-cli-windows-amd64-latest.exe' 2022-11-23 12:14:42,936 440 [DEBUG] - Running Get-WebFile -url 'https://amazon-ecs-cli.s3.amazonaws.com/ecs-cli-windows-amd64-latest.exe' -fileName 'C:\ProgramData\chocolatey\lib\ecs-cli\tools\ecs-cli.exe' -options 'System.Collections.Hashtable' 2022-11-23 12:14:42,943 440 [DEBUG] - Setting request timeout to 30000 2022-11-23 12:14:42,945 440 [DEBUG] - Setting read/write timeout to 2700000 2022-11-23 12:14:42,948 440 [DEBUG] - Setting the UserAgent to 'chocolatey command line' 2022-11-23 12:14:43,577 440 [DEBUG] - Downloading https://amazon-ecs-cli.s3.amazonaws.com/ecs-cli-windows-amd64-latest.exe to C:\ProgramData\chocolatey\lib\ecs-cli\tools\ecs-cli.exe 2022-11-23 12:14:50,322 440 [INFO ] - 2022-11-23 12:14:50,325 440 [INFO ] - Download of ecs-cli.exe (35.85 MB) completed. 2022-11-23 12:14:53,347 440 [DEBUG] - No runtime virus checking built into FOSS Chocolatey. Check out Pro/Business - https://chocolatey.org/compare 2022-11-23 12:14:53,350 440 [DEBUG] - Verifying package provided checksum of '062F6E642F80A3073B8FAFA3F0A865C29FBC31C09BB71C0A8F18C8427DA434C4' for 'C:\ProgramData\chocolatey\lib\ecs-cli\tools\ecs-cli.exe'. 2022-11-23 12:14:53,356 440 [DEBUG] - Running Get-ChecksumValid -file 'C:\ProgramData\chocolatey\lib\ecs-cli\tools\ecs-cli.exe' -checksum '062F6E642F80A3073B8FAFA3F0A865C29FBC31C09BB71C0A8F18C8427DA434C4' -checksumType 'sha256' -originalUrl 'https://amazon-ecs-cli.s3.amazonaws.com/ecs-cli-windows-amd64-latest.exe' 2022-11-23 12:14:53,365 440 [DEBUG] - checksum.exe found at 'C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' 2022-11-23 12:14:53,367 440 [DEBUG] - Executing command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="062F6E642F80A3073B8FAFA3F0A865C29FBC31C09BB71C0A8F18C8427DA434C4" -t="sha256" -f="C:\ProgramData\chocolatey\lib\ecs-cli\tools\ecs-cli.exe"] 2022-11-23 12:14:53,664 440 [DEBUG] - Command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="062F6E642F80A3073B8FAFA3F0A865C29FBC31C09BB71C0A8F18C8427DA434C4" -t="sha256" -f="C:\ProgramData\chocolatey\lib\ecs-cli\tools\ecs-cli.exe"] exited with '0'. 2022-11-23 12:14:53,670 440 [INFO ] - C:\ProgramData\chocolatey\lib\ecs-cli\tools\ecs-cli.exe 2022-11-23 12:14:53,677 440 [DEBUG] - ---------------------------------------------------------------------- 2022-11-23 12:14:53,703 440 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\ecs-cli\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '' -preRunHookScripts $null -postRunHookScripts $null'] exited with '0'. 2022-11-23 12:14:53,707 440 [DEBUG] - Calling command ['"C:\WINDOWS\System32\shutdown.exe" /a'] 2022-11-23 12:14:53,770 440 [DEBUG] - Command ['"C:\WINDOWS\System32\shutdown.exe" /a'] exited with '1116' 2022-11-23 12:14:53,869 440 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\ecs-cli' 2022-11-23 12:14:53,872 440 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\ecs-cli\ecs-cli.nupkg' with checksum '884AD7F8520992A26ECEBDF843572BBE' 2022-11-23 12:14:53,875 440 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\ecs-cli\ecs-cli.nuspec' with checksum '0DBD3C0D8E7D5B4A3087CA0CE5B7D769' 2022-11-23 12:14:53,877 440 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\ecs-cli\tools\chocolateyinstall.ps1' with checksum 'FEE17EB5821DED97FC7CFFE24AEED0B4' 2022-11-23 12:14:53,955 440 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\ecs-cli\tools\ecs-cli.exe' with checksum 'D5BE9A3ACC62029A4E7658846F7BCCFC' 2022-11-23 12:14:53,962 440 [DEBUG] - Calling command ['"C:\ProgramData\chocolatey\tools\shimgen.exe" --path="..\\lib\ecs-cli\tools\ecs-cli.exe" --output="C:\ProgramData\chocolatey\bin\ecs-cli.exe" --iconpath="C:\ProgramData\chocolatey\lib\ecs-cli\tools\ecs-cli.exe"'] 2022-11-23 12:14:54,446 440 [DEBUG] - [ShimGen] [WARN ] Could not extract icon from associated program. Using default. Error: 2022-11-23 12:14:54,448 440 [DEBUG] - [ShimGen] Selected Icon is invalid 2022-11-23 12:14:54,652 440 [DEBUG] - [ShimGen] Microsoft (R) Visual C# Compiler version 4.8.4084.0 2022-11-23 12:14:54,654 440 [DEBUG] - [ShimGen] for C# 5 2022-11-23 12:14:54,655 440 [DEBUG] - [ShimGen] Copyright (C) Microsoft Corporation. All rights reserved. 2022-11-23 12:14:54,657 440 [DEBUG] - [ShimGen] This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240 2022-11-23 12:14:54,659 440 [DEBUG] - [ShimGen] ShimGen has successfully created 'C:\ProgramData\chocolatey\bin\ecs-cli.exe' 2022-11-23 12:14:54,665 440 [DEBUG] - Command ['"C:\ProgramData\chocolatey\tools\shimgen.exe" --path="..\\lib\ecs-cli\tools\ecs-cli.exe" --output="C:\ProgramData\chocolatey\bin\ecs-cli.exe" --iconpath="C:\ProgramData\chocolatey\lib\ecs-cli\tools\ecs-cli.exe"'] exited with '0' 2022-11-23 12:14:54,668 440 [INFO ] - ShimGen has successfully created a shim for ecs-cli.exe 2022-11-23 12:14:54,670 440 [DEBUG] - Created: C:\ProgramData\chocolatey\bin\ecs-cli.exe Targeting: C:\ProgramData\chocolatey\lib\ecs-cli\tools\ecs-cli.exe IsGui:False 2022-11-23 12:14:54,693 440 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\ecs-cli.1.21.0\.arguments". 2022-11-23 12:14:54,698 440 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\ecs-cli.1.21.0\.extra". 2022-11-23 12:14:54,699 440 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\ecs-cli.1.21.0\.version". 2022-11-23 12:14:54,701 440 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\ecs-cli.1.21.0\.sxs". 2022-11-23 12:14:54,703 440 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\ecs-cli.1.21.0\.pin". 2022-11-23 12:14:54,708 440 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers... 2022-11-23 12:14:54,711 440 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\ecs-cli\.chocolateyPending". 2022-11-23 12:14:54,714 440 [INFO ] - The install of ecs-cli was successful. 2022-11-23 12:14:54,716 440 [INFO ] - Software install location not explicitly set, it could be in package or default install location of installer. 2022-11-23 12:14:54,718 440 [DEBUG] - Attempting to delete file "C:\Users\Richard.Mayes\AppData\Local\NuGet\Cache\ecs-cli.1.21.0.nupkg". 2022-11-23 12:14:54,728 440 [WARN ] - Chocolatey installed 1/1 packages. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). 2022-11-23 12:14:54,731 440 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers... 2022-11-23 12:14:54,745 440 [DEBUG] - Exiting with 0 ~~~

┆Issue is synchronized with this Gitlab issue by Unito

caveman-dick commented 1 year ago

Ok, so the above command has randomly started working. However, others (docker-compose and 7z) are still causing issues. I've tried uninstalling and reinstalling docker-compose quite a few times but it doesn't seem to help. 😢

caveman-dick commented 1 year ago

And some more info:

I pulled out the shimgen command out of the logs:

&"C:\ProgramData\chocolatey\tools\shimgen.exe" --path="..\\lib\docker-compose\tools\docker-compose.exe" --output="C:\ProgramData\chocolatey\bin\docker-compose.exe"  --iconpath="C:\ProgramData\chocolatey\lib\docker-compose\tools\docker-compose.exe"

which run successfully:

Microsoft (R) Visual C# Compiler version 4.8.4084.0

for C# 5
Copyright (C) Microsoft Corporation. All rights reserved.

This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240

ShimGen has successfully created 'C:\ProgramData\chocolatey\bin\docker-compose.exe'

which then worked once and then started failing again! 😞

image

So this looks like something is locking the files like a virus checker?

caveman-dick commented 1 year ago

Ok, so after spinning up procmon, I've managed to pin-point what the issue is. Everyone's friend, Windows Defender! It's the realtime-scanning that is locking the file, once that was switched off or the bin folder excluded it works fine.

The only issue with this is these settings are controlled by group-policy and (usually) cannot be changed by me. Does anyone have any ideas how this can be resolved without excluding the folder?

pauby commented 1 year ago

Thanks for letting us know this has been resolved. Unfortunately, AV causes issues for all software. I'm not aware of this one coming up before specifically for shims so can't offer any specific help.

I'm going to go ahead and close this, but we can reopen it if necessary.