Skip to content

Instantly share code, notes, and snippets.

@choco-bot
Created May 28, 2023 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save choco-bot/ecd60bf08652f87a9b34bbedcb3e6a5d to your computer and use it in GitHub Desktop.
Save choco-bot/ecd60bf08652f87a9b34bbedcb3e6a5d to your computer and use it in GitHub Desktop.
wazuh-agent v4.4.3 - 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-1799209001-1680661299-510875440-1000</user>
<keys>
<key installerType="Msi" displayName="Wazuh Agent" displayVersion="4.4.3">
<RegistryView>Registry32</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{292D4192-20CF-425F-9ADC-71198BB49E7B}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /X{292D4192-20CF-425F-9ADC-71198BB49E7B}]]></UninstallString>
<HasQuietUninstall>false</HasQuietUninstall>
<Publisher><![CDATA[Wazuh, Inc.]]></Publisher>
<InstallDate>20230528</InstallDate>
<InstallSource><![CDATA[C:\Users\vagrant\AppData\Local\Temp\chocolatey\wazuh-agent\4.4.3\]]></InstallSource>
<Language>1033</Language>
<Version>67371011</Version>
<VersionMajor>4</VersionMajor>
<VersionMinor>4</VersionMinor>
<SystemComponent>false</SystemComponent>
<WindowsInstaller>true</WindowsInstaller>
<NoRemove>false</NoRemove>
<NoModify>true</NoModify>
<NoRepair>true</NoRepair>
<ReleaseType />
<ParentKeyName />
<LocalPackage><![CDATA[C:\Windows\Installer\3bd0b.msi]]></LocalPackage>
</key>
</keys>
</registrySnapshot>

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

  • https://community.chocolatey.org/packages/wazuh-agent/4.4.3
  • Tested 28 May 2023 13:52:30 +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 v1.0.1
  • 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="C0496CA185A0B5A17681C031E4B13E6B" />
<file path="C:\ProgramData\chocolatey\lib\wazuh-agent\wazuh-agent.nuspec" checksum="D917B01F8EC09F1E90C87712D5531587" />
<file path="C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyinstall.ps1" checksum="F1A84D68D9D26AD7D3859B1768195CE6" />
<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>
2023-05-28 13:51:39,127 5280 [DEBUG] - XmlConfiguration is now operational
2023-05-28 13:51:39,283 5280 [DEBUG] - Adding new type 'WebPiService' for type 'ISourceRunner' from assembly 'choco'
2023-05-28 13:51:39,283 5280 [DEBUG] - Adding new type 'WindowsFeatureService' for type 'ISourceRunner' from assembly 'choco'
2023-05-28 13:51:39,283 5280 [DEBUG] - Adding new type 'CygwinService' for type 'ISourceRunner' from assembly 'choco'
2023-05-28 13:51:39,299 5280 [DEBUG] - Adding new type 'PythonService' for type 'ISourceRunner' from assembly 'choco'
2023-05-28 13:51:39,299 5280 [DEBUG] - Adding new type 'RubyGemsService' for type 'ISourceRunner' from assembly 'choco'
2023-05-28 13:51:39,299 5280 [DEBUG] - Adding new type 'SystemStateValidation' for type 'IValidation' from assembly 'choco'
2023-05-28 13:51:39,565 5280 [DEBUG] - Registering new command 'templates' in assembly 'choco'
2023-05-28 13:51:39,565 5280 [DEBUG] - Registering new command 'upgrade' in assembly 'choco'
2023-05-28 13:51:39,565 5280 [DEBUG] - Registering new command 'export' in assembly 'choco'
2023-05-28 13:51:39,580 5280 [DEBUG] - Registering new command 'list' in assembly 'choco'
2023-05-28 13:51:39,580 5280 [DEBUG] - Registering new command 'info' in assembly 'choco'
2023-05-28 13:51:39,580 5280 [DEBUG] - Registering new command 'help' in assembly 'choco'
2023-05-28 13:51:39,580 5280 [DEBUG] - Registering new command 'config' in assembly 'choco'
2023-05-28 13:51:39,595 5280 [DEBUG] - Registering new command 'feature' in assembly 'choco'
2023-05-28 13:51:39,595 5280 [DEBUG] - Registering new command 'new' in assembly 'choco'
2023-05-28 13:51:39,595 5280 [DEBUG] - Registering new command 'outdated' in assembly 'choco'
2023-05-28 13:51:39,611 5280 [DEBUG] - Registering new command 'pack' in assembly 'choco'
2023-05-28 13:51:39,611 5280 [DEBUG] - Registering new command 'pin' in assembly 'choco'
2023-05-28 13:51:39,611 5280 [DEBUG] - Registering new command 'push' in assembly 'choco'
2023-05-28 13:51:39,611 5280 [DEBUG] - Registering new command 'apikey' in assembly 'choco'
2023-05-28 13:51:39,627 5280 [DEBUG] - Registering new command 'sources' in assembly 'choco'
2023-05-28 13:51:39,627 5280 [DEBUG] - Registering new command 'uninstall' in assembly 'choco'
2023-05-28 13:51:39,627 5280 [DEBUG] - Registering new command 'unpackself' in assembly 'choco'
2023-05-28 13:51:39,627 5280 [DEBUG] - Registering new command 'install' in assembly 'choco'
2023-05-28 13:51:39,940 5280 [INFO ] - ============================================================
2023-05-28 13:51:40,284 5280 [INFO ] - Chocolatey v1.3.0
2023-05-28 13:51:40,314 5280 [DEBUG] - Chocolatey is running on Windows v 10.0.17763.0
2023-05-28 13:51:40,330 5280 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2023-05-28 13:51:40,330 5280 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2023-05-28 13:51:40,362 5280 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install wazuh-agent --version 4.4.3 -fdvy --execution-timeout=2700 --allow-downgrade
2023-05-28 13:51:40,362 5280 [DEBUG] - Received arguments: install wazuh-agent --version 4.4.3 -fdvy --execution-timeout=2700 --allow-downgrade
2023-05-28 13:51:40,533 5280 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2023-05-28 13:51:40,564 5280 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2023-05-28 13:51:40,596 5280 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2023-05-28 13:51:40,736 5280 [DEBUG] - Performing validation checks.
2023-05-28 13:51:40,752 5280 [DEBUG] - Global Configuration Validation Checks:
2023-05-28 13:51:40,752 5280 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked
2023-05-28 13:51:40,767 5280 [DEBUG] - System State Validation Checks:
2023-05-28 13:51:40,783 5280 [DEBUG] - Reboot Requirement Checks:
2023-05-28 13:51:40,798 5280 [DEBUG] - - Pending Computer Rename = Checked
2023-05-28 13:51:40,798 5280 [DEBUG] - - Pending Component Based Servicing = Checked
2023-05-28 13:51:40,815 5280 [DEBUG] - - Pending Windows Auto Update = Checked
2023-05-28 13:51:40,815 5280 [DEBUG] - - Pending File Rename Operations = Ignored
2023-05-28 13:51:40,830 5280 [DEBUG] - - Pending Windows Package Installer = Checked
2023-05-28 13:51:40,830 5280 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked
2023-05-28 13:51:40,845 5280 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s).
2023-05-28 13:51:40,908 5280 [DEBUG] - The source 'c:\cached-packages;https://community.chocolatey.org/api/v2/' evaluated to a 'normal' source type
2023-05-28 13:51:40,908 5280 [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.
2023-05-28 13:51:40,955 5280 [DEBUG] - Configuration: CommandName='install'|
CacheLocation='C:\Users\vagrant\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.4.3'|AllVersions='False'|SkipPackageInstallProvider='False'|
SkipHookScripts='False'|PackageNames='wazuh-agent'|Prerelease='False'|
ForceX86='False'|OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='True'|
ForceDependencies='False'|PinPackage='False'|
Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.17763.0'|
Information.PlatformName='Windows Server 2016'|
Information.ChocolateyVersion='1.3.0.0'|
Information.ChocolateyProductVersion='1.3.0'|
Information.FullName='choco, Version=1.3.0.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='False'|
Information.UserName='vagrant'|
Information.UserDomainName='WIN-LAGPFQP8IE1'|
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\vagrant'|
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'|
2023-05-28 13:51:40,970 5280 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
2023-05-28 13:51:41,002 5280 [INFO ] - Installing the following packages:
2023-05-28 13:51:41,002 5280 [INFO ] - wazuh-agent
2023-05-28 13:51:41,018 5280 [INFO ] - By installing, you accept licenses for the packages.
2023-05-28 13:51:41,033 5280 [DEBUG] - Current environment values (may contain sensitive data):
2023-05-28 13:51:41,049 5280 [DEBUG] - * 'Path'='C:\Users\vagrant\AppData\Local\Microsoft\WindowsApps;' ('User')
2023-05-28 13:51:41,049 5280 [DEBUG] - * 'TEMP'='C:\Users\vagrant\AppData\Local\Temp' ('User')
2023-05-28 13:51:41,064 5280 [DEBUG] - * 'TMP'='C:\Users\vagrant\AppData\Local\Temp' ('User')
2023-05-28 13:51:41,064 5280 [DEBUG] - * 'ChocolateyLastPathUpdate'='133297504917677763' ('User')
2023-05-28 13:51:41,080 5280 [DEBUG] - * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine')
2023-05-28 13:51:41,080 5280 [DEBUG] - * 'DriverData'='C:\Windows\System32\Drivers\DriverData' ('Machine')
2023-05-28 13:51:41,095 5280 [DEBUG] - * 'OS'='Windows_NT' ('Machine')
2023-05-28 13:51:41,095 5280 [DEBUG] - * 'Path'='C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;' ('Machine')
2023-05-28 13:51:41,095 5280 [DEBUG] - * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine')
2023-05-28 13:51:41,111 5280 [DEBUG] - * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine')
2023-05-28 13:51:41,111 5280 [DEBUG] - * 'PSModulePath'='C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules' ('Machine')
2023-05-28 13:51:41,127 5280 [DEBUG] - * 'TEMP'='C:\Windows\TEMP' ('Machine')
2023-05-28 13:51:41,127 5280 [DEBUG] - * 'TMP'='C:\Windows\TEMP' ('Machine')
2023-05-28 13:51:41,142 5280 [DEBUG] - * 'USERNAME'='SYSTEM' ('Machine')
2023-05-28 13:51:41,142 5280 [DEBUG] - * 'windir'='C:\Windows' ('Machine')
2023-05-28 13:51:41,142 5280 [DEBUG] - * 'NUMBER_OF_PROCESSORS'='1' ('Machine')
2023-05-28 13:51:41,158 5280 [DEBUG] - * 'PROCESSOR_LEVEL'='6' ('Machine')
2023-05-28 13:51:41,158 5280 [DEBUG] - * 'PROCESSOR_IDENTIFIER'='Intel64 Family 6 Model 158 Stepping 13, GenuineIntel' ('Machine')
2023-05-28 13:51:41,173 5280 [DEBUG] - * 'PROCESSOR_REVISION'='9e0d' ('Machine')
2023-05-28 13:51:41,173 5280 [DEBUG] - * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine')
2023-05-28 13:51:43,220 5280 [INFO ] - [NuGet] Installing 'wazuh-agent 4.4.3'.
2023-05-28 13:51:43,237 5280 [DEBUG] - [NuGet] Added file 'chocolateyuninstall.ps1' to folder 'wazuh-agent\tools'.
2023-05-28 13:51:43,252 5280 [DEBUG] - [NuGet] Added file 'helpers.ps1' to folder 'wazuh-agent\tools'.
2023-05-28 13:51:43,252 5280 [DEBUG] - [NuGet] Added file 'chocolateyinstall.ps1' to folder 'wazuh-agent\tools'.
2023-05-28 13:51:43,284 5280 [DEBUG] - [NuGet] Added file 'wazuh-agent.nupkg' to folder 'wazuh-agent'.
2023-05-28 13:51:43,627 5280 [DEBUG] - [NuGet] Added file 'wazuh-agent.nuspec' to folder 'wazuh-agent'.
2023-05-28 13:51:43,642 5280 [INFO ] - [NuGet] Successfully installed 'wazuh-agent 4.4.3'.
2023-05-28 13:51:43,642 5280 [INFO ] -
wazuh-agent v4.4.3 (forced)
2023-05-28 13:51:43,690 5280 [INFO ] - wazuh-agent package files install completed. Performing other installation steps.
2023-05-28 13:51:43,752 5280 [DEBUG] - Setting installer args for wazuh-agent
2023-05-28 13:51:43,767 5280 [DEBUG] - Setting package parameters for wazuh-agent
2023-05-28 13:51:43,767 5280 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyinstall.ps1':
2023-05-28 13:51:43,783 5280 [DEBUG] - $ErrorActionPreference = 'Stop';
$PackageParameters = Get-PackageParameters
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
$urlPackage = 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.4.3-1.msi'
$checksumPackage = '209ff2a30fd595ce797e5f9f5be3a555acf959da616543af43f832594159f2668d21f39a0bc9678a45833b80e95a521bfe3222367f970c69da82cf963020ef20'
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['AgentGroup']
}
Write-Output $args
$packageArgs = @{
packageName = $env:ChocolateyPackageName
fileType = 'msi'
url = $urlPackage
checksum = $checksumPackage
checksumType = 'SHA512'
url64 = $urlPackage
checksum64 = $checksumPackage
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"
}
2023-05-28 13:51:43,845 5280 [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 '' -preRunHookScripts $null -postRunHookScripts $null']
2023-05-28 13:51:43,861 5280 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2023-05-28 13:51:44,502 5280 [DEBUG] - Host version is 5.1.17763.1, PowerShell Version is '5.1.17763.3770' and CLR Version is '4.0.30319.42000'.
2023-05-28 13:51:44,955 5280 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2023-05-28 13:51:44,971 5280 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2023-05-28 13:51:44,971 5280 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'.
2023-05-28 13:51:44,986 5280 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2023-05-28 13:51:44,986 5280 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2023-05-28 13:51:45,002 5280 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2023-05-28 13:51:45,002 5280 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2023-05-28 13:51:45,017 5280 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2023-05-28 13:51:45,017 5280 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2023-05-28 13:51:45,017 5280 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2023-05-28 13:51:45,033 5280 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2023-05-28 13:51:45,048 5280 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2023-05-28 13:51:45,048 5280 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2023-05-28 13:51:45,048 5280 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2023-05-28 13:51:45,064 5280 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2023-05-28 13:51:45,079 5280 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2023-05-28 13:51:45,079 5280 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2023-05-28 13:51:45,079 5280 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2023-05-28 13:51:45,095 5280 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2023-05-28 13:51:45,095 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2023-05-28 13:51:45,111 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2023-05-28 13:51:45,111 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2023-05-28 13:51:45,142 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2023-05-28 13:51:45,142 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2023-05-28 13:51:45,142 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2023-05-28 13:51:45,158 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2023-05-28 13:51:45,158 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2023-05-28 13:51:45,173 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2023-05-28 13:51:45,173 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2023-05-28 13:51:45,189 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2023-05-28 13:51:45,189 5280 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2023-05-28 13:51:45,189 5280 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2023-05-28 13:51:45,205 5280 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2023-05-28 13:51:45,205 5280 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2023-05-28 13:51:45,220 5280 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2023-05-28 13:51:45,236 5280 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2023-05-28 13:51:45,236 5280 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2023-05-28 13:51:45,236 5280 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2023-05-28 13:51:45,252 5280 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2023-05-28 13:51:45,252 5280 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2023-05-28 13:51:45,252 5280 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2023-05-28 13:51:45,268 5280 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2023-05-28 13:51:45,283 5280 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2023-05-28 13:51:45,283 5280 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2023-05-28 13:51:45,298 5280 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2023-05-28 13:51:45,298 5280 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2023-05-28 13:51:45,314 5280 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2023-05-28 13:51:45,314 5280 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2023-05-28 13:51:45,330 5280 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2023-05-28 13:51:45,330 5280 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2023-05-28 13:51:45,361 5280 [DEBUG] - Loading community extensions
2023-05-28 13:51:45,409 5280 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
2023-05-28 13:51:45,409 5280 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
2023-05-28 13:51:45,518 5280 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2023-05-28 13:51:45,518 5280 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2023-05-28 13:51:45,533 5280 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2023-05-28 13:51:45,548 5280 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2023-05-28 13:51:45,548 5280 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2023-05-28 13:51:45,548 5280 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2023-05-28 13:51:45,564 5280 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'.
2023-05-28 13:51:45,579 5280 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2023-05-28 13:51:45,579 5280 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2023-05-28 13:51:45,579 5280 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2023-05-28 13:51:45,595 5280 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2023-05-28 13:51:45,595 5280 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2023-05-28 13:51:45,611 5280 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2023-05-28 13:51:45,611 5280 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2023-05-28 13:51:45,658 5280 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2023-05-28 13:51:45,658 5280 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2023-05-28 13:51:45,673 5280 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2023-05-28 13:51:45,673 5280 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2023-05-28 13:51:45,689 5280 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2023-05-28 13:51:45,689 5280 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2023-05-28 13:51:45,705 5280 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2023-05-28 13:51:45,705 5280 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2023-05-28 13:51:45,720 5280 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2023-05-28 13:51:45,720 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2023-05-28 13:51:45,736 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2023-05-28 13:51:45,736 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2023-05-28 13:51:45,736 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2023-05-28 13:51:45,752 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2023-05-28 13:51:45,767 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2023-05-28 13:51:45,767 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2023-05-28 13:51:45,767 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2023-05-28 13:51:45,783 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2023-05-28 13:51:45,783 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2023-05-28 13:51:45,799 5280 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2023-05-28 13:51:45,799 5280 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2023-05-28 13:51:45,814 5280 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2023-05-28 13:51:45,829 5280 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2023-05-28 13:51:45,829 5280 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2023-05-28 13:51:45,829 5280 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2023-05-28 13:51:45,845 5280 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2023-05-28 13:51:45,861 5280 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2023-05-28 13:51:45,861 5280 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2023-05-28 13:51:45,861 5280 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2023-05-28 13:51:45,877 5280 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2023-05-28 13:51:45,877 5280 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2023-05-28 13:51:45,892 5280 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2023-05-28 13:51:45,892 5280 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2023-05-28 13:51:45,908 5280 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2023-05-28 13:51:45,908 5280 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2023-05-28 13:51:45,923 5280 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2023-05-28 13:51:45,923 5280 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2023-05-28 13:51:45,923 5280 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2023-05-28 13:51:45,939 5280 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2023-05-28 13:51:45,939 5280 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2023-05-28 13:51:45,955 5280 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2023-05-28 13:51:45,955 5280 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2023-05-28 13:51:45,970 5280 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2023-05-28 13:51:45,986 5280 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2023-05-28 13:51:45,986 5280 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyPath'.
2023-05-28 13:51:46,001 5280 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2023-05-28 13:51:46,001 5280 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2023-05-28 13:51:46,017 5280 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2023-05-28 13:51:46,017 5280 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2023-05-28 13:51:46,017 5280 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2023-05-28 13:51:46,033 5280 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2023-05-28 13:51:46,065 5280 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2023-05-28 13:51:46,065 5280 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2023-05-28 13:51:46,080 5280 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2023-05-28 13:51:46,080 5280 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2023-05-28 13:51:46,080 5280 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2023-05-28 13:51:46,095 5280 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2023-05-28 13:51:46,095 5280 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2023-05-28 13:51:46,111 5280 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2023-05-28 13:51:46,111 5280 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2023-05-28 13:51:46,127 5280 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2023-05-28 13:51:46,127 5280 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2023-05-28 13:51:46,143 5280 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2023-05-28 13:51:46,143 5280 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2023-05-28 13:51:46,158 5280 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2023-05-28 13:51:46,158 5280 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2023-05-28 13:51:46,174 5280 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2023-05-28 13:51:46,174 5280 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2023-05-28 13:51:46,189 5280 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2023-05-28 13:51:46,189 5280 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2023-05-28 13:51:46,205 5280 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2023-05-28 13:51:46,205 5280 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2023-05-28 13:51:46,220 5280 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2023-05-28 13:51:46,220 5280 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2023-05-28 13:51:46,236 5280 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2023-05-28 13:51:46,236 5280 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2023-05-28 13:51:46,252 5280 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2023-05-28 13:51:46,252 5280 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2023-05-28 13:51:46,267 5280 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2023-05-28 13:51:46,267 5280 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2023-05-28 13:51:46,283 5280 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2023-05-28 13:51:46,283 5280 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2023-05-28 13:51:46,299 5280 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2023-05-28 13:51:46,299 5280 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2023-05-28 13:51:46,314 5280 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2023-05-28 13:51:46,314 5280 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2023-05-28 13:51:46,330 5280 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2023-05-28 13:51:46,330 5280 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2023-05-28 13:51:46,330 5280 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2023-05-28 13:51:46,345 5280 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2023-05-28 13:51:46,345 5280 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2023-05-28 13:51:46,361 5280 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2023-05-28 13:51:46,361 5280 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2023-05-28 13:51:46,377 5280 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2023-05-28 13:51:46,471 5280 [DEBUG] - ---------------------------Script Execution---------------------------
2023-05-28 13:51:46,486 5280 [DEBUG] - Running 'ChocolateyScriptRunner' for wazuh-agent v4.4.3 with packageScript 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyinstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\wazuh-agent', installArguments: '', packageParameters: '', preRunHookScripts: '', postRunHookScripts: '',
2023-05-28 13:51:46,565 5280 [DEBUG] - Running package script 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyinstall.ps1'
2023-05-28 13:51:46,658 5280 [DEBUG] - Running Get-PackageParameters
2023-05-28 13:51:46,674 5280 [DEBUG] - Parsing $env:ChocolateyPackageParameters and $env:ChocolateyPackageParametersSensitive for parameters
2023-05-28 13:51:46,704 5280 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\helpers.ps1'.
2023-05-28 13:51:46,704 5280 [INFO ] - VERBOSE: Dot-sourcing the script file 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\helpers.ps1'.
2023-05-28 13:51:46,736 5280 [INFO ] -
2023-05-28 13:51:46,845 5280 [DEBUG] - Running Install-ChocolateyPackage -url 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.4.3-1.msi' -checksum '209ff2a30fd595ce797e5f9f5be3a555acf959da616543af43f832594159f2668d21f39a0bc9678a45833b80e95a521bfe3222367f970c69da82cf963020ef20' -checksum64 '209ff2a30fd595ce797e5f9f5be3a555acf959da616543af43f832594159f2668d21f39a0bc9678a45833b80e95a521bfe3222367f970c69da82cf963020ef20' -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.4.3-1.msi'
2023-05-28 13:51:47,018 5280 [DEBUG] - Running Get-ChocolateyWebFile -packageName 'wazuh-agent' -fileFullPath 'C:\Users\vagrant\AppData\Local\Temp\chocolatey\wazuh-agent\4.4.3\wazuh-agentInstall.msi' -url 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.4.3-1.msi' -url64bit 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.4.3-1.msi' -checksum '209ff2a30fd595ce797e5f9f5be3a555acf959da616543af43f832594159f2668d21f39a0bc9678a45833b80e95a521bfe3222367f970c69da82cf963020ef20' -checksumType 'SHA512' -checksum64 '209ff2a30fd595ce797e5f9f5be3a555acf959da616543af43f832594159f2668d21f39a0bc9678a45833b80e95a521bfe3222367f970c69da82cf963020ef20' -checksumType64 'SHA512' -options 'System.Collections.Hashtable' -getOriginalFileName 'True'
2023-05-28 13:51:47,158 5280 [DEBUG] - Running Get-OSArchitectureWidth -compare '64'
2023-05-28 13:51:47,205 5280 [DEBUG] - CPU is 64 bit
2023-05-28 13:51:47,221 5280 [DEBUG] - Setting url to 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.4.3-1.msi' and bitPackage to 64
2023-05-28 13:51:47,299 5280 [DEBUG] - Running Get-WebFileName -url 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.4.3-1.msi' -defaultName 'wazuh-agentInstall.msi'
2023-05-28 13:51:48,002 5280 [DEBUG] - Using response url to determine file name. 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.4.3-1.msi'
2023-05-28 13:51:48,018 5280 [DEBUG] - File name determined from url is 'wazuh-agent-4.4.3-1.msi'
2023-05-28 13:51:48,065 5280 [DEBUG] - Running Get-WebHeaders -url 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.4.3-1.msi' -ErrorAction 'Stop'
2023-05-28 13:51:48,081 5280 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2023-05-28 13:51:48,081 5280 [DEBUG] - Request Headers:
2023-05-28 13:51:48,111 5280 [DEBUG] - 'Accept':'*/*'
2023-05-28 13:51:48,111 5280 [DEBUG] - 'User-Agent':'chocolatey command line'
2023-05-28 13:51:48,251 5280 [DEBUG] - Response Headers:
2023-05-28 13:51:48,268 5280 [DEBUG] - 'Connection':'keep-alive'
2023-05-28 13:51:48,283 5280 [DEBUG] - 'x-amz-server-side-encryption':'AES256'
2023-05-28 13:51:48,298 5280 [DEBUG] - 'x-amz-version-id':'Lu6P5NE_H2Xe7V2qFm8_m_6X3tBL40Xd'
2023-05-28 13:51:48,314 5280 [DEBUG] - 'X-Cache':'Hit from cloudfront'
2023-05-28 13:51:48,314 5280 [DEBUG] - 'X-Amz-Cf-Pop':'MCI50-P1'
2023-05-28 13:51:48,330 5280 [DEBUG] - 'X-Amz-Cf-Id':'rTm31nTsnEWVtx9tt-1HiJnITur0koUIpXcJM39ccC33HeTVqY-okw=='
2023-05-28 13:51:48,330 5280 [DEBUG] - 'Age':'1'
2023-05-28 13:51:48,345 5280 [DEBUG] - 'Accept-Ranges':'bytes'
2023-05-28 13:51:48,345 5280 [DEBUG] - 'Content-Length':'5386240'
2023-05-28 13:51:48,361 5280 [DEBUG] - 'Content-Type':'binary/octet-stream'
2023-05-28 13:51:48,361 5280 [DEBUG] - 'Date':'Sun, 28 May 2023 13:51:48 GMT'
2023-05-28 13:51:48,376 5280 [DEBUG] - 'ETag':'"cd6e738c0c1ee3a30a731611c74dd3cd"'
2023-05-28 13:51:48,376 5280 [DEBUG] - 'Last-Modified':'Thu, 25 May 2023 17:32:05 GMT'
2023-05-28 13:51:48,376 5280 [DEBUG] - 'Server':'AmazonS3'
2023-05-28 13:51:48,393 5280 [DEBUG] - 'Via':'1.1 5fd5a7100537b482d912581a18b4587e.cloudfront.net (CloudFront)'
2023-05-28 13:51:48,423 5280 [INFO ] - Downloading wazuh-agent 64 bit
from 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.4.3-1.msi'
2023-05-28 13:51:48,533 5280 [DEBUG] - Running Get-WebFile -url 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.4.3-1.msi' -fileName 'C:\Users\vagrant\AppData\Local\Temp\chocolatey\wazuh-agent\4.4.3\wazuh-agent-4.4.3-1.msi' -options 'System.Collections.Hashtable'
2023-05-28 13:51:48,533 5280 [DEBUG] - Setting request timeout to 30000
2023-05-28 13:51:48,549 5280 [DEBUG] - Setting read/write timeout to 2700000
2023-05-28 13:51:48,549 5280 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2023-05-28 13:51:49,049 5280 [DEBUG] - Downloading https://packages.wazuh.com/4.x/windows/wazuh-agent-4.4.3-1.msi to C:\Users\vagrant\AppData\Local\Temp\chocolatey\wazuh-agent\4.4.3\wazuh-agent-4.4.3-1.msi
2023-05-28 13:51:49,814 5280 [INFO ] -
2023-05-28 13:51:49,830 5280 [INFO ] - Download of wazuh-agent-4.4.3-1.msi (5.14 MB) completed.
2023-05-28 13:51:52,877 5280 [DEBUG] - No runtime virus checking built into FOSS Chocolatey. Check out Pro/Business - https://chocolatey.org/compare
2023-05-28 13:51:52,894 5280 [DEBUG] - Verifying package provided checksum of '209ff2a30fd595ce797e5f9f5be3a555acf959da616543af43f832594159f2668d21f39a0bc9678a45833b80e95a521bfe3222367f970c69da82cf963020ef20' for 'C:\Users\vagrant\AppData\Local\Temp\chocolatey\wazuh-agent\4.4.3\wazuh-agent-4.4.3-1.msi'.
2023-05-28 13:51:52,925 5280 [DEBUG] - Running Get-ChecksumValid -file 'C:\Users\vagrant\AppData\Local\Temp\chocolatey\wazuh-agent\4.4.3\wazuh-agent-4.4.3-1.msi' -checksum '209ff2a30fd595ce797e5f9f5be3a555acf959da616543af43f832594159f2668d21f39a0bc9678a45833b80e95a521bfe3222367f970c69da82cf963020ef20' -checksumType 'SHA512' -originalUrl 'https://packages.wazuh.com/4.x/windows/wazuh-agent-4.4.3-1.msi'
2023-05-28 13:51:52,955 5280 [DEBUG] - checksum.exe found at 'C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe'
2023-05-28 13:51:52,955 5280 [DEBUG] - Executing command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="209ff2a30fd595ce797e5f9f5be3a555acf959da616543af43f832594159f2668d21f39a0bc9678a45833b80e95a521bfe3222367f970c69da82cf963020ef20" -t="SHA512" -f="C:\Users\vagrant\AppData\Local\Temp\chocolatey\wazuh-agent\4.4.3\wazuh-agent-4.4.3-1.msi"]
2023-05-28 13:51:53,189 5280 [DEBUG] - Command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="209ff2a30fd595ce797e5f9f5be3a555acf959da616543af43f832594159f2668d21f39a0bc9678a45833b80e95a521bfe3222367f970c69da82cf963020ef20" -t="SHA512" -f="C:\Users\vagrant\AppData\Local\Temp\chocolatey\wazuh-agent\4.4.3\wazuh-agent-4.4.3-1.msi"] exited with '0'.
2023-05-28 13:51:53,284 5280 [DEBUG] - Running Install-ChocolateyInstallPackage -packageName 'wazuh-agent' -fileType 'msi' -silentArgs ' /q' -file 'C:\Users\vagrant\AppData\Local\Temp\chocolatey\wazuh-agent\4.4.3\wazuh-agent-4.4.3-1.msi' -validExitCodes '0 1000 1101' -useOnlyPackageSilentArguments 'False'
2023-05-28 13:51:53,284 5280 [DEBUG] - Running Get-OSArchitectureWidth -compare '32'
2023-05-28 13:51:53,299 5280 [INFO ] - Installing wazuh-agent...
2023-05-28 13:51:53,455 5280 [DEBUG] - Running Start-ChocolateyProcessAsAdmin -validExitCodes '0 1000 1101' -workingDirectory 'C:\Users\vagrant\AppData\Local\Temp\chocolatey\wazuh-agent\4.4.3' -statements '/i "C:\Users\vagrant\AppData\Local\Temp\chocolatey\wazuh-agent\4.4.3\wazuh-agent-4.4.3-1.msi" /q ' -exeToRun 'C:\Windows\System32\msiexec.exe'
2023-05-28 13:51:53,533 5280 [DEBUG] - Test-ProcessAdminRights: returning True
2023-05-28 13:51:53,565 5280 [DEBUG] - Elevating permissions and running ["C:\Windows\System32\msiexec.exe" /i "C:\Users\vagrant\AppData\Local\Temp\chocolatey\wazuh-agent\4.4.3\wazuh-agent-4.4.3-1.msi" /q ]. This may take a while, depending on the statements.
2023-05-28 13:52:00,548 5280 [DEBUG] - Command ["C:\Windows\System32\msiexec.exe" /i "C:\Users\vagrant\AppData\Local\Temp\chocolatey\wazuh-agent\4.4.3\wazuh-agent-4.4.3-1.msi" /q ] exited with '0'.
2023-05-28 13:52:00,580 5280 [DEBUG] - Finishing 'Start-ChocolateyProcessAsAdmin'
2023-05-28 13:52:00,595 5280 [INFO ] - wazuh-agent has been installed.
2023-05-28 13:52:00,611 5280 [DEBUG] - ----------------------------------------------------------------------
2023-05-28 13:52:00,643 5280 [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 '' -preRunHookScripts $null -postRunHookScripts $null'] exited with '0'.
2023-05-28 13:52:00,658 5280 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2023-05-28 13:52:00,752 5280 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2023-05-28 13:52:00,814 5280 [INFO ] - wazuh-agent may be able to be automatically uninstalled.
2023-05-28 13:52:01,002 5280 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\wazuh-agent'
2023-05-28 13:52:01,017 5280 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\wazuh-agent\wazuh-agent.nupkg'
with checksum 'C0496CA185A0B5A17681C031E4B13E6B'
2023-05-28 13:52:01,017 5280 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\wazuh-agent\wazuh-agent.nuspec'
with checksum 'D917B01F8EC09F1E90C87712D5531587'
2023-05-28 13:52:01,017 5280 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyinstall.ps1'
with checksum 'F1A84D68D9D26AD7D3859B1768195CE6'
2023-05-28 13:52:01,033 5280 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyuninstall.ps1'
with checksum 'E64EA2365BF83508C2E5F4D2E40253BB'
2023-05-28 13:52:01,048 5280 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\helpers.ps1'
with checksum 'C7DA559B5059ADC05A97BE553DB2573F'
2023-05-28 13:52:01,111 5280 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\wazuh-agent.4.4.3".
2023-05-28 13:52:01,158 5280 [DEBUG] - There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\wazuh-agent.4.4.3\.registry'
2023-05-28 13:52:01,206 5280 [DEBUG] - There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\wazuh-agent.4.4.3\.files'
2023-05-28 13:52:01,220 5280 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\wazuh-agent.4.4.3\.extra".
2023-05-28 13:52:01,220 5280 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\wazuh-agent.4.4.3\.version".
2023-05-28 13:52:01,220 5280 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\wazuh-agent.4.4.3\.sxs".
2023-05-28 13:52:01,236 5280 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\wazuh-agent.4.4.3\.pin".
2023-05-28 13:52:01,251 5280 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2023-05-28 13:52:01,251 5280 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\wazuh-agent\.chocolateyPending".
2023-05-28 13:52:01,268 5280 [INFO ] - The install of wazuh-agent was successful.
2023-05-28 13:52:01,283 5280 [INFO ] - Software installed as 'msi', install location is likely default.
2023-05-28 13:52:01,283 5280 [DEBUG] - Attempting to delete file "C:\Users\vagrant\AppData\Local\NuGet\Cache\wazuh-agent.4.4.3.nupkg".
2023-05-28 13:52:01,330 5280 [WARN ] -
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2023-05-28 13:52:01,330 5280 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2023-05-28 13:52:01,376 5280 [DEBUG] - Exiting with 0
2023-05-28 13:52:13,017 3976 [DEBUG] - XmlConfiguration is now operational
2023-05-28 13:52:13,158 3976 [DEBUG] - Adding new type 'WebPiService' for type 'ISourceRunner' from assembly 'choco'
2023-05-28 13:52:13,173 3976 [DEBUG] - Adding new type 'WindowsFeatureService' for type 'ISourceRunner' from assembly 'choco'
2023-05-28 13:52:13,173 3976 [DEBUG] - Adding new type 'CygwinService' for type 'ISourceRunner' from assembly 'choco'
2023-05-28 13:52:13,173 3976 [DEBUG] - Adding new type 'PythonService' for type 'ISourceRunner' from assembly 'choco'
2023-05-28 13:52:13,189 3976 [DEBUG] - Adding new type 'RubyGemsService' for type 'ISourceRunner' from assembly 'choco'
2023-05-28 13:52:13,189 3976 [DEBUG] - Adding new type 'SystemStateValidation' for type 'IValidation' from assembly 'choco'
2023-05-28 13:52:13,455 3976 [DEBUG] - Registering new command 'templates' in assembly 'choco'
2023-05-28 13:52:13,455 3976 [DEBUG] - Registering new command 'upgrade' in assembly 'choco'
2023-05-28 13:52:13,470 3976 [DEBUG] - Registering new command 'export' in assembly 'choco'
2023-05-28 13:52:13,470 3976 [DEBUG] - Registering new command 'list' in assembly 'choco'
2023-05-28 13:52:13,470 3976 [DEBUG] - Registering new command 'info' in assembly 'choco'
2023-05-28 13:52:13,470 3976 [DEBUG] - Registering new command 'help' in assembly 'choco'
2023-05-28 13:52:13,486 3976 [DEBUG] - Registering new command 'config' in assembly 'choco'
2023-05-28 13:52:13,486 3976 [DEBUG] - Registering new command 'feature' in assembly 'choco'
2023-05-28 13:52:13,486 3976 [DEBUG] - Registering new command 'new' in assembly 'choco'
2023-05-28 13:52:13,486 3976 [DEBUG] - Registering new command 'outdated' in assembly 'choco'
2023-05-28 13:52:13,502 3976 [DEBUG] - Registering new command 'pack' in assembly 'choco'
2023-05-28 13:52:13,502 3976 [DEBUG] - Registering new command 'pin' in assembly 'choco'
2023-05-28 13:52:13,502 3976 [DEBUG] - Registering new command 'push' in assembly 'choco'
2023-05-28 13:52:13,517 3976 [DEBUG] - Registering new command 'apikey' in assembly 'choco'
2023-05-28 13:52:13,517 3976 [DEBUG] - Registering new command 'sources' in assembly 'choco'
2023-05-28 13:52:13,517 3976 [DEBUG] - Registering new command 'uninstall' in assembly 'choco'
2023-05-28 13:52:13,517 3976 [DEBUG] - Registering new command 'unpackself' in assembly 'choco'
2023-05-28 13:52:13,532 3976 [DEBUG] - Registering new command 'install' in assembly 'choco'
2023-05-28 13:52:13,846 3976 [INFO ] - ============================================================
2023-05-28 13:52:14,236 3976 [INFO ] - Chocolatey v1.3.0
2023-05-28 13:52:14,267 3976 [DEBUG] - Chocolatey is running on Windows v 10.0.17763.0
2023-05-28 13:52:14,283 3976 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2023-05-28 13:52:14,283 3976 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2023-05-28 13:52:14,299 3976 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" uninstall wazuh-agent --version 4.4.3 -dvy --execution-timeout=2700
2023-05-28 13:52:14,313 3976 [DEBUG] - Received arguments: uninstall wazuh-agent --version 4.4.3 -dvy --execution-timeout=2700
2023-05-28 13:52:14,470 3976 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2023-05-28 13:52:14,502 3976 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2023-05-28 13:52:14,517 3976 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2023-05-28 13:52:14,674 3976 [DEBUG] - Performing validation checks.
2023-05-28 13:52:14,689 3976 [DEBUG] - Global Configuration Validation Checks:
2023-05-28 13:52:14,704 3976 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked
2023-05-28 13:52:14,720 3976 [DEBUG] - System State Validation Checks:
2023-05-28 13:52:14,720 3976 [DEBUG] - Reboot Requirement Checks:
2023-05-28 13:52:14,736 3976 [DEBUG] - - Pending Computer Rename = Checked
2023-05-28 13:52:14,751 3976 [DEBUG] - - Pending Component Based Servicing = Checked
2023-05-28 13:52:14,751 3976 [DEBUG] - - Pending Windows Auto Update = Checked
2023-05-28 13:52:14,767 3976 [DEBUG] - - Pending File Rename Operations = Ignored
2023-05-28 13:52:14,767 3976 [DEBUG] - - Pending Windows Package Installer = Checked
2023-05-28 13:52:14,783 3976 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked
2023-05-28 13:52:14,799 3976 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s).
2023-05-28 13:52:14,846 3976 [DEBUG] - The source 'c:\cached-packages;https://community.chocolatey.org/api/v2/' evaluated to a 'normal' source type
2023-05-28 13:52:14,861 3976 [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.
2023-05-28 13:52:14,908 3976 [DEBUG] - Configuration: CommandName='uninstall'|
CacheLocation='C:\Users\vagrant\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.4.3'|AllVersions='False'|SkipPackageInstallProvider='False'|
SkipHookScripts='False'|PackageNames='wazuh-agent'|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.17763.0'|
Information.PlatformName='Windows Server 2016'|
Information.ChocolateyVersion='1.3.0.0'|
Information.ChocolateyProductVersion='1.3.0'|
Information.FullName='choco, Version=1.3.0.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='False'|
Information.UserName='vagrant'|
Information.UserDomainName='WIN-LAGPFQP8IE1'|
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\vagrant'|
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'|
2023-05-28 13:52:14,923 3976 [DEBUG] - _ Chocolatey:ChocolateyUninstallCommand - Normal Run Mode _
2023-05-28 13:52:14,939 3976 [INFO ] - Uninstalling the following packages:
2023-05-28 13:52:14,954 3976 [INFO ] - wazuh-agent
2023-05-28 13:52:14,970 3976 [DEBUG] - Current environment values (may contain sensitive data):
2023-05-28 13:52:14,985 3976 [DEBUG] - * 'Path'='C:\Users\vagrant\AppData\Local\Microsoft\WindowsApps;' ('User')
2023-05-28 13:52:14,985 3976 [DEBUG] - * 'TEMP'='C:\Users\vagrant\AppData\Local\Temp' ('User')
2023-05-28 13:52:14,985 3976 [DEBUG] - * 'TMP'='C:\Users\vagrant\AppData\Local\Temp' ('User')
2023-05-28 13:52:15,001 3976 [DEBUG] - * 'ChocolateyLastPathUpdate'='133297504917677763' ('User')
2023-05-28 13:52:15,017 3976 [DEBUG] - * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine')
2023-05-28 13:52:15,017 3976 [DEBUG] - * 'DriverData'='C:\Windows\System32\Drivers\DriverData' ('Machine')
2023-05-28 13:52:15,033 3976 [DEBUG] - * 'OS'='Windows_NT' ('Machine')
2023-05-28 13:52:15,033 3976 [DEBUG] - * 'Path'='C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;' ('Machine')
2023-05-28 13:52:15,048 3976 [DEBUG] - * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine')
2023-05-28 13:52:15,048 3976 [DEBUG] - * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine')
2023-05-28 13:52:15,065 3976 [DEBUG] - * 'PSModulePath'='C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules' ('Machine')
2023-05-28 13:52:15,065 3976 [DEBUG] - * 'TEMP'='C:\Windows\TEMP' ('Machine')
2023-05-28 13:52:15,065 3976 [DEBUG] - * 'TMP'='C:\Windows\TEMP' ('Machine')
2023-05-28 13:52:15,079 3976 [DEBUG] - * 'USERNAME'='SYSTEM' ('Machine')
2023-05-28 13:52:15,079 3976 [DEBUG] - * 'windir'='C:\Windows' ('Machine')
2023-05-28 13:52:15,095 3976 [DEBUG] - * 'NUMBER_OF_PROCESSORS'='1' ('Machine')
2023-05-28 13:52:15,095 3976 [DEBUG] - * 'PROCESSOR_LEVEL'='6' ('Machine')
2023-05-28 13:52:15,111 3976 [DEBUG] - * 'PROCESSOR_IDENTIFIER'='Intel64 Family 6 Model 158 Stepping 13, GenuineIntel' ('Machine')
2023-05-28 13:52:15,111 3976 [DEBUG] - * 'PROCESSOR_REVISION'='9e0d' ('Machine')
2023-05-28 13:52:15,127 3976 [DEBUG] - * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine')
2023-05-28 13:52:15,299 3976 [DEBUG] - Running list with the following filter = ''
2023-05-28 13:52:15,314 3976 [DEBUG] - --- Start of List ---
2023-05-28 13:52:15,736 3976 [DEBUG] - wazuh-agent 4.4.3
2023-05-28 13:52:15,751 3976 [DEBUG] - --- End of List ---
2023-05-28 13:52:16,033 3976 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bkp".
2023-05-28 13:52:16,033 3976 [DEBUG] - Backing up existing wazuh-agent prior to operation.
2023-05-28 13:52:16,049 3976 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\wazuh-agent'
to 'C:\ProgramData\chocolatey\lib-bkp\wazuh-agent'
2023-05-28 13:52:18,079 3976 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\wazuh-agent".
2023-05-28 13:52:18,079 3976 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\wazuh-agent\wazuh-agent.nupkg"
to "C:\ProgramData\chocolatey\lib\wazuh-agent\wazuh-agent.nupkg".
2023-05-28 13:52:18,097 3976 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\wazuh-agent\wazuh-agent.nuspec"
to "C:\ProgramData\chocolatey\lib\wazuh-agent\wazuh-agent.nuspec".
2023-05-28 13:52:18,097 3976 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\wazuh-agent\tools".
2023-05-28 13:52:18,110 3976 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\wazuh-agent\tools\chocolateyinstall.ps1"
to "C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyinstall.ps1".
2023-05-28 13:52:18,110 3976 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\wazuh-agent\tools\chocolateyuninstall.ps1"
to "C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyuninstall.ps1".
2023-05-28 13:52:18,126 3976 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\wazuh-agent\tools\helpers.ps1"
to "C:\ProgramData\chocolatey\lib\wazuh-agent\tools\helpers.ps1".
2023-05-28 13:52:19,642 3976 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\wazuh-agent'
2023-05-28 13:52:19,658 3976 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\wazuh-agent\wazuh-agent.nupkg'
with checksum 'C0496CA185A0B5A17681C031E4B13E6B'
2023-05-28 13:52:19,658 3976 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\wazuh-agent\wazuh-agent.nuspec'
with checksum 'D917B01F8EC09F1E90C87712D5531587'
2023-05-28 13:52:19,673 3976 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyinstall.ps1'
with checksum 'F1A84D68D9D26AD7D3859B1768195CE6'
2023-05-28 13:52:19,673 3976 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyuninstall.ps1'
with checksum 'E64EA2365BF83508C2E5F4D2E40253BB'
2023-05-28 13:52:19,689 3976 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\helpers.ps1'
with checksum 'C7DA559B5059ADC05A97BE553DB2573F'
2023-05-28 13:52:20,048 3976 [INFO ] - [NuGet] Uninstalling 'wazuh-agent 4.4.3'.
2023-05-28 13:52:20,064 3976 [INFO ] -
wazuh-agent v4.4.3
2023-05-28 13:52:20,126 3976 [DEBUG] - Setting installer args for wazuh-agent
2023-05-28 13:52:20,126 3976 [DEBUG] - Setting package parameters for wazuh-agent
2023-05-28 13:52:20,142 3976 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyuninstall.ps1':
2023-05-28 13:52:20,158 3976 [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>"
}
2023-05-28 13:52:20,220 3976 [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 '' -preRunHookScripts $null -postRunHookScripts $null']
2023-05-28 13:52:20,236 3976 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2023-05-28 13:52:20,893 3976 [DEBUG] - Host version is 5.1.17763.1, PowerShell Version is '5.1.17763.3770' and CLR Version is '4.0.30319.42000'.
2023-05-28 13:52:21,392 3976 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2023-05-28 13:52:21,454 3976 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2023-05-28 13:52:21,454 3976 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'.
2023-05-28 13:52:21,470 3976 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2023-05-28 13:52:21,470 3976 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2023-05-28 13:52:21,486 3976 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2023-05-28 13:52:21,486 3976 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2023-05-28 13:52:21,501 3976 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2023-05-28 13:52:21,501 3976 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2023-05-28 13:52:21,517 3976 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2023-05-28 13:52:21,517 3976 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2023-05-28 13:52:21,533 3976 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2023-05-28 13:52:21,533 3976 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2023-05-28 13:52:21,548 3976 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2023-05-28 13:52:21,548 3976 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2023-05-28 13:52:21,564 3976 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2023-05-28 13:52:21,564 3976 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2023-05-28 13:52:21,579 3976 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2023-05-28 13:52:21,579 3976 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2023-05-28 13:52:21,595 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2023-05-28 13:52:21,595 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2023-05-28 13:52:21,610 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2023-05-28 13:52:21,610 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2023-05-28 13:52:21,626 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2023-05-28 13:52:21,626 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2023-05-28 13:52:21,642 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2023-05-28 13:52:21,642 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2023-05-28 13:52:21,642 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2023-05-28 13:52:21,657 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2023-05-28 13:52:21,674 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2023-05-28 13:52:21,674 3976 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2023-05-28 13:52:21,688 3976 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2023-05-28 13:52:21,688 3976 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2023-05-28 13:52:21,721 3976 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2023-05-28 13:52:21,736 3976 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2023-05-28 13:52:21,736 3976 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2023-05-28 13:52:21,736 3976 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2023-05-28 13:52:21,752 3976 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2023-05-28 13:52:21,752 3976 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2023-05-28 13:52:21,768 3976 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2023-05-28 13:52:21,768 3976 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2023-05-28 13:52:21,783 3976 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2023-05-28 13:52:21,783 3976 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2023-05-28 13:52:21,798 3976 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2023-05-28 13:52:21,798 3976 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2023-05-28 13:52:21,815 3976 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2023-05-28 13:52:21,815 3976 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2023-05-28 13:52:21,829 3976 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2023-05-28 13:52:21,829 3976 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2023-05-28 13:52:21,829 3976 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2023-05-28 13:52:21,876 3976 [DEBUG] - Loading community extensions
2023-05-28 13:52:21,908 3976 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
2023-05-28 13:52:21,908 3976 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
2023-05-28 13:52:22,033 3976 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2023-05-28 13:52:22,049 3976 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2023-05-28 13:52:22,049 3976 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2023-05-28 13:52:22,065 3976 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2023-05-28 13:52:22,079 3976 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2023-05-28 13:52:22,079 3976 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2023-05-28 13:52:22,079 3976 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'.
2023-05-28 13:52:22,095 3976 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2023-05-28 13:52:22,095 3976 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2023-05-28 13:52:22,111 3976 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2023-05-28 13:52:22,111 3976 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2023-05-28 13:52:22,126 3976 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2023-05-28 13:52:22,126 3976 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2023-05-28 13:52:22,143 3976 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2023-05-28 13:52:22,143 3976 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2023-05-28 13:52:22,157 3976 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2023-05-28 13:52:22,157 3976 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2023-05-28 13:52:22,173 3976 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2023-05-28 13:52:22,173 3976 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2023-05-28 13:52:22,189 3976 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2023-05-28 13:52:22,189 3976 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2023-05-28 13:52:22,205 3976 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2023-05-28 13:52:22,205 3976 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2023-05-28 13:52:22,205 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2023-05-28 13:52:22,220 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2023-05-28 13:52:22,220 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2023-05-28 13:52:22,236 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2023-05-28 13:52:22,252 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2023-05-28 13:52:22,252 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2023-05-28 13:52:22,267 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2023-05-28 13:52:22,267 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2023-05-28 13:52:22,283 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2023-05-28 13:52:22,283 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2023-05-28 13:52:22,299 3976 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2023-05-28 13:52:22,299 3976 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2023-05-28 13:52:22,299 3976 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2023-05-28 13:52:22,314 3976 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2023-05-28 13:52:22,314 3976 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2023-05-28 13:52:22,329 3976 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2023-05-28 13:52:22,329 3976 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2023-05-28 13:52:22,345 3976 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2023-05-28 13:52:22,361 3976 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2023-05-28 13:52:22,377 3976 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2023-05-28 13:52:22,377 3976 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2023-05-28 13:52:22,392 3976 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2023-05-28 13:52:22,392 3976 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2023-05-28 13:52:22,407 3976 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2023-05-28 13:52:22,407 3976 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2023-05-28 13:52:22,423 3976 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2023-05-28 13:52:22,423 3976 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2023-05-28 13:52:22,439 3976 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2023-05-28 13:52:22,439 3976 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2023-05-28 13:52:22,454 3976 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2023-05-28 13:52:22,454 3976 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2023-05-28 13:52:22,470 3976 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2023-05-28 13:52:22,470 3976 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2023-05-28 13:52:22,486 3976 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2023-05-28 13:52:22,486 3976 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2023-05-28 13:52:22,486 3976 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyPath'.
2023-05-28 13:52:22,502 3976 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2023-05-28 13:52:22,517 3976 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2023-05-28 13:52:22,517 3976 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2023-05-28 13:52:22,532 3976 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2023-05-28 13:52:22,532 3976 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2023-05-28 13:52:22,532 3976 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2023-05-28 13:52:22,548 3976 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2023-05-28 13:52:22,548 3976 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2023-05-28 13:52:22,564 3976 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2023-05-28 13:52:22,564 3976 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2023-05-28 13:52:22,580 3976 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2023-05-28 13:52:22,595 3976 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2023-05-28 13:52:22,595 3976 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2023-05-28 13:52:22,611 3976 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2023-05-28 13:52:22,611 3976 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2023-05-28 13:52:22,611 3976 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2023-05-28 13:52:22,627 3976 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2023-05-28 13:52:22,642 3976 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2023-05-28 13:52:22,642 3976 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2023-05-28 13:52:22,658 3976 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2023-05-28 13:52:22,673 3976 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2023-05-28 13:52:22,673 3976 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2023-05-28 13:52:22,673 3976 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2023-05-28 13:52:22,689 3976 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2023-05-28 13:52:22,689 3976 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2023-05-28 13:52:22,705 3976 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2023-05-28 13:52:22,705 3976 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2023-05-28 13:52:22,721 3976 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2023-05-28 13:52:22,721 3976 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2023-05-28 13:52:22,736 3976 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2023-05-28 13:52:22,736 3976 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2023-05-28 13:52:22,751 3976 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2023-05-28 13:52:22,751 3976 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2023-05-28 13:52:22,767 3976 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2023-05-28 13:52:22,767 3976 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2023-05-28 13:52:22,782 3976 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2023-05-28 13:52:22,782 3976 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2023-05-28 13:52:22,798 3976 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2023-05-28 13:52:22,798 3976 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2023-05-28 13:52:22,814 3976 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2023-05-28 13:52:22,814 3976 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2023-05-28 13:52:22,829 3976 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2023-05-28 13:52:22,829 3976 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2023-05-28 13:52:22,845 3976 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2023-05-28 13:52:22,845 3976 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2023-05-28 13:52:22,861 3976 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2023-05-28 13:52:22,861 3976 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2023-05-28 13:52:22,876 3976 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2023-05-28 13:52:22,876 3976 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2023-05-28 13:52:22,970 3976 [DEBUG] - ---------------------------Script Execution---------------------------
2023-05-28 13:52:23,003 3976 [DEBUG] - Running 'ChocolateyScriptRunner' for wazuh-agent v4.4.3 with packageScript 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyuninstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\wazuh-agent', installArguments: '', packageParameters: '', preRunHookScripts: '', postRunHookScripts: '',
2023-05-28 13:52:23,080 3976 [DEBUG] - Running package script 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools\chocolateyuninstall.ps1'
2023-05-28 13:52:23,126 3976 [WARN ] - WARNING: wazuh-agent has already been uninstalled by other means.
2023-05-28 13:52:23,158 3976 [DEBUG] - ----------------------------------------------------------------------
2023-05-28 13:52:23,173 3976 [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 '' -preRunHookScripts $null -postRunHookScripts $null'] exited with '0'.
2023-05-28 13:52:23,220 3976 [INFO ] - Running auto uninstaller...
2023-05-28 13:52:23,235 3976 [DEBUG] - Sleeping for 2 seconds to allow Windows to finish cleaning up.
2023-05-28 13:52:25,251 3976 [DEBUG] - Preparing uninstall key 'MsiExec.exe /X{292D4192-20CF-425F-9ADC-71198BB49E7B}' for 'Wazuh Agent'
2023-05-28 13:52:25,314 3976 [DEBUG] - Uninstaller path is 'MsiExec.exe'
2023-05-28 13:52:25,314 3976 [DEBUG] - Installer type is 'MsiInstaller'
2023-05-28 13:52:25,329 3976 [DEBUG] - Setting up uninstall logging directory at C:\Users\vagrant\AppData\Local\Temp\chocolatey\wazuh-agent\4.4.3
2023-05-28 13:52:25,329 3976 [DEBUG] - Args are '/X{292D4192-20CF-425F-9ADC-71198BB49E7B} /qn /norestart'
2023-05-28 13:52:25,345 3976 [DEBUG] - Calling command ['"MsiExec.exe" /X{292D4192-20CF-425F-9ADC-71198BB49E7B} /qn /norestart']
2023-05-28 13:52:29,267 3976 [DEBUG] - Command ['"MsiExec.exe" /X{292D4192-20CF-425F-9ADC-71198BB49E7B} /qn /norestart'] exited with '0'
2023-05-28 13:52:29,267 3976 [INFO ] - Auto uninstaller has successfully uninstalled wazuh-agent or detected previous uninstall.
2023-05-28 13:52:29,283 3976 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2023-05-28 13:52:29,407 3976 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2023-05-28 13:52:29,424 3976 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bkp\wazuh-agent".
2023-05-28 13:52:29,485 3976 [DEBUG] - [NuGet] Removed file 'chocolateyuninstall.ps1' to folder 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools'.
2023-05-28 13:52:29,501 3976 [DEBUG] - [NuGet] Removed file 'helpers.ps1' to folder 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools'.
2023-05-28 13:52:29,517 3976 [DEBUG] - [NuGet] Removed file 'chocolateyinstall.ps1' to folder 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools'.
2023-05-28 13:52:29,533 3976 [DEBUG] - [NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\wazuh-agent\tools'.
2023-05-28 13:52:29,533 3976 [DEBUG] - [NuGet] Removed file 'wazuh-agent.nuspec' to folder 'C:\ProgramData\chocolatey\lib\wazuh-agent'.
2023-05-28 13:52:29,548 3976 [DEBUG] - [NuGet] Removed file 'wazuh-agent.nupkg' to folder 'C:\ProgramData\chocolatey\lib\wazuh-agent'.
2023-05-28 13:52:29,548 3976 [DEBUG] - [NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\wazuh-agent'.
2023-05-28 13:52:29,564 3976 [INFO ] - [NuGet] Successfully uninstalled 'wazuh-agent 4.4.3'.
2023-05-28 13:52:29,579 3976 [INFO ] - wazuh-agent has been successfully uninstalled.
2023-05-28 13:52:29,595 3976 [DEBUG] - Removing nupkg if it still exists.
2023-05-28 13:52:29,595 3976 [DEBUG] - Ensuring removal of installation files.
2023-05-28 13:52:29,610 3976 [DEBUG] - Ensuring removal of package cache files.
2023-05-28 13:52:29,610 3976 [DEBUG] - Attempting to delete directory "C:\Users\vagrant\AppData\Local\Temp\chocolatey\wazuh-agent\4.4.3".
2023-05-28 13:52:29,658 3976 [WARN ] -
Chocolatey uninstalled 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2023-05-28 13:52:29,673 3976 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2023-05-28 13:52:29,720 3976 [DEBUG] - Exiting with 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment