Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
wazuh-agent v4.2.7 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-1953236517-242735908-2433092285-500</user>
<keys>
<key installerType="Msi" displayName="Wazuh Agent" displayVersion="4.2.2">
<RegistryView>Registry32</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{DC32A5AC-7AEC-4A24-AB7B-3C789CD379E2}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /X{DC32A5AC-7AEC-4A24-AB7B-3C789CD379E2}]]></UninstallString>
<HasQuietUninstall>false</HasQuietUninstall>
<Publisher><![CDATA[Wazuh, Inc.]]></Publisher>
<InstallDate>20220531</InstallDate>
<InstallSource><![CDATA[C:\Users\Administrator\AppData\Local\Temp\chocolatey\wazuh-agent\4.2.7\]]></InstallSource>
<Language>1033</Language>
<Version>67239938</Version>
<VersionMajor>4</VersionMajor>
<VersionMinor>2</VersionMinor>
<SystemComponent>false</SystemComponent>
<WindowsInstaller>true</WindowsInstaller>
<NoRemove>false</NoRemove>
<NoModify>true</NoModify>
<NoRepair>true</NoRepair>
<ReleaseType />
<ParentKeyName />
<LocalPackage><![CDATA[C:\Windows\Installer\2baec.msi]]></LocalPackage>
</key>
</keys>
</registrySnapshot>

wazuh-agent v4.2.7 - Passed - Package Test Results

  • https://community.chocolatey.org/packages/wazuh-agent/4.2.7
  • Tested 31 May 2022 14:35:42 +00:00
  • Tested against win2012r2x64 (Windows Server 2012 R2 x64)
  • Tested with the latest version of choco, possibly a beta version.
  • Tested with chocolatey-package-verifier service v0.5.0-44-g6af96fb
  • Install was successful.
  • Uninstall was successful.
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\wazuh-agent\wazuh-agent.nupkg" checksum="F776F664A9545B1488835CCEDD822290" />
<file path="C:\ProgramData\chocolatey\lib\wazuh-agent\wazuh-agent.nuspec" checksum="B9CDD32C35BC259FD0B243C240D3170F" />
<file path="C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyinstall.ps1" checksum="53B9993C9DE114CA722766D3C72A30C8" />
<file path="C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyuninstall.ps1" checksum="E64EA2365BF83508C2E5F4D2E40253BB" />
<file path="C:\ProgramData\chocolatey\lib\wazuh-agent\tools\helpers.ps1" checksum="C7DA559B5059ADC05A97BE553DB2573F" />
</files>
</fileSnapshot>
2022-05-31 14:35:10,377 2896 [DEBUG] - XmlConfiguration is now operational
2022-05-31 14:35:10,456 2896 [INFO ] - ============================================================
2022-05-31 14:35:10,783 2896 [INFO ] - Chocolatey v1.1.0
2022-05-31 14:35:10,800 2896 [DEBUG] - Chocolatey is running on Windows v 6.3.9600.0
2022-05-31 14:35:10,800 2896 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2022-05-31 14:35:10,800 2896 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2022-05-31 14:35:10,814 2896 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install wazuh-agent --version 4.2.7 -fdvy --execution-timeout=2700 --allow-downgrade
2022-05-31 14:35:10,814 2896 [DEBUG] - Received arguments: install wazuh-agent --version 4.2.7 -fdvy --execution-timeout=2700 --allow-downgrade
2022-05-31 14:35:10,877 2896 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2022-05-31 14:35:10,892 2896 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2022-05-31 14:35:10,909 2896 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2022-05-31 14:35:10,987 2896 [DEBUG] - Performing validation checks.
2022-05-31 14:35:10,987 2896 [DEBUG] - Global Configuration Validation Checks:
2022-05-31 14:35:11,002 2896 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked
2022-05-31 14:35:11,002 2896 [DEBUG] - System State Validation Checks:
2022-05-31 14:35:11,002 2896 [DEBUG] - Reboot Requirement Checks:
2022-05-31 14:35:11,002 2896 [DEBUG] - - Pending Computer Rename = Checked
2022-05-31 14:35:11,018 2896 [DEBUG] - - Pending Component Based Servicing = Checked
2022-05-31 14:35:11,033 2896 [DEBUG] - - Pending Windows Auto Update = Checked
2022-05-31 14:35:11,049 2896 [DEBUG] - - Pending File Rename Operations = Ignored
2022-05-31 14:35:11,065 2896 [DEBUG] - - Pending Windows Package Installer = Checked
2022-05-31 14:35:11,080 2896 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked
2022-05-31 14:35:11,080 2896 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s).
2022-05-31 14:35:11,080 2896 [DEBUG] - The source 'c:\cached-packages;https://community.chocolatey.org/api/v2/' evaluated to a 'normal' source type
2022-05-31 14:35:11,096 2896 [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-05-31 14:35:11,112 2896 [DEBUG] - Configuration: CommandName='install'|
CacheLocation='C:\Users\Administrator\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='c:\cached-packages;https://community.chocolatey.org/api/v2/'|
SourceType='normal'|Debug='True'|Verbose='True'|Trace='False'|
Force='True'|Noop='False'|HelpRequested='False'|
UnsuccessfulParsing='False'|RegularOutput='True'|QuietOutput='False'|
PromptForConfirmation='False'|DisableCompatibilityChecks='False'|
AcceptLicense='True'|AllowUnofficialBuild='False'|Input='wazuh-agent'|
Version='4.2.7'|AllVersions='False'|SkipPackageInstallProvider='False'|
PackageNames='wazuh-agent'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='True'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='6.3.9600.0'|
Information.PlatformName='Windows Server 2012 R2'|
Information.ChocolateyVersion='1.1.0.0'|
Information.ChocolateyProductVersion='1.1.0'|
Information.FullName='choco, Version=1.1.0.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='vagrant'|
Information.UserDomainName='WIN-E5K8TM30719'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Information.CurrentDirectory='C:\Windows\system32'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='True'|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='False'|
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-05-31 14:35:11,112 2896 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
2022-05-31 14:35:11,127 2896 [INFO ] - Installing the following packages:
2022-05-31 14:35:11,127 2896 [INFO ] - wazuh-agent
2022-05-31 14:35:11,127 2896 [INFO ] - By installing, you accept licenses for the packages.
2022-05-31 14:35:11,127 2896 [DEBUG] - Current environment values (may contain sensitive data):
2022-05-31 14:35:11,143 2896 [DEBUG] - * 'TMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
2022-05-31 14:35:11,143 2896 [DEBUG] - * 'TEMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
2022-05-31 14:35:11,143 2896 [DEBUG] - * 'ChocolateyLastPathUpdate'='132981345551825544' ('User')
2022-05-31 14:35:11,143 2896 [DEBUG] - * 'FP_NO_HOST_CHECK'='NO' ('Machine')
2022-05-31 14:35:11,143 2896 [DEBUG] - * 'USERNAME'='SYSTEM' ('Machine')
2022-05-31 14:35:11,143 2896 [DEBUG] - * 'Path'='C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\ProgramData\chocolatey\bin;' ('Machine')
2022-05-31 14:35:11,143 2896 [DEBUG] - * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine')
2022-05-31 14:35:11,143 2896 [DEBUG] - * 'TMP'='C:\Windows\TEMP' ('Machine')
2022-05-31 14:35:11,159 2896 [DEBUG] - * 'OS'='Windows_NT' ('Machine')
2022-05-31 14:35:11,159 2896 [DEBUG] - * 'windir'='C:\Windows' ('Machine')
2022-05-31 14:35:11,159 2896 [DEBUG] - * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine')
2022-05-31 14:35:11,159 2896 [DEBUG] - * 'TEMP'='C:\Windows\TEMP' ('Machine')
2022-05-31 14:35:11,159 2896 [DEBUG] - * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine')
2022-05-31 14:35:11,159 2896 [DEBUG] - * 'PSModulePath'='C:\Windows\system32\WindowsPowerShell\v1.0\Modules\' ('Machine')
2022-05-31 14:35:11,159 2896 [DEBUG] - * 'NUMBER_OF_PROCESSORS'='1' ('Machine')
2022-05-31 14:35:11,159 2896 [DEBUG] - * 'PROCESSOR_LEVEL'='6' ('Machine')
2022-05-31 14:35:11,175 2896 [DEBUG] - * 'PROCESSOR_IDENTIFIER'='Intel64 Family 6 Model 158 Stepping 13, GenuineIntel' ('Machine')
2022-05-31 14:35:11,175 2896 [DEBUG] - * 'PROCESSOR_REVISION'='9e0d' ('Machine')
2022-05-31 14:35:11,175 2896 [DEBUG] - * 'HOME'='C:\Users\Administrator' ('Machine')
2022-05-31 14:35:11,175 2896 [DEBUG] - * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine')
2022-05-31 14:35:12,783 2896 [INFO ] - [NuGet] Installing 'wazuh-agent 4.2.7'.
2022-05-31 14:35:12,800 2896 [DEBUG] - [NuGet] Added file 'chocolateyinstall.ps1' to folder 'wazuh-agent\tools'.
2022-05-31 14:35:12,800 2896 [DEBUG] - [NuGet] Added file 'chocolateyuninstall.ps1' to folder 'wazuh-agent\tools'.
2022-05-31 14:35:12,800 2896 [DEBUG] - [NuGet] Added file 'helpers.ps1' to folder 'wazuh-agent\tools'.
2022-05-31 14:35:12,814 2896 [DEBUG] - [NuGet] Added file 'wazuh-agent.nupkg' to folder 'wazuh-agent'.
2022-05-31 14:35:13,080 2896 [DEBUG] - [NuGet] Added file 'wazuh-agent.nuspec' to folder 'wazuh-agent'.
2022-05-31 14:35:13,080 2896 [INFO ] - [NuGet] Successfully installed 'wazuh-agent 4.2.7'.
2022-05-31 14:35:13,080 2896 [INFO ] -
wazuh-agent v4.2.7 (forced)
2022-05-31 14:35:13,143 2896 [INFO ] - wazuh-agent package files install completed. Performing other installation steps.
2022-05-31 14:35:13,205 2896 [DEBUG] - Setting installer args for wazuh-agent
2022-05-31 14:35:13,205 2896 [DEBUG] - Setting package parameters for wazuh-agent
2022-05-31 14:35:13,205 2896 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyinstall.ps1':
2022-05-31 14:35:13,222 2896 [DEBUG] - $ErrorActionPreference = 'Stop';
$PackageParameters = Get-PackageParameters
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
Import-Module -Name "$($toolsDir)\helpers.ps1"
$args = ""
if ($PackageParameters['ApplicationFolder']) {
$args = $args + " APPLICATIONFOLDER=" + $PackageParameters['ApplicationFolder']
}
if ($PackageParameters['Manager']) {
$args = $args + " WAZUH_MANAGER=" + $PackageParameters['Manager']
}
if ($PackageParameters['ManagerPort']) {
$args = $args + " WAZUH_MANAGER_PORT=" + $PackageParameters['ManagerPort']
}
if ($PackageParameters['Protocol']) {
$args = $args + " WAZUH_PROTOCOL=" + $PackageParameters['Protocol']
}
if ($PackageParameters['RegistrationServer']) {
$args = $args + " WAZUH_REGISTRATION_SERVER=" + $PackageParameters['RegistrationServer']
}
if ($PackageParameters['RegistrationPort']) {
$args = $args + " WAZUH_REGISTRATION_SERVER=" + $PackageParameters['RegistrationPort']
}
if ($PackageParameters['RegistrationPassword']) {
$args = $args + " WAZUH_REGISTRATION_PASSWORD=" + $PackageParameters['RegistrationPassword']
}
if ($PackageParameters['KeepAliveInterval']) {
$args = $args + " WAZUH_KEEP_ALIVE_INTERVAL=" + $PackageParameters['KeepAliveInterval']
}
if ($PackageParameters['TimeReconnect']) {
$args = $args + " WAZUH_TIME_RECONNECT=" + $PackageParameters['TimeReconnect']
}
if ($PackageParameters['RegistrationCA']) {
$args = $args + " WAZUH_REGISTRATION_CA=" + $PackageParameters['RegistrationCA']
}
if ($PackageParameters['RegistrationCertificate']) {
$args = $args + " WAZUH_REGISTRATION_CERTIFICATE=" + $PackageParameters['RegistrationCertificate']
}
if ($PackageParameters['RegistrationKey']) {
$args = $args + " WAZUH_REGISTRATION_KEY=" + $PackageParameters['RegistrationKey']
}
if ($PackageParameters['AgentName']) {
$args = $args + " WAZUH_AGENT_NAME=" + $PackageParameters['AgentName']
}
if ($PackageParameters['AgentGroup']) {
$args = $args + " WAZUH_AGENT_GROUP=" + $PackageParameters['Group']
}
Write-Output $args
$packageArgs = @{
packageName = $env:ChocolateyPackageName
fileType = 'msi'
url = "https://packages.wazuh.com/4.x/windows/wazuh-agent-4.2.2-1.msi"
checksum = "2ed4f0264bc8da2c02e3175d002f05ffb74a5ee14754c7436b7f7259515033735fd298efbb51690cd4cd93fa40a8c4b760a61437f81838712995d904ab63d00a"
checksumType = 'SHA512'
url64 = "https://packages.wazuh.com/4.x/windows/wazuh-agent-4.2.2-1.msi"
checksum64 = "2ed4f0264bc8da2c02e3175d002f05ffb74a5ee14754c7436b7f7259515033735fd298efbb51690cd4cd93fa40a8c4b760a61437f81838712995d904ab63d00a"
checksumType64 = 'SHA512'
silentArgs = "$($args) /q"
ValidExitCodes = @(0, 1000, 1101)
}
Install-ChocolateyPackage @packageArgs
if ($PackageParameters.CleanStartmenu) {
Remove-FileItem `
-Path "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OSSEC"
}
2022-05-31 14:35:13,299 2896 [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\wazuh-agent\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters ''']
2022-05-31 14:35:13,314 2896 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2022-05-31 14:35:13,643 2896 [DEBUG] - Host version is 4.0, PowerShell Version is '4.0' and CLR Version is '4.0.30319.34014'.
2022-05-31 14:35:13,784 2896 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2022-05-31 14:35:13,784 2896 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2022-05-31 14:35:13,799 2896 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2022-05-31 14:35:13,799 2896 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2022-05-31 14:35:13,799 2896 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2022-05-31 14:35:13,799 2896 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2022-05-31 14:35:13,814 2896 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2022-05-31 14:35:13,814 2896 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2022-05-31 14:35:13,814 2896 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2022-05-31 14:35:13,814 2896 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2022-05-31 14:35:13,814 2896 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2022-05-31 14:35:13,814 2896 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2022-05-31 14:35:13,814 2896 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2022-05-31 14:35:13,830 2896 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2022-05-31 14:35:13,830 2896 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2022-05-31 14:35:13,830 2896 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2022-05-31 14:35:13,830 2896 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2022-05-31 14:35:13,830 2896 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2022-05-31 14:35:13,830 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2022-05-31 14:35:13,846 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2022-05-31 14:35:13,846 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2022-05-31 14:35:13,846 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2022-05-31 14:35:13,846 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2022-05-31 14:35:13,846 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2022-05-31 14:35:13,862 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2022-05-31 14:35:13,862 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2022-05-31 14:35:13,862 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2022-05-31 14:35:13,862 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2022-05-31 14:35:13,862 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2022-05-31 14:35:13,877 2896 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2022-05-31 14:35:13,877 2896 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2022-05-31 14:35:13,877 2896 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2022-05-31 14:35:13,877 2896 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2022-05-31 14:35:13,877 2896 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2022-05-31 14:35:13,877 2896 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2022-05-31 14:35:13,892 2896 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2022-05-31 14:35:13,892 2896 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2022-05-31 14:35:13,892 2896 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2022-05-31 14:35:13,908 2896 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2022-05-31 14:35:13,924 2896 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2022-05-31 14:35:13,924 2896 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2022-05-31 14:35:13,924 2896 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2022-05-31 14:35:13,924 2896 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2022-05-31 14:35:13,924 2896 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2022-05-31 14:35:13,924 2896 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2022-05-31 14:35:13,939 2896 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2022-05-31 14:35:13,939 2896 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2022-05-31 14:35:13,939 2896 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2022-05-31 14:35:13,939 2896 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2022-05-31 14:35:13,955 2896 [DEBUG] - Loading community extensions
2022-05-31 14:35:13,971 2896 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
2022-05-31 14:35:13,971 2896 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
2022-05-31 14:35:14,002 2896 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2022-05-31 14:35:14,018 2896 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2022-05-31 14:35:14,018 2896 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2022-05-31 14:35:14,033 2896 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2022-05-31 14:35:14,033 2896 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2022-05-31 14:35:14,033 2896 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2022-05-31 14:35:14,033 2896 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2022-05-31 14:35:14,033 2896 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2022-05-31 14:35:14,033 2896 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2022-05-31 14:35:14,049 2896 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2022-05-31 14:35:14,049 2896 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2022-05-31 14:35:14,049 2896 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2022-05-31 14:35:14,049 2896 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2022-05-31 14:35:14,049 2896 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2022-05-31 14:35:14,049 2896 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2022-05-31 14:35:14,065 2896 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2022-05-31 14:35:14,065 2896 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2022-05-31 14:35:14,065 2896 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2022-05-31 14:35:14,065 2896 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2022-05-31 14:35:14,065 2896 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2022-05-31 14:35:14,065 2896 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2022-05-31 14:35:14,065 2896 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2022-05-31 14:35:14,080 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2022-05-31 14:35:14,080 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2022-05-31 14:35:14,080 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2022-05-31 14:35:14,080 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2022-05-31 14:35:14,080 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2022-05-31 14:35:14,080 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2022-05-31 14:35:14,096 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2022-05-31 14:35:14,096 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2022-05-31 14:35:14,096 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2022-05-31 14:35:14,096 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2022-05-31 14:35:14,096 2896 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2022-05-31 14:35:14,096 2896 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2022-05-31 14:35:14,111 2896 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2022-05-31 14:35:14,111 2896 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2022-05-31 14:35:14,111 2896 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2022-05-31 14:35:14,111 2896 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2022-05-31 14:35:14,111 2896 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2022-05-31 14:35:14,111 2896 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2022-05-31 14:35:14,111 2896 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2022-05-31 14:35:14,127 2896 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2022-05-31 14:35:14,143 2896 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2022-05-31 14:35:14,143 2896 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2022-05-31 14:35:14,143 2896 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2022-05-31 14:35:14,143 2896 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2022-05-31 14:35:14,143 2896 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2022-05-31 14:35:14,143 2896 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2022-05-31 14:35:14,158 2896 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2022-05-31 14:35:14,158 2896 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2022-05-31 14:35:14,158 2896 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2022-05-31 14:35:14,158 2896 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2022-05-31 14:35:14,158 2896 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2022-05-31 14:35:14,158 2896 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2022-05-31 14:35:14,174 2896 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2022-05-31 14:35:14,174 2896 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2022-05-31 14:35:14,174 2896 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2022-05-31 14:35:14,174 2896 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2022-05-31 14:35:14,174 2896 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2022-05-31 14:35:14,174 2896 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2022-05-31 14:35:14,189 2896 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2022-05-31 14:35:14,189 2896 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2022-05-31 14:35:14,189 2896 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2022-05-31 14:35:14,189 2896 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2022-05-31 14:35:14,189 2896 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2022-05-31 14:35:14,189 2896 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2022-05-31 14:35:14,189 2896 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2022-05-31 14:35:14,205 2896 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2022-05-31 14:35:14,205 2896 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2022-05-31 14:35:14,205 2896 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2022-05-31 14:35:14,205 2896 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2022-05-31 14:35:14,205 2896 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2022-05-31 14:35:14,205 2896 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2022-05-31 14:35:14,221 2896 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2022-05-31 14:35:14,221 2896 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2022-05-31 14:35:14,221 2896 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2022-05-31 14:35:14,221 2896 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2022-05-31 14:35:14,221 2896 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2022-05-31 14:35:14,221 2896 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2022-05-31 14:35:14,236 2896 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2022-05-31 14:35:14,252 2896 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2022-05-31 14:35:14,252 2896 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2022-05-31 14:35:14,252 2896 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2022-05-31 14:35:14,252 2896 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2022-05-31 14:35:14,252 2896 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2022-05-31 14:35:14,268 2896 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2022-05-31 14:35:14,268 2896 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2022-05-31 14:35:14,268 2896 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2022-05-31 14:35:14,268 2896 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2022-05-31 14:35:14,268 2896 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2022-05-31 14:35:14,268 2896 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2022-05-31 14:35:14,268 2896 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2022-05-31 14:35:14,284 2896 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2022-05-31 14:35:14,284 2896 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2022-05-31 14:35:14,284 2896 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2022-05-31 14:35:14,284 2896 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2022-05-31 14:35:14,284 2896 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2022-05-31 14:35:14,284 2896 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2022-05-31 14:35:14,299 2896 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2022-05-31 14:35:14,299 2896 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2022-05-31 14:35:14,299 2896 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2022-05-31 14:35:14,299 2896 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2022-05-31 14:35:14,299 2896 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2022-05-31 14:35:14,299 2896 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2022-05-31 14:35:14,299 2896 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2022-05-31 14:35:14,315 2896 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2022-05-31 14:35:14,362 2896 [DEBUG] - ---------------------------Script Execution---------------------------
2022-05-31 14:35:14,392 2896 [DEBUG] - Running 'ChocolateyScriptRunner' for wazuh-agent v4.2.7 with packageScript 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyinstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\wazuh-agent', installArguments: '', packageParameters: '',
2022-05-31 14:35:14,408 2896 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyinstall.ps1'
2022-05-31 14:35:14,440 2896 [DEBUG] - Running Get-PackageParameters
2022-05-31 14:35:14,440 2896 [DEBUG] - Parsing $env:ChocolateyPackageParameters and $env:ChocolateyPackageParametersSensitive for parameters
2022-05-31 14:35:14,455 2896 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\helpers.ps1'.
2022-05-31 14:35:14,455 2896 [INFO ] - VERBOSE: Dot-sourcing the script file 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\helpers.ps1'.
2022-05-31 14:35:14,471 2896 [INFO ] -
2022-05-31 14:35:14,534 2896 [DEBUG] - Running Install-ChocolateyPackage -url 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.2.2-1.msi' -checksum '2ed4f0264bc8da2c02e3175d002f05ffb74a5ee14754c7436b7f7259515033735fd298efbb51690cd4cd93fa40a8c4b760a61437f81838712995d904ab63d00a' -checksum64 '2ed4f0264bc8da2c02e3175d002f05ffb74a5ee14754c7436b7f7259515033735fd298efbb51690cd4cd93fa40a8c4b760a61437f81838712995d904ab63d00a' -silentArgs ' /q' -packageName 'wazuh-agent' -checksumType 'SHA512' -fileType 'msi' -validExitCodes '0 1000 1101' -checksumType64 'SHA512' -url64bit 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.2.2-1.msi'
2022-05-31 14:35:14,627 2896 [DEBUG] - Running Get-ChocolateyWebFile -packageName 'wazuh-agent' -fileFullPath 'C:\Users\Administrator\AppData\Local\Temp\chocolatey\wazuh-agent\4.2.7\wazuh-agentInstall.msi' -url 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.2.2-1.msi' -url64bit 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.2.2-1.msi' -checksum '2ed4f0264bc8da2c02e3175d002f05ffb74a5ee14754c7436b7f7259515033735fd298efbb51690cd4cd93fa40a8c4b760a61437f81838712995d904ab63d00a' -checksumType 'SHA512' -checksum64 '2ed4f0264bc8da2c02e3175d002f05ffb74a5ee14754c7436b7f7259515033735fd298efbb51690cd4cd93fa40a8c4b760a61437f81838712995d904ab63d00a' -checksumType64 'SHA512' -options 'System.Collections.Hashtable' -getOriginalFileName 'True'
2022-05-31 14:35:14,643 2896 [DEBUG] - Running Get-ProcessorBits -compare '64'
2022-05-31 14:35:14,674 2896 [DEBUG] - CPU is 64 bit
2022-05-31 14:35:14,674 2896 [DEBUG] - Setting url to 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.2.2-1.msi' and bitPackage to 64
2022-05-31 14:35:14,706 2896 [DEBUG] - Running Get-WebFileName -url 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.2.2-1.msi' -defaultName 'wazuh-agentInstall.msi'
2022-05-31 14:35:15,517 2896 [DEBUG] - Using response url to determine file name. 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.2.2-1.msi'
2022-05-31 14:35:15,534 2896 [DEBUG] - File name determined from url is 'wazuh-agent-4.2.2-1.msi'
2022-05-31 14:35:15,549 2896 [DEBUG] - Running Get-WebHeaders -url 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.2.2-1.msi' -ErrorAction 'Stop'
2022-05-31 14:35:15,549 2896 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2022-05-31 14:35:15,549 2896 [DEBUG] - Request Headers:
2022-05-31 14:35:15,565 2896 [DEBUG] - 'Accept':'*/*'
2022-05-31 14:35:15,565 2896 [DEBUG] - 'User-Agent':'chocolatey command line'
2022-05-31 14:35:15,955 2896 [DEBUG] - Response Headers:
2022-05-31 14:35:15,955 2896 [DEBUG] - 'Connection':'keep-alive'
2022-05-31 14:35:15,955 2896 [DEBUG] - 'x-amz-version-id':'UIQ46IOwiONeLMHuTzY55d037SZRbR7B'
2022-05-31 14:35:15,955 2896 [DEBUG] - 'X-Cache':'Miss from cloudfront'
2022-05-31 14:35:15,955 2896 [DEBUG] - 'X-Amz-Cf-Pop':'DFW53-C1'
2022-05-31 14:35:15,971 2896 [DEBUG] - 'X-Amz-Cf-Id':'_HEwpIn_YWJVXrGvIn2sCLLEUejiPLHDkOplyLj8oAEEg4sKYvJWng=='
2022-05-31 14:35:15,971 2896 [DEBUG] - 'Accept-Ranges':'bytes'
2022-05-31 14:35:15,971 2896 [DEBUG] - 'Content-Length':'5324800'
2022-05-31 14:35:15,971 2896 [DEBUG] - 'Content-Type':'binary/octet-stream'
2022-05-31 14:35:15,971 2896 [DEBUG] - 'Date':'Tue, 31 May 2022 14:35:16 GMT'
2022-05-31 14:35:15,971 2896 [DEBUG] - 'ETag':'"80afe08653c51b1da79535334f87c516"'
2022-05-31 14:35:15,987 2896 [DEBUG] - 'Last-Modified':'Tue, 28 Sep 2021 08:09:35 GMT'
2022-05-31 14:35:15,987 2896 [DEBUG] - 'Server':'AmazonS3'
2022-05-31 14:35:15,987 2896 [DEBUG] - 'Via':'1.1 4a1233fa0e4a8dfe989f355fdbeb9b14.cloudfront.net (CloudFront)'
2022-05-31 14:35:15,987 2896 [INFO ] - Downloading wazuh-agent 64 bit
from 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.2.2-1.msi'
2022-05-31 14:35:16,002 2896 [INFO ] -
2022-05-31 14:35:16,034 2896 [DEBUG] - Running Get-WebFile -url 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.2.2-1.msi' -fileName 'C:\Users\Administrator\AppData\Local\Temp\chocolatey\wazuh-agent\4.2.7\wazuh-agent-4.2.2-1.msi' -options 'System.Collections.Hashtable'
2022-05-31 14:35:16,034 2896 [DEBUG] - Setting request timeout to 30000
2022-05-31 14:35:16,034 2896 [DEBUG] - Setting read/write timeout to 2700000
2022-05-31 14:35:16,034 2896 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2022-05-31 14:35:16,565 2896 [DEBUG] - Downloading https://packages.wazuh.com/4.x/windows/wazuh-agent-4.2.2-1.msi to C:\Users\Administrator\AppData\Local\Temp\chocolatey\wazuh-agent\4.2.7\wazuh-agent-4.2.2-1.msi
2022-05-31 14:35:17,033 2896 [INFO ] -
2022-05-31 14:35:17,033 2896 [INFO ] - Download of wazuh-agent-4.2.2-1.msi (5.08 MB) completed.
2022-05-31 14:35:17,033 2896 [INFO ] -
2022-05-31 14:35:20,064 2896 [DEBUG] - No runtime virus checking built into FOSS Chocolatey. Check out Pro/Business - https://chocolatey.org/compare
2022-05-31 14:35:20,064 2896 [DEBUG] - Verifying package provided checksum of '2ed4f0264bc8da2c02e3175d002f05ffb74a5ee14754c7436b7f7259515033735fd298efbb51690cd4cd93fa40a8c4b760a61437f81838712995d904ab63d00a' for 'C:\Users\Administrator\AppData\Local\Temp\chocolatey\wazuh-agent\4.2.7\wazuh-agent-4.2.2-1.msi'.
2022-05-31 14:35:20,080 2896 [DEBUG] - Running Get-ChecksumValid -file 'C:\Users\Administrator\AppData\Local\Temp\chocolatey\wazuh-agent\4.2.7\wazuh-agent-4.2.2-1.msi' -checksum '2ed4f0264bc8da2c02e3175d002f05ffb74a5ee14754c7436b7f7259515033735fd298efbb51690cd4cd93fa40a8c4b760a61437f81838712995d904ab63d00a' -checksumType 'SHA512' -originalUrl 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.2.2-1.msi'
2022-05-31 14:35:20,080 2896 [DEBUG] - checksum.exe found at 'C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe'
2022-05-31 14:35:20,080 2896 [DEBUG] - Executing command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="2ed4f0264bc8da2c02e3175d002f05ffb74a5ee14754c7436b7f7259515033735fd298efbb51690cd4cd93fa40a8c4b760a61437f81838712995d904ab63d00a" -t="SHA512" -f="C:\Users\Administrator\AppData\Local\Temp\chocolatey\wazuh-agent\4.2.7\wazuh-agent-4.2.2-1.msi"]
2022-05-31 14:35:20,190 2896 [DEBUG] - Command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="2ed4f0264bc8da2c02e3175d002f05ffb74a5ee14754c7436b7f7259515033735fd298efbb51690cd4cd93fa40a8c4b760a61437f81838712995d904ab63d00a" -t="SHA512" -f="C:\Users\Administrator\AppData\Local\Temp\chocolatey\wazuh-agent\4.2.7\wazuh-agent-4.2.2-1.msi"] exited with '0'.
2022-05-31 14:35:20,220 2896 [DEBUG] - Running Install-ChocolateyInstallPackage -packageName 'wazuh-agent' -fileType 'msi' -silentArgs ' /q' -file 'C:\Users\Administrator\AppData\Local\Temp\chocolatey\wazuh-agent\4.2.7\wazuh-agent-4.2.2-1.msi' -validExitCodes '0 1000 1101' -useOnlyPackageSilentArguments 'False'
2022-05-31 14:35:20,220 2896 [DEBUG] - Running Get-ProcessorBits -compare '32'
2022-05-31 14:35:20,237 2896 [INFO ] - Installing wazuh-agent...
2022-05-31 14:35:20,237 2896 [INFO ] -
2022-05-31 14:35:20,283 2896 [DEBUG] - Running Start-ChocolateyProcessAsAdmin -validExitCodes '0 1000 1101' -workingDirectory 'C:\Users\Administrator\AppData\Local\Temp\chocolatey\wazuh-agent\4.2.7' -statements '/i "C:\Users\Administrator\AppData\Local\Temp\chocolatey\wazuh-agent\4.2.7\wazuh-agent-4.2.2-1.msi" /q ' -exeToRun 'C:\Windows\System32\msiexec.exe'
2022-05-31 14:35:20,314 2896 [DEBUG] - Test-ProcessAdminRights: returning True
2022-05-31 14:35:20,330 2896 [DEBUG] - Elevating permissions and running ["C:\Windows\System32\msiexec.exe" /i "C:\Users\Administrator\AppData\Local\Temp\chocolatey\wazuh-agent\4.2.7\wazuh-agent-4.2.2-1.msi" /q ]. This may take a while, depending on the statements.
2022-05-31 14:35:22,143 2896 [DEBUG] - Command ["C:\Windows\System32\msiexec.exe" /i "C:\Users\Administrator\AppData\Local\Temp\chocolatey\wazuh-agent\4.2.7\wazuh-agent-4.2.2-1.msi" /q ] exited with '0'.
2022-05-31 14:35:22,159 2896 [DEBUG] - Finishing 'Start-ChocolateyProcessAsAdmin'
2022-05-31 14:35:22,159 2896 [INFO ] - wazuh-agent has been installed.
2022-05-31 14:35:22,159 2896 [INFO ] -
2022-05-31 14:35:22,190 2896 [DEBUG] - ----------------------------------------------------------------------
2022-05-31 14:35:22,206 2896 [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\wazuh-agent\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '''] exited with '0'.
2022-05-31 14:35:22,220 2896 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2022-05-31 14:35:22,252 2896 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2022-05-31 14:35:22,268 2896 [INFO ] - wazuh-agent may be able to be automatically uninstalled.
2022-05-31 14:35:22,346 2896 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\wazuh-agent'
2022-05-31 14:35:22,346 2896 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\wazuh-agent\wazuh-agent.nupkg'
with checksum 'F776F664A9545B1488835CCEDD822290'
2022-05-31 14:35:22,346 2896 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\wazuh-agent\wazuh-agent.nuspec'
with checksum 'B9CDD32C35BC259FD0B243C240D3170F'
2022-05-31 14:35:22,362 2896 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyinstall.ps1'
with checksum '53B9993C9DE114CA722766D3C72A30C8'
2022-05-31 14:35:22,362 2896 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyuninstall.ps1'
with checksum 'E64EA2365BF83508C2E5F4D2E40253BB'
2022-05-31 14:35:22,362 2896 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\helpers.ps1'
with checksum 'C7DA559B5059ADC05A97BE553DB2573F'
2022-05-31 14:35:22,393 2896 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\wazuh-agent.4.2.7".
2022-05-31 14:35:22,424 2896 [DEBUG] - There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\wazuh-agent.4.2.7\.registry'
2022-05-31 14:35:22,440 2896 [DEBUG] - There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\wazuh-agent.4.2.7\.files'
2022-05-31 14:35:22,440 2896 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\wazuh-agent.4.2.7\.extra".
2022-05-31 14:35:22,440 2896 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\wazuh-agent.4.2.7\.version".
2022-05-31 14:35:22,455 2896 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\wazuh-agent.4.2.7\.sxs".
2022-05-31 14:35:22,471 2896 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\wazuh-agent.4.2.7\.pin".
2022-05-31 14:35:22,471 2896 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2022-05-31 14:35:22,471 2896 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\wazuh-agent\.chocolateyPending".
2022-05-31 14:35:22,471 2896 [INFO ] - The install of wazuh-agent was successful.
2022-05-31 14:35:22,487 2896 [INFO ] - Software installed as 'msi', install location is likely default.
2022-05-31 14:35:22,487 2896 [DEBUG] - Attempting to delete file "C:\Users\Administrator\AppData\Local\NuGet\Cache\wazuh-agent.4.2.7.nupkg".
2022-05-31 14:35:22,503 2896 [WARN ] -
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2022-05-31 14:35:22,503 2896 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2022-05-31 14:35:22,534 2896 [DEBUG] - Exiting with 0
2022-05-31 14:35:33,205 2880 [DEBUG] - XmlConfiguration is now operational
2022-05-31 14:35:33,284 2880 [INFO ] - ============================================================
2022-05-31 14:35:33,690 2880 [INFO ] - Chocolatey v1.1.0
2022-05-31 14:35:33,705 2880 [DEBUG] - Chocolatey is running on Windows v 6.3.9600.0
2022-05-31 14:35:33,721 2880 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2022-05-31 14:35:33,721 2880 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2022-05-31 14:35:33,737 2880 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" uninstall wazuh-agent --version 4.2.7 -dvy --execution-timeout=2700
2022-05-31 14:35:33,752 2880 [DEBUG] - Received arguments: uninstall wazuh-agent --version 4.2.7 -dvy --execution-timeout=2700
2022-05-31 14:35:33,830 2880 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2022-05-31 14:35:33,830 2880 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2022-05-31 14:35:33,846 2880 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2022-05-31 14:35:33,924 2880 [DEBUG] - Performing validation checks.
2022-05-31 14:35:33,941 2880 [DEBUG] - Global Configuration Validation Checks:
2022-05-31 14:35:33,941 2880 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked
2022-05-31 14:35:33,941 2880 [DEBUG] - System State Validation Checks:
2022-05-31 14:35:33,955 2880 [DEBUG] - Reboot Requirement Checks:
2022-05-31 14:35:33,955 2880 [DEBUG] - - Pending Computer Rename = Checked
2022-05-31 14:35:33,955 2880 [DEBUG] - - Pending Component Based Servicing = Checked
2022-05-31 14:35:33,971 2880 [DEBUG] - - Pending Windows Auto Update = Checked
2022-05-31 14:35:33,971 2880 [DEBUG] - - Pending File Rename Operations = Ignored
2022-05-31 14:35:33,971 2880 [DEBUG] - - Pending Windows Package Installer = Checked
2022-05-31 14:35:33,971 2880 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked
2022-05-31 14:35:33,987 2880 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s).
2022-05-31 14:35:33,987 2880 [DEBUG] - The source 'c:\cached-packages;https://community.chocolatey.org/api/v2/' evaluated to a 'normal' source type
2022-05-31 14:35:34,002 2880 [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-05-31 14:35:34,018 2880 [DEBUG] - Configuration: CommandName='uninstall'|
CacheLocation='C:\Users\Administrator\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='c:\cached-packages;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='True'|AllowUnofficialBuild='False'|Input='wazuh-agent'|
Version='4.2.7'|AllVersions='False'|SkipPackageInstallProvider='False'|
PackageNames='wazuh-agent'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='6.3.9600.0'|
Information.PlatformName='Windows Server 2012 R2'|
Information.ChocolateyVersion='1.1.0.0'|
Information.ChocolateyProductVersion='1.1.0'|
Information.FullName='choco, Version=1.1.0.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='vagrant'|
Information.UserDomainName='WIN-E5K8TM30719'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Information.CurrentDirectory='C:\Windows\system32'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='True'|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='False'|
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-05-31 14:35:34,018 2880 [DEBUG] - _ Chocolatey:ChocolateyUninstallCommand - Normal Run Mode _
2022-05-31 14:35:34,034 2880 [INFO ] - Uninstalling the following packages:
2022-05-31 14:35:34,034 2880 [INFO ] - wazuh-agent
2022-05-31 14:35:34,034 2880 [DEBUG] - Current environment values (may contain sensitive data):
2022-05-31 14:35:34,049 2880 [DEBUG] - * 'TMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
2022-05-31 14:35:34,049 2880 [DEBUG] - * 'TEMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
2022-05-31 14:35:34,049 2880 [DEBUG] - * 'ChocolateyLastPathUpdate'='132981345551825544' ('User')
2022-05-31 14:35:34,049 2880 [DEBUG] - * 'FP_NO_HOST_CHECK'='NO' ('Machine')
2022-05-31 14:35:34,049 2880 [DEBUG] - * 'USERNAME'='SYSTEM' ('Machine')
2022-05-31 14:35:34,049 2880 [DEBUG] - * 'Path'='C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\ProgramData\chocolatey\bin;' ('Machine')
2022-05-31 14:35:34,049 2880 [DEBUG] - * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine')
2022-05-31 14:35:34,049 2880 [DEBUG] - * 'TMP'='C:\Windows\TEMP' ('Machine')
2022-05-31 14:35:34,064 2880 [DEBUG] - * 'OS'='Windows_NT' ('Machine')
2022-05-31 14:35:34,064 2880 [DEBUG] - * 'windir'='C:\Windows' ('Machine')
2022-05-31 14:35:34,064 2880 [DEBUG] - * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine')
2022-05-31 14:35:34,064 2880 [DEBUG] - * 'TEMP'='C:\Windows\TEMP' ('Machine')
2022-05-31 14:35:34,064 2880 [DEBUG] - * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine')
2022-05-31 14:35:34,064 2880 [DEBUG] - * 'PSModulePath'='C:\Windows\system32\WindowsPowerShell\v1.0\Modules\' ('Machine')
2022-05-31 14:35:34,064 2880 [DEBUG] - * 'NUMBER_OF_PROCESSORS'='1' ('Machine')
2022-05-31 14:35:34,080 2880 [DEBUG] - * 'PROCESSOR_LEVEL'='6' ('Machine')
2022-05-31 14:35:34,080 2880 [DEBUG] - * 'PROCESSOR_IDENTIFIER'='Intel64 Family 6 Model 158 Stepping 13, GenuineIntel' ('Machine')
2022-05-31 14:35:34,080 2880 [DEBUG] - * 'PROCESSOR_REVISION'='9e0d' ('Machine')
2022-05-31 14:35:34,080 2880 [DEBUG] - * 'HOME'='C:\Users\Administrator' ('Machine')
2022-05-31 14:35:34,080 2880 [DEBUG] - * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine')
2022-05-31 14:35:34,221 2880 [DEBUG] - Running list with the following filter = ''
2022-05-31 14:35:34,221 2880 [DEBUG] - --- Start of List ---
2022-05-31 14:35:34,455 2880 [DEBUG] - wazuh-agent 4.2.7
2022-05-31 14:35:34,471 2880 [DEBUG] - --- End of List ---
2022-05-31 14:35:34,598 2880 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bkp".
2022-05-31 14:35:34,613 2880 [DEBUG] - Backing up existing wazuh-agent prior to operation.
2022-05-31 14:35:34,613 2880 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\wazuh-agent'
to 'C:\ProgramData\chocolatey\lib-bkp\wazuh-agent'
2022-05-31 14:35:36,628 2880 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\wazuh-agent".
2022-05-31 14:35:36,628 2880 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\wazuh-agent\wazuh-agent.nupkg"
to "C:\ProgramData\chocolatey\lib\wazuh-agent\wazuh-agent.nupkg".
2022-05-31 14:35:36,628 2880 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\wazuh-agent\wazuh-agent.nuspec"
to "C:\ProgramData\chocolatey\lib\wazuh-agent\wazuh-agent.nuspec".
2022-05-31 14:35:36,628 2880 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\wazuh-agent\tools".
2022-05-31 14:35:36,642 2880 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\wazuh-agent\tools\chocolateyinstall.ps1"
to "C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyinstall.ps1".
2022-05-31 14:35:36,642 2880 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\wazuh-agent\tools\chocolateyuninstall.ps1"
to "C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyuninstall.ps1".
2022-05-31 14:35:36,642 2880 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\wazuh-agent\tools\helpers.ps1"
to "C:\ProgramData\chocolatey\lib\wazuh-agent\tools\helpers.ps1".
2022-05-31 14:35:38,158 2880 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\wazuh-agent'
2022-05-31 14:35:38,158 2880 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\wazuh-agent\wazuh-agent.nupkg'
with checksum 'F776F664A9545B1488835CCEDD822290'
2022-05-31 14:35:38,158 2880 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\wazuh-agent\wazuh-agent.nuspec'
with checksum 'B9CDD32C35BC259FD0B243C240D3170F'
2022-05-31 14:35:38,173 2880 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyinstall.ps1'
with checksum '53B9993C9DE114CA722766D3C72A30C8'
2022-05-31 14:35:38,173 2880 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyuninstall.ps1'
with checksum 'E64EA2365BF83508C2E5F4D2E40253BB'
2022-05-31 14:35:38,173 2880 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\helpers.ps1'
with checksum 'C7DA559B5059ADC05A97BE553DB2573F'
2022-05-31 14:35:38,315 2880 [INFO ] - [NuGet] Uninstalling 'wazuh-agent 4.2.7'.
2022-05-31 14:35:38,315 2880 [INFO ] -
wazuh-agent v4.2.7
2022-05-31 14:35:38,362 2880 [DEBUG] - Setting installer args for wazuh-agent
2022-05-31 14:35:38,362 2880 [DEBUG] - Setting package parameters for wazuh-agent
2022-05-31 14:35:38,362 2880 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyuninstall.ps1':
2022-05-31 14:35:38,377 2880 [DEBUG] - $ErrorActionPreference = 'Stop';
$packageArgs = @{
packageName = $env:ChocolateyPackageName
softwareName = ''
fileType = ''
silentArgs = ''
validExitCodes = @(0, 3010, 1605, 1614, 1641)
}
if ($key.Count -eq 1) {
$key | ForEach-Object {
$packageArgs['file'] = "$($_.UninstallString)"
if ($packageArgs['fileType'] -eq 'MSI') {
$packageArgs['silentArgs'] = "$($_.PSChildName) $($packageArgs['silentArgs'])"
$packageArgs['file'] = ''
}
Uninstall-ChocolateyPackage @packageArgs
}
} elseif ($key.Count -eq 0) {
Write-Warning "$packageName has already been uninstalled by other means."
} elseif ($key.Count -gt 1) {
Write-Warning "$($key.Count) matches found!"
Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
Write-Warning "Please alert package maintainer the following keys were matched:"
$key | ForEach-Object {Write-Warning "- $($_.DisplayName)"}
}
# Custom settings from package
## Remove files and folders
if (Get-Item -Path "<Path>" -ErrorAction SilentlyContinue) {
Remove-Item `
-Path "<Path>" `
-Recurse
Write-Output `
-InputObject "Remove Shortcut <Path>"
}
2022-05-31 14:35:38,424 2880 [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\wazuh-agent\tools\chocolateyuninstall.ps1' -installArguments '' -packageParameters ''']
2022-05-31 14:35:38,424 2880 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2022-05-31 14:35:38,706 2880 [DEBUG] - Host version is 4.0, PowerShell Version is '4.0' and CLR Version is '4.0.30319.34014'.
2022-05-31 14:35:38,862 2880 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2022-05-31 14:35:38,862 2880 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2022-05-31 14:35:38,862 2880 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2022-05-31 14:35:38,862 2880 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2022-05-31 14:35:38,862 2880 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2022-05-31 14:35:38,862 2880 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2022-05-31 14:35:38,877 2880 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2022-05-31 14:35:38,877 2880 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2022-05-31 14:35:38,877 2880 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2022-05-31 14:35:38,877 2880 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2022-05-31 14:35:38,877 2880 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2022-05-31 14:35:38,877 2880 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2022-05-31 14:35:38,893 2880 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2022-05-31 14:35:38,893 2880 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2022-05-31 14:35:38,893 2880 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2022-05-31 14:35:38,893 2880 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2022-05-31 14:35:38,893 2880 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2022-05-31 14:35:38,893 2880 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2022-05-31 14:35:38,893 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2022-05-31 14:35:38,909 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2022-05-31 14:35:38,909 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2022-05-31 14:35:38,909 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2022-05-31 14:35:38,909 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2022-05-31 14:35:38,909 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2022-05-31 14:35:38,909 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2022-05-31 14:35:38,924 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2022-05-31 14:35:38,924 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2022-05-31 14:35:38,924 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2022-05-31 14:35:38,924 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2022-05-31 14:35:38,924 2880 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2022-05-31 14:35:38,924 2880 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2022-05-31 14:35:38,940 2880 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2022-05-31 14:35:38,940 2880 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2022-05-31 14:35:38,940 2880 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2022-05-31 14:35:38,940 2880 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2022-05-31 14:35:38,940 2880 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2022-05-31 14:35:38,940 2880 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2022-05-31 14:35:38,955 2880 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2022-05-31 14:35:38,955 2880 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2022-05-31 14:35:38,955 2880 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2022-05-31 14:35:38,955 2880 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2022-05-31 14:35:38,955 2880 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2022-05-31 14:35:38,955 2880 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2022-05-31 14:35:38,970 2880 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2022-05-31 14:35:38,970 2880 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2022-05-31 14:35:38,970 2880 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2022-05-31 14:35:38,970 2880 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2022-05-31 14:35:38,970 2880 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2022-05-31 14:35:38,970 2880 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2022-05-31 14:35:38,987 2880 [DEBUG] - Loading community extensions
2022-05-31 14:35:39,017 2880 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
2022-05-31 14:35:39,017 2880 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
2022-05-31 14:35:39,081 2880 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2022-05-31 14:35:39,081 2880 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2022-05-31 14:35:39,081 2880 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2022-05-31 14:35:39,096 2880 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2022-05-31 14:35:39,096 2880 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2022-05-31 14:35:39,096 2880 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2022-05-31 14:35:39,096 2880 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2022-05-31 14:35:39,096 2880 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2022-05-31 14:35:39,096 2880 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2022-05-31 14:35:39,112 2880 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2022-05-31 14:35:39,112 2880 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2022-05-31 14:35:39,112 2880 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2022-05-31 14:35:39,112 2880 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2022-05-31 14:35:39,112 2880 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2022-05-31 14:35:39,112 2880 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2022-05-31 14:35:39,112 2880 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2022-05-31 14:35:39,127 2880 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2022-05-31 14:35:39,127 2880 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2022-05-31 14:35:39,127 2880 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2022-05-31 14:35:39,127 2880 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2022-05-31 14:35:39,127 2880 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2022-05-31 14:35:39,127 2880 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2022-05-31 14:35:39,143 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2022-05-31 14:35:39,143 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2022-05-31 14:35:39,143 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2022-05-31 14:35:39,143 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2022-05-31 14:35:39,143 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2022-05-31 14:35:39,143 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2022-05-31 14:35:39,158 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2022-05-31 14:35:39,158 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2022-05-31 14:35:39,158 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2022-05-31 14:35:39,158 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2022-05-31 14:35:39,158 2880 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2022-05-31 14:35:39,158 2880 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2022-05-31 14:35:39,174 2880 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2022-05-31 14:35:39,174 2880 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2022-05-31 14:35:39,174 2880 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2022-05-31 14:35:39,174 2880 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2022-05-31 14:35:39,174 2880 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2022-05-31 14:35:39,174 2880 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2022-05-31 14:35:39,189 2880 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2022-05-31 14:35:39,189 2880 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2022-05-31 14:35:39,189 2880 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2022-05-31 14:35:39,189 2880 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2022-05-31 14:35:39,189 2880 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2022-05-31 14:35:39,189 2880 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2022-05-31 14:35:39,205 2880 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2022-05-31 14:35:39,205 2880 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2022-05-31 14:35:39,205 2880 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2022-05-31 14:35:39,205 2880 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2022-05-31 14:35:39,205 2880 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2022-05-31 14:35:39,205 2880 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2022-05-31 14:35:39,221 2880 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2022-05-31 14:35:39,221 2880 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2022-05-31 14:35:39,221 2880 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2022-05-31 14:35:39,221 2880 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2022-05-31 14:35:39,221 2880 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2022-05-31 14:35:39,221 2880 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2022-05-31 14:35:39,237 2880 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2022-05-31 14:35:39,237 2880 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2022-05-31 14:35:39,237 2880 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2022-05-31 14:35:39,237 2880 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2022-05-31 14:35:39,237 2880 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2022-05-31 14:35:39,237 2880 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2022-05-31 14:35:39,252 2880 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2022-05-31 14:35:39,252 2880 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2022-05-31 14:35:39,252 2880 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2022-05-31 14:35:39,252 2880 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2022-05-31 14:35:39,252 2880 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2022-05-31 14:35:39,252 2880 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2022-05-31 14:35:39,268 2880 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2022-05-31 14:35:39,268 2880 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2022-05-31 14:35:39,268 2880 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2022-05-31 14:35:39,268 2880 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2022-05-31 14:35:39,268 2880 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2022-05-31 14:35:39,283 2880 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2022-05-31 14:35:39,283 2880 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2022-05-31 14:35:39,283 2880 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2022-05-31 14:35:39,283 2880 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2022-05-31 14:35:39,283 2880 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2022-05-31 14:35:39,283 2880 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2022-05-31 14:35:39,299 2880 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2022-05-31 14:35:39,299 2880 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2022-05-31 14:35:39,299 2880 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2022-05-31 14:35:39,299 2880 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2022-05-31 14:35:39,299 2880 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2022-05-31 14:35:39,299 2880 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2022-05-31 14:35:39,315 2880 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2022-05-31 14:35:39,315 2880 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2022-05-31 14:35:39,315 2880 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2022-05-31 14:35:39,315 2880 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2022-05-31 14:35:39,315 2880 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2022-05-31 14:35:39,315 2880 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2022-05-31 14:35:39,330 2880 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2022-05-31 14:35:39,330 2880 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2022-05-31 14:35:39,330 2880 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2022-05-31 14:35:39,330 2880 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2022-05-31 14:35:39,330 2880 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2022-05-31 14:35:39,330 2880 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2022-05-31 14:35:39,346 2880 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2022-05-31 14:35:39,346 2880 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2022-05-31 14:35:39,346 2880 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2022-05-31 14:35:39,346 2880 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2022-05-31 14:35:39,346 2880 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2022-05-31 14:35:39,346 2880 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2022-05-31 14:35:39,361 2880 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2022-05-31 14:35:39,440 2880 [DEBUG] - ---------------------------Script Execution---------------------------
2022-05-31 14:35:39,456 2880 [DEBUG] - Running 'ChocolateyScriptRunner' for wazuh-agent v4.2.7 with packageScript 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyuninstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\wazuh-agent', installArguments: '', packageParameters: '',
2022-05-31 14:35:39,471 2880 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyuninstall.ps1'
2022-05-31 14:35:39,487 2880 [WARN ] - WARNING: wazuh-agent has already been uninstalled by other means.
2022-05-31 14:35:39,502 2880 [DEBUG] - ----------------------------------------------------------------------
2022-05-31 14:35:39,502 2880 [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\wazuh-agent\tools\chocolateyuninstall.ps1' -installArguments '' -packageParameters '''] exited with '0'.
2022-05-31 14:35:39,564 2880 [INFO ] - Running auto uninstaller...
2022-05-31 14:35:39,564 2880 [DEBUG] - Sleeping for 2 seconds to allow Windows to finish cleaning up.
2022-05-31 14:35:41,580 2880 [DEBUG] - Preparing uninstall key 'MsiExec.exe /X{DC32A5AC-7AEC-4A24-AB7B-3C789CD379E2}' for 'Wazuh Agent'
2022-05-31 14:35:41,627 2880 [DEBUG] - Uninstaller path is 'MsiExec.exe'
2022-05-31 14:35:41,627 2880 [DEBUG] - Installer type is 'MsiInstaller'
2022-05-31 14:35:41,627 2880 [DEBUG] - Setting up uninstall logging directory at C:\Users\Administrator\AppData\Local\Temp\chocolatey\wazuh-agent\4.2.7
2022-05-31 14:35:41,643 2880 [DEBUG] - Args are '/X{DC32A5AC-7AEC-4A24-AB7B-3C789CD379E2} /qn /norestart'
2022-05-31 14:35:41,643 2880 [DEBUG] - Calling command ['"MsiExec.exe" /X{DC32A5AC-7AEC-4A24-AB7B-3C789CD379E2} /qn /norestart']
2022-05-31 14:35:42,284 2880 [DEBUG] - Command ['"MsiExec.exe" /X{DC32A5AC-7AEC-4A24-AB7B-3C789CD379E2} /qn /norestart'] exited with '0'
2022-05-31 14:35:42,284 2880 [INFO ] - Auto uninstaller has successfully uninstalled wazuh-agent or detected previous uninstall.
2022-05-31 14:35:42,284 2880 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2022-05-31 14:35:42,299 2880 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2022-05-31 14:35:42,315 2880 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bkp\wazuh-agent".
2022-05-31 14:35:42,346 2880 [DEBUG] - [NuGet] Removed file 'chocolateyinstall.ps1' to folder 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools'.
2022-05-31 14:35:42,346 2880 [DEBUG] - [NuGet] Removed file 'chocolateyuninstall.ps1' to folder 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools'.
2022-05-31 14:35:42,346 2880 [DEBUG] - [NuGet] Removed file 'helpers.ps1' to folder 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools'.
2022-05-31 14:35:42,362 2880 [DEBUG] - [NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools'.
2022-05-31 14:35:42,362 2880 [DEBUG] - [NuGet] Removed file 'wazuh-agent.nuspec' to folder 'C:\ProgramData\chocolatey\lib\wazuh-agent'.
2022-05-31 14:35:42,362 2880 [DEBUG] - [NuGet] Removed file 'wazuh-agent.nupkg' to folder 'C:\ProgramData\chocolatey\lib\wazuh-agent'.
2022-05-31 14:35:42,362 2880 [DEBUG] - [NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\wazuh-agent'.
2022-05-31 14:35:42,362 2880 [INFO ] - [NuGet] Successfully uninstalled 'wazuh-agent 4.2.7'.
2022-05-31 14:35:42,377 2880 [INFO ] - wazuh-agent has been successfully uninstalled.
2022-05-31 14:35:42,377 2880 [DEBUG] - Removing nupkg if it still exists.
2022-05-31 14:35:42,377 2880 [DEBUG] - Ensuring removal of installation files.
2022-05-31 14:35:42,393 2880 [DEBUG] - Ensuring removal of package cache files.
2022-05-31 14:35:42,393 2880 [DEBUG] - Attempting to delete directory "C:\Users\Administrator\AppData\Local\Temp\chocolatey\wazuh-agent\4.2.7".
2022-05-31 14:35:42,410 2880 [WARN ] -
Chocolatey uninstalled 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2022-05-31 14:35:42,424 2880 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2022-05-31 14:35:42,440 2880 [DEBUG] - Exiting with 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment