Skip to content

Instantly share code, notes, and snippets.

@choco-bot
Created December 30, 2023 15:31
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/1e145b753421a8508a7fb3d3a67a764a to your computer and use it in GitHub Desktop.
Save choco-bot/1e145b753421a8508a7fb3d3a67a764a to your computer and use it in GitHub Desktop.
openssh v8.9.1-beta1 - Passed - Package Tests Results

openssh v8.9.1-beta1 - Passed - Package Test Results

  • https://community.chocolatey.org/packages/openssh/8.9.1-beta1
  • Tested 30 Dec 2023 15:31:14 +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\openssh\openssh.nupkg" checksum="1F536E9B88E8D94E5B115F81D2C73E0E" />
<file path="C:\ProgramData\chocolatey\lib\openssh\openssh.nuspec" checksum="C9812BFD443A742D1658A41B7A6AD7A5" />
<file path="C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe.ignore" checksum="D41D8CD98F00B204E9800998ECF8427E" />
<file path="C:\ProgramData\chocolatey\lib\openssh\tools\barebonesinstaller.ps1" checksum="4EF4A2A2F7DF1E58FEFC7B2796C3D30B" />
<file path="C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1" checksum="C058BFE6AED127D66338F6968DDAD4EE" />
<file path="C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1" checksum="52ED6CE8FD63609AF9144F51A2B4841B" />
<file path="C:\ProgramData\chocolatey\lib\openssh\tools\Get-NetStat.ps1" checksum="5639E1A979924BAB1F81DEDC52C89003" />
<file path="C:\ProgramData\chocolatey\lib\openssh\tools\LICENSE.txt" checksum="1FA7983BE13136F10B6E346AC0F8ACE3" />
<file path="C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win32.zip" checksum="07C5C50FF61553D42EB5E3F51DF492A2" />
<file path="C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip" checksum="9663F220979730CD015E62AAEDF8DF60" />
<file path="C:\ProgramData\chocolatey\lib\openssh\tools\Set-SSHDefaultShell.ps1" checksum="1A26224C48488038D136D9F06A7B9E73" />
<file path="C:\ProgramData\chocolatey\lib\openssh\tools\SetSpecialPrivileges.ps1" checksum="543B78A2B38141A98F2AF8BD3F10893B" />
<file path="C:\ProgramData\chocolatey\lib\openssh\tools\VERIFICATION.txt" checksum="A3C11FB5F52B25E893CFB4FA8539F2E4" />
</files>
</fileSnapshot>
2023-12-30 15:29:09,048 1940 [DEBUG] - XmlConfiguration is now operational
2023-12-30 15:29:09,329 1940 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2023-12-30 15:29:09,355 1940 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2023-12-30 15:29:09,361 1940 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2023-12-30 15:29:09,377 1940 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2023-12-30 15:29:09,377 1940 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2023-12-30 15:29:09,394 1940 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2023-12-30 15:29:09,394 1940 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2023-12-30 15:29:09,409 1940 [DEBUG] - Adding new type 'RubyGemsService' for type 'IListSourceRunner' from assembly 'choco'
2023-12-30 15:29:09,409 1940 [DEBUG] - Adding new type 'RubyGemsService' for type 'IInstallSourceRunner' from assembly 'choco'
2023-12-30 15:29:09,423 1940 [DEBUG] - Adding new type 'SystemStateValidation' for type 'IValidation' from assembly 'choco'
2023-12-30 15:29:09,438 1940 [DEBUG] - Adding new type 'CacheFolderLockdownValidation' for type 'IValidation' from assembly 'choco'
2023-12-30 15:29:10,822 1940 [DEBUG] - Adding new type 'EmptyOrInvalidUrlMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-12-30 15:29:10,833 1940 [DEBUG] - Adding new type 'FrameWorkReferencesMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-12-30 15:29:10,850 1940 [DEBUG] - Adding new type 'IconMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-12-30 15:29:10,863 1940 [DEBUG] - Adding new type 'LicenseMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-12-30 15:29:10,879 1940 [DEBUG] - Adding new type 'PackageTypesMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-12-30 15:29:10,879 1940 [DEBUG] - Adding new type 'ReadmeMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-12-30 15:29:10,891 1940 [DEBUG] - Adding new type 'RepositoryMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-12-30 15:29:10,909 1940 [DEBUG] - Adding new type 'RequireLicenseAcceptanceMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-12-30 15:29:10,909 1940 [DEBUG] - Adding new type 'ServicableMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-12-30 15:29:10,935 1940 [DEBUG] - Adding new type 'VersionMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-12-30 15:29:10,974 1940 [DEBUG] - Registering new command 'cache' in assembly 'choco'
2023-12-30 15:29:10,986 1940 [DEBUG] - Registering new command 'list' in assembly 'choco'
2023-12-30 15:29:11,004 1940 [DEBUG] - Registering new command 'template' in assembly 'choco'
2023-12-30 15:29:11,017 1940 [DEBUG] - Registering new command 'export' in assembly 'choco'
2023-12-30 15:29:11,051 1940 [DEBUG] - Registering new command 'info' in assembly 'choco'
2023-12-30 15:29:11,064 1940 [DEBUG] - Registering new command 'help' in assembly 'choco'
2023-12-30 15:29:11,079 1940 [DEBUG] - Registering new command 'config' in assembly 'choco'
2023-12-30 15:29:11,110 1940 [DEBUG] - Registering new command 'feature' in assembly 'choco'
2023-12-30 15:29:11,134 1940 [DEBUG] - Registering new command 'new' in assembly 'choco'
2023-12-30 15:29:11,158 1940 [DEBUG] - Registering new command 'outdated' in assembly 'choco'
2023-12-30 15:29:11,173 1940 [DEBUG] - Registering new command 'pack' in assembly 'choco'
2023-12-30 15:29:11,189 1940 [DEBUG] - Registering new command 'pin' in assembly 'choco'
2023-12-30 15:29:11,211 1940 [DEBUG] - Registering new command 'push' in assembly 'choco'
2023-12-30 15:29:11,236 1940 [DEBUG] - Registering new command 'apikey' in assembly 'choco'
2023-12-30 15:29:11,258 1940 [DEBUG] - Registering new command 'source' in assembly 'choco'
2023-12-30 15:29:11,273 1940 [DEBUG] - Registering new command 'uninstall' in assembly 'choco'
2023-12-30 15:29:11,284 1940 [DEBUG] - Registering new command 'upgrade' in assembly 'choco'
2023-12-30 15:29:11,284 1940 [DEBUG] - Registering new command 'search' in assembly 'choco'
2023-12-30 15:29:11,299 1940 [DEBUG] - Registering new command 'unpackself' in assembly 'choco'
2023-12-30 15:29:11,313 1940 [DEBUG] - Registering new command 'install' in assembly 'choco'
2023-12-30 15:29:11,876 1940 [INFO ] - ============================================================
2023-12-30 15:29:12,503 1940 [INFO ] - Chocolatey v2.2.2
2023-12-30 15:29:12,564 1940 [DEBUG] - Chocolatey is running on Windows v 10.0.17763.0
2023-12-30 15:29:12,610 1940 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2023-12-30 15:29:12,643 1940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2023-12-30 15:29:12,707 1940 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install openssh --version 8.9.1-beta1 -fdvy --execution-timeout=2700 --allow-downgrade
2023-12-30 15:29:12,733 1940 [DEBUG] - Received arguments: install openssh --version 8.9.1-beta1 -fdvy --execution-timeout=2700 --allow-downgrade
2023-12-30 15:29:13,064 1940 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2023-12-30 15:29:13,151 1940 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2023-12-30 15:29:13,193 1940 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2023-12-30 15:29:13,641 1940 [DEBUG] - Performing validation checks.
2023-12-30 15:29:13,677 1940 [DEBUG] - Global Configuration Validation Checks:
2023-12-30 15:29:13,689 1940 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked
2023-12-30 15:29:13,739 1940 [DEBUG] - System State Validation Checks:
2023-12-30 15:29:13,768 1940 [DEBUG] - Reboot Requirement Checks:
2023-12-30 15:29:13,819 1940 [DEBUG] - - Pending Computer Rename = Checked
2023-12-30 15:29:13,849 1940 [DEBUG] - - Pending Component Based Servicing = Checked
2023-12-30 15:29:13,877 1940 [DEBUG] - - Pending Windows Auto Update = Checked
2023-12-30 15:29:13,907 1940 [DEBUG] - - Pending File Rename Operations = Ignored
2023-12-30 15:29:13,940 1940 [DEBUG] - - Pending Windows Package Installer = Checked
2023-12-30 15:29:13,940 1940 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked
2023-12-30 15:29:13,977 1940 [DEBUG] - Cache Folder Lockdown Checks:
2023-12-30 15:29:13,977 1940 [DEBUG] - - Elevated State = Checked
2023-12-30 15:29:13,987 1940 [DEBUG] - - Folder Exists = Checked
2023-12-30 15:29:14,024 1940 [DEBUG] - - Folder lockdown = Checked
2023-12-30 15:29:14,064 1940 [INFO ] - 3 validations performed. 3 success(es), 0 warning(s), and 0 error(s).
2023-12-30 15:29:14,191 1940 [DEBUG] - The source 'c:\cached-packages;https://community.chocolatey.org/api/v2/' evaluated to a 'normal' source type
2023-12-30 15:29:14,204 1940 [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-12-30 15:29:14,348 1940 [DEBUG] - Configuration: CommandName='install'|
CacheLocation='C:\Users\vagrant\AppData\Local\Temp\chocolatey'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='c:\cached-packages;https://community.chocolatey.org/api/v2/'|
SourceType='normal'|ShowOnlineHelp='False'|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='openssh'|
Version='8.9.1-beta1'|AllVersions='False'|
SkipPackageInstallProvider='False'|SkipHookScripts='False'|
PackageNames='openssh'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
CacheExpirationInMinutes='30'|AllowDowngrade='True'|
ForceDependencies='False'|PinPackage='False'|
Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.17763.0'|
Information.PlatformName='Windows Server 2016'|
Information.ChocolateyVersion='2.2.2.0'|
Information.ChocolateyProductVersion='2.2.2'|
Information.FullName='choco, Version=2.2.2.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='False'|
Information.UserName='vagrant'|
Information.UserDomainName='WIN-1FSTBHT10UQ'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|
Information.IsLicensedAssemblyLoaded='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'|
ListCommand.ExplicitPageSize='False'|
ListCommand.ExplicitSource='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.Command='Unknown'|PinCommand.Command='Unknown'|
OutdatedCommand.IgnorePinned='False'|
ExportCommand.IncludeVersionNumbers='False'|Proxy.BypassOnLocal='True'|
TemplateCommand.Command='unknown'|CacheCommand.Command='Unknown'|
CacheCommand.RemoveExpiredItemsOnly='False'|
2023-12-30 15:29:14,362 1940 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
2023-12-30 15:29:14,393 1940 [INFO ] - Installing the following packages:
2023-12-30 15:29:14,411 1940 [INFO ] - openssh
2023-12-30 15:29:14,431 1940 [INFO ] - By installing, you accept licenses for the packages.
2023-12-30 15:29:14,472 1940 [DEBUG] - Current environment values (may contain sensitive data):
2023-12-30 15:29:14,472 1940 [DEBUG] - * 'Path'='C:\Users\vagrant\AppData\Local\Microsoft\WindowsApps;' ('User')
2023-12-30 15:29:14,485 1940 [DEBUG] - * 'TEMP'='C:\Users\vagrant\AppData\Local\Temp' ('User')
2023-12-30 15:29:14,485 1940 [DEBUG] - * 'TMP'='C:\Users\vagrant\AppData\Local\Temp' ('User')
2023-12-30 15:29:14,501 1940 [DEBUG] - * 'ChocolateyLastPathUpdate'='133484165807131239' ('User')
2023-12-30 15:29:14,516 1940 [DEBUG] - * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine')
2023-12-30 15:29:14,516 1940 [DEBUG] - * 'DriverData'='C:\Windows\System32\Drivers\DriverData' ('Machine')
2023-12-30 15:29:14,531 1940 [DEBUG] - * 'OS'='Windows_NT' ('Machine')
2023-12-30 15:29:14,547 1940 [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-12-30 15:29:14,564 1940 [DEBUG] - * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine')
2023-12-30 15:29:14,564 1940 [DEBUG] - * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine')
2023-12-30 15:29:14,635 1940 [DEBUG] - * 'PSModulePath'='C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules' ('Machine')
2023-12-30 15:29:14,645 1940 [DEBUG] - * 'TEMP'='C:\Windows\TEMP' ('Machine')
2023-12-30 15:29:14,676 1940 [DEBUG] - * 'TMP'='C:\Windows\TEMP' ('Machine')
2023-12-30 15:29:14,690 1940 [DEBUG] - * 'USERNAME'='SYSTEM' ('Machine')
2023-12-30 15:29:14,690 1940 [DEBUG] - * 'windir'='C:\Windows' ('Machine')
2023-12-30 15:29:14,705 1940 [DEBUG] - * 'NUMBER_OF_PROCESSORS'='10' ('Machine')
2023-12-30 15:29:14,720 1940 [DEBUG] - * 'PROCESSOR_LEVEL'='6' ('Machine')
2023-12-30 15:29:14,737 1940 [DEBUG] - * 'PROCESSOR_IDENTIFIER'='Intel64 Family 6 Model 85 Stepping 7, GenuineIntel' ('Machine')
2023-12-30 15:29:14,754 1940 [DEBUG] - * 'PROCESSOR_REVISION'='5507' ('Machine')
2023-12-30 15:29:14,754 1940 [DEBUG] - * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine')
2023-12-30 15:29:15,866 1940 [DEBUG] - Running list with the following filter = ''
2023-12-30 15:29:15,897 1940 [DEBUG] - --- Start of List ---
2023-12-30 15:29:16,010 1940 [DEBUG] - Resolving resource PackageSearchResource for source C:\ProgramData\chocolatey\lib
2023-12-30 15:29:16,938 1940 [DEBUG] - chocolatey 2.2.2
2023-12-30 15:29:17,004 1940 [DEBUG] - chocolatey-windowsupdate.extension 1.0.5
2023-12-30 15:29:17,034 1940 [DEBUG] - KB2919355 1.0.20160915
2023-12-30 15:29:17,068 1940 [DEBUG] - KB2919442 1.0.20160915
2023-12-30 15:29:17,082 1940 [DEBUG] - KB2999226 1.0.20181019
2023-12-30 15:29:17,098 1940 [DEBUG] - KB3035131 1.0.3
2023-12-30 15:29:17,111 1940 [DEBUG] - KB3118401 1.0.5
2023-12-30 15:29:17,157 1940 [DEBUG] - virtualbox-guest-additions-guest.install 7.0.12
2023-12-30 15:29:17,173 1940 [DEBUG] - --- End of List ---
2023-12-30 15:29:17,239 1940 [DEBUG] - Resolving resource PackageMetadataResource for source c:\cached-packages
2023-12-30 15:29:18,382 1940 [DEBUG] - Resolving resource PackageMetadataResource for source https://community.chocolatey.org/api/v2/
2023-12-30 15:29:19,682 1940 [INFO ] - [NuGet] GET https://community.chocolatey.org/api/v2/Packages(Id='openssh',Version='8.9.1-beta1')
2023-12-30 15:29:20,173 1940 [INFO ] - [NuGet] OK https://community.chocolatey.org/api/v2/Packages(Id='openssh',Version='8.9.1-beta1') 472ms
2023-12-30 15:29:20,741 1940 [DEBUG] - Resolving resource DependencyInfoResource for source c:\cached-packages
2023-12-30 15:29:21,915 1940 [DEBUG] - Resolving resource DependencyInfoResource for source https://community.chocolatey.org/api/v2/
2023-12-30 15:29:21,975 1940 [INFO ] - [NuGet] CACHE https://community.chocolatey.org/api/v2/Packages(Id='openssh',Version='8.9.1-beta1')
2023-12-30 15:29:22,375 1940 [INFO ] - [NuGet] Resolving dependency information took 0 ms
2023-12-30 15:29:22,426 1940 [DEBUG] - Resolving resource DownloadResource for source https://community.chocolatey.org/api/v2/
2023-12-30 15:29:22,603 1940 [DEBUG] - Attempting to delete file "".
2023-12-30 15:29:22,690 1940 [INFO ] - [NuGet] GET https://community.chocolatey.org/api/v2/package/openssh/8.9.1-beta1
2023-12-30 15:29:23,406 1940 [INFO ] - [NuGet] OK https://community.chocolatey.org/api/v2/package/openssh/8.9.1-beta1 687ms
2023-12-30 15:29:23,531 1940 [INFO ] - [NuGet] Acquiring lock for the installation of openssh 8.9.1-beta1
2023-12-30 15:29:23,687 1940 [INFO ] - [NuGet] Acquired lock for the installation of openssh 8.9.1-beta1
2023-12-30 15:29:29,314 1940 [INFO ] - [NuGet] Installed openssh 8.9.1-beta1 from https://community.chocolatey.org/api/v2/ with content hash HosQ280Tw5t3Dgs9UlH2lLZoX1QE7mWmw+U9kdbiP6KPjHQA/UBdTosQotYsuH41mCuqjrUpC7958F51/V9eZA==.
2023-12-30 15:29:29,443 1940 [INFO ] - [NuGet] Adding package 'openssh.8.9.1-beta1' to folder 'C:\ProgramData\chocolatey\lib'
2023-12-30 15:29:29,840 1940 [INFO ] - [NuGet] Added package 'openssh.8.9.1-beta1' to folder 'C:\ProgramData\chocolatey\lib'
2023-12-30 15:29:29,845 1940 [DEBUG] - Attempting to delete file "C:\Users\vagrant\AppData\Local\Temp\chocolatey\ChocolateyScratch\openssh/8.9.1-beta1\openssh.8.9.1-beta1.nupkg".
2023-12-30 15:29:29,893 1940 [DEBUG] - Attempting to delete file "C:\Users\vagrant\AppData\Local\Temp\chocolatey\ChocolateyScratch\openssh/8.9.1-beta1\.nupkg.metadata".
2023-12-30 15:29:29,893 1940 [DEBUG] - Attempting to delete file "C:\Users\vagrant\AppData\Local\Temp\chocolatey\ChocolateyScratch\openssh/8.9.1-beta1\openssh.8.9.1-beta1.nupkg.sha512".
2023-12-30 15:29:29,906 1940 [INFO ] -
openssh v8.9.1-beta1 (forced)
2023-12-30 15:29:30,085 1940 [INFO ] - openssh package files install completed. Performing other installation steps.
2023-12-30 15:29:30,282 1940 [DEBUG] - Setting installer args for openssh
2023-12-30 15:29:30,282 1940 [DEBUG] - Setting package parameters for openssh
2023-12-30 15:29:30,329 1940 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1':
2023-12-30 15:29:30,383 1940 [DEBUG] -
<#
ATTENTION: This code is used extensively to run under PowerShell 2.0 to update
images from RTM / SP1 source for Windows 7 and Server 2008 R2. It is also
used under Powershell Core to add OpenSSH to Nano. Test all enhancements and
fixes under these two specialty cases (speciality for Chocolatey packagers who are
likely up to the latest version on everything PowerShell).
#>
$ErrorActionPreference = 'Stop'; # stop on all errors
$ProductName = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name 'ProductName').ProductName
$EditionId = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name 'EditionID').EditionId
#This has to work for Win7 (no get-ciminstance) and Nano (no get-wmiobject) - each of which specially construct win32_operatingsystem.version to handle before and after Windows 10 version numbers (which are in different registry keys)
If ($psversiontable.psversion.major -lt 3)
{
$OSVersionString = (Get-WMIObject Win32_OperatingSystem).version
}
Else
{
$OSVersionString = (Get-CIMInstance Win32_OperatingSystem).version
}
Write-Output "Running on: $ProductName, ($EditionId)"
Write-Output "Windows Version: $OSVersionString"
$RunningOnNano = $False
If ($EditionId -ilike '*Nano*')
{$RunningOnNano = $True}
If (Test-Path variable:shimgen)
{$RunningUnderChocolatey = $True}
Else
{ Write-Output "Running Without Chocolatey"}
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$OSBits = ([System.IntPtr]::Size * 8) #Get-ProcessorBits
#On 64-bit, always favor 64-bit Program Files no matter what our execution is now (works back past XP / Server 2003)
If ($env:ProgramFiles.contains('x86'))
{
$PF = $env:ProgramFiles.replace(' (x86)','')
}
Else
{
$PF = $env:ProgramFiles
}
If (Test-Path "$env:windir\sysnative")
{ #We are running in a 32-bit process under 64-bit Windows
$sys32dir = "$env:windir\sysnative"
}
Else
{ #We are on a 32-bit OS, or 64-bit proc on 64-bit OS
$sys32dir = "$env:windir\system32"
}
$filename = "$toolsdir\OpenSSH-Win$($OSBits).zip"
#$TargetFolder = "$PF\OpenSSH"
#$TargetFolderOld = "$PF\OpenSSH-Win$($OSBits)"
$TargetFolder = "$PF\OpenSSH-Win$($OSBits)"
$ExtractFolder = "$env:temp\OpenSSHTemp"
$sshdpath = Join-Path $TargetFolder "sshd.exe"
$sshagentpath = Join-Path $TargetFolder "ssh-agent.exe"
$sshdatadir = Join-Path $env:ProgramData "\ssh"
$logsdir = Join-Path $SSHDataDir "logs"
$packageArgs = @{
packageName = 'openssh'
unziplocation = "$ExtractFolder"
fileType = 'EXE_MSI_OR_MSU' #only one of these: exe, msi, msu
checksum = '5C0FA75E27F8074BD00EAF090E14C161FB4696BC'
checksumType = 'SHA1'
checksum64 = 'AA79047DCA7D4B5C7F767249FE673CF561DAAE97'
checksumType64= 'SHA1'
}
If ($RunningUnderChocolatey)
{
# Default the values before reading params
$SSHServerFeature = $false
$KeyBasedAuthenticationFeature = $false
$SSHServerPort = '22'
$arguments = @{};
$packageParameters = $env:chocolateyPackageParameters
}
$OpeningMessage = @"
************************************************************************************
************************************************************************************
This package is a Universal Installer and can ALSO install Win32-OpenSSH on
Nano, Server Core, Docker Containers and more WITHOUT using Chocolatey.
See the following for more details:
https://github.com/DarwinJS/ChocoPackages/blob/master/openssh/readme.md
************************************************************************************
************************************************************************************
"@
Write-Output $OpeningMessage
function Get-PackageParametersCustom {
[CmdletBinding()]
param(
[string] $Parameters = $Env:ChocolateyPackageParameters,
# Allows splatting with arguments that do not apply and future expansion. Do not use directly.
[parameter(ValueFromRemainingArguments = $true)]
[Object[]] $IgnoredArguments
)
$res = @{}
$re = "\/([a-zA-Z0-9]+)(:[`"'].+?[`"']|[^ ]+)?"
$results = $Parameters | Select-String $re -AllMatches | select -Expand Matches
foreach ($m in $results) {
if (!$m) { continue } # must because of posh 2.0 bug: https://github.com/chocolatey/chocolatey-coreteampackages/issues/465
$a = $m.Value -split ':'
$opt = $a[0].Substring(1); $val = $a[1..100] -join ':'
if ($val -match '^(".+")|(''.+'')$') {$val = $val -replace '^.|.$'}
$res[ $opt ] = if ($val) { $val } else { $true }
}
$res
}
# Now parse the packageParameters using good old regular expression
if ($packageparameters) {
$pp = Get-PackageParametersCustom
if ($pp.SSHAgentFeature) {
Write-Host "/SSHAgentFeature was used, including SSH Agent Service."
$SSHAgentFeature = $true
}
if ($pp.SSHServerFeature) {
Write-Host "/SSHServerFeature was used, including SSH Server Feature."
$SSHServerFeature = $true
}
if ($pp.OverWriteSSHDConf) {
Write-Host "/OverWriteSSHDConf was used, will overwrite any existing sshd_conf with one from install media."
$OverWriteSSHDConf = $true
}
if ($pp.SSHServerPort) {
$SSHServerPort = $pp.Get_Item("SSHServerPort")
Write-Host "/SSHServerPort was used, attempting to use SSHD listening port $SSHServerPort."
If (!$SSHServerFeature)
{
Write-Host "You forgot to specify /SSHServerFeature with /SSHServerPort, autofixing for you, enabling /SSHServerFeature"
$SSHServerFeature = $true
}
}
if ($pp.SSHLogLevel) {
$ValidLogSettings = @('QUIET', 'FATAL', 'ERROR', 'INFO', 'VERBOSE', 'DEBUG', 'DEBUG1', 'DEBUG2','DEBUG3')
$SSHLogLevel = $pp.Get_Item("SSHLogLevel").toupper()
If ($ValidLogSettings -inotcontains $SSHLogLevel)
{Throw "$SSHLogLevel is not one of the valid values: $(($ValidLogSettings -join ' ') | out-string)"}
Write-Host "/SSHLogLevel was used, setting LogLevel in sshd_conf to $SSHLogLevel"
}
Else
{
$SSHLogLevel = $null
}
if ($pp.AlsoLogToFile) {
$AlsoLogToFile = $True
Write-Host '/AlsoLogToFile was used, setting AlsoLogToFile to $True'
}
if ($pp.TERM) {
$TERM = $pp.Get_Item("TERM")
Write-Host "/TERM was used, setting system TERM environment variable to $TERM"
$TERMSwitchUsed = $True
}
if ($pp.KeyBasedAuthenticationFeature) {
Write-Host "Including Key based authentication."
$KeyBasedAuthenticationFeature = $true
If (!$SSHServerFeature)
{
Write-Warning "KeyBasedAuthenticationFeature was specified, but is only value when SSHServerFeature is specified, ignoring..."
}
}
if ($pp.PathSpecsToProbeForShellEXEString) {
$PathSpecsToProbeForShellEXEString = $pp.Get_Item("PathSpecsToProbeForShellEXEString")
Write-Host "PathSpecsToProbeForShellEXEString was used, probing for suitable shell using search specs: $PathSpecsToProbeForShellEXEString"
}
if ($pp.AllowInsecureShellEXE) {
$AllowInsecureShellEXE = $True
}
if ($pp.SSHDefaultShellCommandOption) {
$SSHDefaultShellCommandOption = $pp.Get_Item("SSHDefaultShellCommandOption")
}
} else {
Write-Debug "No Package Parameters Passed in";
}
Function CheckServicePath ($ServiceEXE,$FolderToCheck)
{
if ($RunningOnNano) {
#The NANO TP5 Compatible Way:
Return ([bool](@(wmic service | ?{$_ -ilike "*$ServiceEXE*"}) -ilike "*$FolderToCheck*"))
}
Else
{
#The modern way:
Return ([bool]((Get-WmiObject win32_service | ?{$_.PathName -ilike "*$ServiceEXE*"} | select -expand PathName) -ilike "*$FolderToCheck*"))
}
}
#Extract Files Early
If ($RunningUnderChocolatey)
{
If (Test-Path $ExtractFolder)
{
Remove-Item $ExtractFolder -Recurse -Force
}
Get-ChocolateyUnzip "$filename" $ExtractFolder
}
Else
{
If (Test-Path "$toolsdir\7z.exe")
{
#covers nano
cd $toolsdir
start-process .\7z.exe -argumentlist "x `"$filename`" -o`"$ExtractFolder`" -aoa" -nonewwindow -wait
}
Else
{
Throw "You need a copy of 7z.exe next to this script for this operating system. You can get a copy at 7-zip.org"
}
}
If ($SSHServerFeature -OR $SSHAgentFeature)
{
. "$toolsdir\SetSpecialPrivileges.ps1"
}
If ($SSHServerFeature)
{ #Check if anything is already listening on port $SSHServerPort, which is not a previous version of this software.
$AtLeastOneSSHDPortListenerIsNotUs = $False
Write-Output "Probing for possible conflicts with SSHD server to be configured on port $SSHServerPort ..."
. "$toolsdir\Get-NetStat.ps1"
$procslisteningonRequestedSSHDPort = @(Get-Netstat -GetProcessDetails -FilterOnPort $SSHServerPort)
If ((checkservicepath 'svchost.exe -k SshBrokerGroup' 'Part of Microsoft SSH Server for Windows') -AND (checkservicepath 'svchost.exe -k SshProxyGroup' 'Part of Microsoft SSH Server for Windows'))
{
Write-Warning " > Detected that Developer Mode SSH is present (Probably due to enabling Windows 10 Developer Mode)"
$DeveloperModeSSHIsPresent = $True
}
If ($procslisteningonRequestedSSHDPort.count -ge 1)
{
ForEach ($proconRequestedSSHDPort in $procslisteningonRequestedSSHDPort)
{
Write-output " > Checking $($proconRequestedSSHDPort.Localaddressprocesspath) against path $TargetFolder"
If ("$($proconRequestedSSHDPort.Localaddressprocesspath)" -ilike "*$TargetFolder*")
{
Write-Output " > Found a previous version of Win32-OpenSSH installed by this package on Port $SSHServerPort."
}
Else
{
$AtLeastOneSSHDPortListenerIsNotUs = $True
Write-Warning " > Found something listening on Port $SSHServerPort that was not installed by this package."
Write-Warning " $($proconRequestedSSHDPort.LocalAddressProcessPath) is listening on Port $SSHServerPort"
$ProcessOccupyingPort = "$($proconRequestedSSHDPort.LocalAddressProcessPath)"
}
}
}
If ($AtLeastOneSSHDPortListenerIsNotUs)
{
$errorMessagePort = @"
"$ProcessOccupyingPort" is listening on port $SSHServerPort and you have not specified a different listening port (list above) using the /SSHServerPort parameter.
Please either deconfigure or deinstall whatever is running on Port $SSHServerPort and try again OR specify a different port for this SSHD Server using the /SSHServerPort package parameter.
If you see the message 'Detected that Developer Mode SSH is present' above, you may be able to simply disable the services 'SSHBroker' and 'SSHProxy'
"@
Throw $errorMessagePort
}
}
$SSHServiceInstanceExistsAndIsOurs = CheckServicePath 'sshd.exe' "$TargetFolder"
$SSHAGENTServiceInstanceExistsAndIsOurs = CheckServicePath 'ssh-agent.exe' "$TargetFolder"
If ($SSHServerFeature -AND (!$SSHServiceInstanceExistsAndIsOurs) -AND ([bool](Get-Service sshd -ErrorAction SilentlyContinue)))
{
$ExistingSSHDInstancePath = get-itemproperty hklm:\system\currentcontrolset\services\* | where {($_.ImagePath -ilike '*sshd.exe*')} | Select -expand ImagePath
Throw "You have requested that the SSHD service be installed, but this system appears to have an instance of an SSHD service configured for another folder ($ExistingSSHDInstancePath). You can remove the package switch /SSHServerFeature to install just the client tools, or you will need to remove that instance of SSHD to use the one that comes with this package."
}
If ((!$SSHServerFeature) -AND $SSHServiceInstanceExistsAndIsOurs)
{
Throw "There is a configured instance of the SSHD service, please specify the /SSHServerFeature to confirm it is OK to shutdown and upgrade the SSHD service at this time."
}
If ([bool](get-process ssh -erroraction silentlycontinue | where {$_.Path -ilike "*$TargetFolder*"}))
{
Throw "It appears you have instances of ssh.exe (client) running from the folder this package installs to, please terminate them and try again."
}
If ((Test-Path $TargetFolder) -AND (@(dir "$TargetFolder\*.exe").count -gt 0))
{
Write-Output "`r`nCURRENT VERSIONS OF SSH EXES:"
Write-Output "$(dir "$TargetFolder\*.exe"| select -expand fullname | get-command | select -expand fileversioninfo | ft filename, fileversion -auto | out-string)"
}
If ($SSHServiceInstanceExistsAndIsOurs -AND ([bool](Get-Service SSHD -ErrorAction SilentlyContinue | where {$_.Status -ieq 'Running'})))
{
#Shutdown and unregister service for upgrade
stop-service sshd -Force
Start-Sleep -seconds 3
If (([bool](Get-Service SSHD | where {$_.Status -ieq 'Running'})))
{
Throw "Could not stop the SSHD service, please stop manually and retry this package."
}
}
If ($SSHServiceInstanceExistsAndIsOurs)
{
Write-output "Stopping SSHD Service for upgrade..."
Stop-Service sshd
sc.exe delete sshd | out-null
}
If ($SSHAGENTServiceInstanceExistsAndIsOurs)
{
Stop-Service SSH-Agent -Force
Start-Sleep -seconds 3
If (([bool](Get-Service ssh-agent | where {$_.Status -ieq 'Running'})))
{
Throw "Could not stop the ssh-agent service, please stop manually and retry this package."
}
sc.exe delete ssh-agent | out-null
}
If ($OSBits -eq 64)
{
$SourceZipChecksum = $packageargs.checksum64
$SourceZipChecksumType = $packageargs.checksumType64
}
Else
{
$SourceZipChecksum = $packageargs.checksum
$SourceZipChecksumType = $packageargs.checksumType
}
If ([bool](get-command get-filehash -ea silentlycontinue))
{
If ((Get-FileHash $filename -Algorithm $SourceZipChecksumType).Hash -eq $SourceZipChecksum)
{
Write-Output "Hashes for internal source match"
}
Else
{
throw "Checksums for internal source do not match - something is wrong."
}
}
Else
{
Write-Output "Source files are internal to the package, checksums are not required nor checked."
}
Copy-Item "$ExtractFolder\*" "$PF" -Force -Recurse -Passthru -ErrorAction Stop
Copy-Item "$toolsdir\Set-SSHDefaultShell.ps1" "$TargetFolder" -Force -PassThru -ErrorAction Stop
Remove-Item "$ExtractFolder" -Force -Recurse
If ($RunningUnderChocolatey)
{
Install-ChocolateyPath "$TargetFolder" 'Machine'
}
Else
{
$PathToAdd = $TargetFolder
$ExistingPathArray = @(((Get-ItemProperty 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' | select -expand path).split(';')))
if (($ExistingPathArray -inotcontains $PathToAdd) -AND ($ExistingPathArray -inotcontains "$PathToAdd\"))
{
$Newpath = $ExistingPathArray + @("$PathToAdd")
$AssembledNewPath = ($newpath -join(';')).trimend(';')
Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' -Name 'PATH' -Value "$AssembledNewPath"
}
}
If ($env:Path -inotlike "*$TargetFolder*")
{
$env:path += ";$TargetFolder"
}
$ExistingTermValue = $null
$ExistingTermValue = (get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' -EA SilentlyContinue | Select -Expand TERM -EA SilentlyContinue)
If ((!$ExistingTermValue) -OR ($ExistingTermValue -ine $TERM))
{
Write-Host "Updating machine environment variable TERM from `"$ExistingTermValue`" to `"$TERM`""
Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' -Name 'TERM' -Value "$TERM"
}
If ($SSHAgentFeature)
{
New-Service -Name ssh-agent -BinaryPathName "$TargetFolder\ssh-agent.exe" -Description "SSH Agent" -StartupType Automatic | Out-Null
cmd.exe /c 'sc.exe sdset ssh-agent D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)(A;;RP;;;AU)'
Start-Service ssh-agent
Start-Sleep -seconds 3
}
If ($SSHServerFeature)
{
Write-Warning "You have specified SSHServerFeature - this machine is being configured as an SSH Server including opening port $SSHServerPort."
#create the ssh config folder and set its permissions
if(-not (test-path $sshdatadir -PathType Container))
{
$null = New-Item $sshdatadir -ItemType Directory -Force -ErrorAction Stop
}
$acl = Get-Acl -Path $sshdatadir
# following SDDL implies
# - owner - built in Administrators
# - disabled inheritance
# - Full access to System
# - Full access to built in Administrators
$acl.SetSecurityDescriptorSddlForm("O:BAD:PAI(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)(A;OICI;0x1200a9;;;AU)")
Set-Acl -Path $sshdatadir -AclObject $acl
# create logs folder and set its permissions
if(-not (test-path $logsdir -PathType Container))
{
$null = New-Item $logsdir -ItemType Directory -Force -ErrorAction Stop
}
$acl = Get-Acl -Path $logsdir
# following SDDL implies
# - owner - built in Administrators
# - disabled inheritance
# - Full access to System
# - Full access to built in Administrators
$acl.SetSecurityDescriptorSddlForm("O:BAD:PAI(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)")
Set-Acl -Path $logsdir -AclObject $acl
If((Test-Path "$TargetFolder\sshd_config"))
{
Write-Host "Migrating existing sshd_config to new location `"$sshdatadir`""
Move-Item "$TargetFolder\sshd_config" $sshdatadir -force
}
#for clean config copy sshd_config_default to $sshdatadir\sshd_config
$sshdconfigpath = Join-Path $sshdatadir "sshd_config"
$sshddefaultconfigpath = Join-Path $TargetFolder "sshd_config_default"
if(-not (test-path $sshdconfigpath -PathType Leaf))
{
$null = Copy-Item $sshddefaultconfigpath -Destination $sshdconfigpath -ErrorAction Stop
}
If((Test-Path "$TargetFolder\ssh_host_*"))
{
Write-Host "Migrating existing ssh host keys to new location `"$sshdatadir`""
Move-Item "$TargetFolder\ssh_host_*" $sshdatadir -force
}
If ($RunningOnNano)
{
Write-Warning "Forcing on"
$AlsoLogToFile = $True
}
If((Test-Path "$sshdconfigpath"))
{
$CurrentLogLevelConfig = ((gc "$sshdconfigpath") -imatch "^#*LogLevel\s\w*\b.*$")
Write-Output 'Setting up SSH Logging'
If ($SSHLogLevel)
{ #command line specified a log level - override whatever is there
If ([bool]($CurrentLogLevelConfig -inotmatch "^LogLevel\s$SSHLogLevel\s*$"))
{
Write-Output "Current LogLevel setting in `"$sshdconfigpath`" is `"$CurrentLogLevelConfig`", setting it to `"LogLevel $SSHLogLevel`""
(Get-Content "$sshdconfigpath") -replace "^#*LogLevel\s\w*\b.*$", "LogLevel $SSHLogLevel" | Set-Content "$sshdconfigpath"
}
}
$CurrentPortConfig = ((gc "$sshdconfigpath") -match "^#*Port\s\d*\s*$")
If ([bool]($CurrentPortConfig -notmatch "^Port $SSHServerPort"))
{
Write-Output "Current port setting in `"$sshdconfigpath`" is `"$CurrentPortConfig`", setting it to `"Port $SSHServerPort`""
(Get-Content "$sshdconfigpath") -replace "^#*Port\s\d*\s*$", "Port $SSHServerPort" | Set-Content "$sshdconfigpath"
}
Else
{
Write-Output "Current port setting in `"$sshdconfigpath`" already matches `"Port $SSHServerPort`", no action necessary."
}
If ($AlsoLogToFile)
{
If ((Get-Content "$sshdconfigpath") -notmatch "^Subsystem\ssftp\ssftp-server\.exe.*LOCAL0.*$")
{
(Get-Content "$sshdconfigpath") -replace "^Subsystem\ssftp\ssftp-server\.exe.*$", "SyslogFacility LOCAL0" | Set-Content "$sshdconfigpath"
}
}
}
If ($PathSpecsToProbeForShellEXEString)
{
$ParamsSSHDefaultShell = @{}
$ParamsSSHDefaultShell.add('PathSpecsToProbeForShellEXEString',"$PathSpecsToProbeForShellEXEString")
If ($AllowInsecureShellEXE) {$ParamsSSHDefaultShell += @{'AllowInsecureShellEXE'=$AllowInsecureShellEXE}
If ($SSHDefaultShellCommandOption) {$ParamsSSHDefaultShell += @{'SSHDefaultShellCommandOption'="$SSHDefaultShellCommandOption"}
Write-Host "$ParamsSSHDefaultShell"
. $TargetFolder\Set-SSHDefaultShell.ps1 @ParamsSSHDefaultShell
}
netsh advfirewall firewall add rule name='SSHD Port OpenSSH (chocolatey package: openssh)' dir=in action=allow protocol=TCP localport=$SSHServerPort
If (!$RunningOnNano)
{
$etwman = Join-Path $TargetFolder "openssh-events.man"
# unregister etw provider
wevtutil um `"$etwman`"
# adjust provider resource path in instrumentation manifest
[XML]$xml = Get-Content $etwman
$xml.instrumentationManifest.instrumentation.events.provider.resourceFileName = $sshagentpath.ToString()
$xml.instrumentationManifest.instrumentation.events.provider.messageFileName = $sshagentpath.ToString()
$xml.Save($etwman)
#register etw provider
wevtutil im `"$etwman`"
}
New-Service -Name sshd -BinaryPathName "$TargetFolder\sshd.exe" -Description "SSH Daemon" -StartupType Automatic | Out-Null
Write-Host "Ensuring all ssh key and configuration files have correct permissions for all users"
. "$TargetFolder\FixHostFilePermissions.ps1" -Confirm:$false
}
If (CheckServicePath 'sshd.exe' "$TargetFolder")
{
write-output "Starting SSHD..."
Start-Service SSHD
}
If (CheckServicePath 'ssh-agent.exe' "$TargetFolder")
{
write-output "Starting SSH-Agent..."
Start-Service SSH-Agent
}
$fullpathkeylist = "'$sshdatadir\ssh_host_dsa_key'", "'$sshdatadir\ssh_host_rsa_key'", "'$sshdatadir\ssh_host_ecdsa_key'", "'$sshdatadir\ssh_host_ed25519_key'"
If (Test-Path "$TargetFolder\ssh.exe")
{
Write-Output "`r`nNEW VERSIONS OF SSH EXES:"
Write-Output "$(dir "$TargetFolder\*.exe" | select -expand fullname | get-command | select -expand fileversioninfo | ft filename, fileversion -auto | out-string)"
}
write-output ""
Write-Warning "You must start a new prompt, or use the command 'refreshenv' (provided by your chocolatey install) to re-read the environment for the tools to be available in this shell session."
2023-12-30 15:29:30,452 1940 [DEBUG] - Calling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = '';[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::SystemDefault; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '' -preRunHookScripts $null -postRunHookScripts $null']
2023-12-30 15:29:30,485 1940 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2023-12-30 15:29:32,077 1940 [DEBUG] - Host version is 5.1.17763.1, PowerShell Version is '5.1.17763.3770' and CLR Version is '4.0.30319.42000'.
2023-12-30 15:29:33,155 1940 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2023-12-30 15:29:33,180 1940 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2023-12-30 15:29:33,202 1940 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyConfigValue'.
2023-12-30 15:29:33,218 1940 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'.
2023-12-30 15:29:33,218 1940 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2023-12-30 15:29:33,233 1940 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2023-12-30 15:29:33,233 1940 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2023-12-30 15:29:33,250 1940 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2023-12-30 15:29:33,265 1940 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2023-12-30 15:29:33,265 1940 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2023-12-30 15:29:33,282 1940 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2023-12-30 15:29:33,282 1940 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2023-12-30 15:29:33,296 1940 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2023-12-30 15:29:33,313 1940 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2023-12-30 15:29:33,327 1940 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2023-12-30 15:29:33,343 1940 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2023-12-30 15:29:33,366 1940 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2023-12-30 15:29:33,376 1940 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2023-12-30 15:29:33,405 1940 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2023-12-30 15:29:33,405 1940 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2023-12-30 15:29:33,422 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2023-12-30 15:29:33,441 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2023-12-30 15:29:33,452 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2023-12-30 15:29:33,452 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2023-12-30 15:29:33,473 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2023-12-30 15:29:33,487 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2023-12-30 15:29:33,501 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2023-12-30 15:29:33,501 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2023-12-30 15:29:33,519 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2023-12-30 15:29:33,539 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2023-12-30 15:29:33,546 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2023-12-30 15:29:33,567 1940 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2023-12-30 15:29:33,581 1940 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2023-12-30 15:29:33,593 1940 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2023-12-30 15:29:33,593 1940 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2023-12-30 15:29:33,611 1940 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2023-12-30 15:29:33,629 1940 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2023-12-30 15:29:33,644 1940 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2023-12-30 15:29:33,657 1940 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2023-12-30 15:29:33,657 1940 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2023-12-30 15:29:33,674 1940 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2023-12-30 15:29:33,688 1940 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2023-12-30 15:29:33,705 1940 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2023-12-30 15:29:33,721 1940 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2023-12-30 15:29:33,721 1940 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2023-12-30 15:29:33,739 1940 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2023-12-30 15:29:33,751 1940 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2023-12-30 15:29:33,751 1940 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2023-12-30 15:29:33,782 1940 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2023-12-30 15:29:33,782 1940 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2023-12-30 15:29:33,800 1940 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2023-12-30 15:29:33,905 1940 [DEBUG] - Loading community extensions
2023-12-30 15:29:33,984 1940 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
2023-12-30 15:29:33,984 1940 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
2023-12-30 15:29:34,191 1940 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2023-12-30 15:29:34,203 1940 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2023-12-30 15:29:34,268 1940 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2023-12-30 15:29:34,299 1940 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2023-12-30 15:29:34,299 1940 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2023-12-30 15:29:34,321 1940 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2023-12-30 15:29:34,332 1940 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyConfigValue'.
2023-12-30 15:29:34,349 1940 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'.
2023-12-30 15:29:34,360 1940 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2023-12-30 15:29:34,360 1940 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2023-12-30 15:29:34,391 1940 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2023-12-30 15:29:34,408 1940 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2023-12-30 15:29:34,408 1940 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2023-12-30 15:29:34,429 1940 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2023-12-30 15:29:34,440 1940 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2023-12-30 15:29:34,454 1940 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2023-12-30 15:29:34,468 1940 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2023-12-30 15:29:34,468 1940 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2023-12-30 15:29:34,484 1940 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2023-12-30 15:29:34,503 1940 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2023-12-30 15:29:34,516 1940 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2023-12-30 15:29:34,533 1940 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2023-12-30 15:29:34,548 1940 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2023-12-30 15:29:34,579 1940 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2023-12-30 15:29:34,598 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2023-12-30 15:29:34,624 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2023-12-30 15:29:34,624 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2023-12-30 15:29:34,640 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2023-12-30 15:29:34,656 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2023-12-30 15:29:34,656 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2023-12-30 15:29:34,673 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2023-12-30 15:29:34,688 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2023-12-30 15:29:34,688 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2023-12-30 15:29:34,707 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2023-12-30 15:29:34,719 1940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2023-12-30 15:29:34,733 1940 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2023-12-30 15:29:34,733 1940 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2023-12-30 15:29:34,749 1940 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2023-12-30 15:29:34,765 1940 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2023-12-30 15:29:34,765 1940 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2023-12-30 15:29:34,780 1940 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2023-12-30 15:29:34,797 1940 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2023-12-30 15:29:34,797 1940 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2023-12-30 15:29:34,812 1940 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2023-12-30 15:29:34,828 1940 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2023-12-30 15:29:34,828 1940 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2023-12-30 15:29:34,843 1940 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2023-12-30 15:29:34,843 1940 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2023-12-30 15:29:34,863 1940 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2023-12-30 15:29:34,863 1940 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2023-12-30 15:29:34,875 1940 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2023-12-30 15:29:34,895 1940 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2023-12-30 15:29:34,909 1940 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2023-12-30 15:29:34,909 1940 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2023-12-30 15:29:34,926 1940 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2023-12-30 15:29:34,952 1940 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2023-12-30 15:29:34,968 1940 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2023-12-30 15:29:34,985 1940 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2023-12-30 15:29:35,001 1940 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2023-12-30 15:29:35,015 1940 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyConfigValue'.
2023-12-30 15:29:35,031 1940 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyPath'.
2023-12-30 15:29:35,031 1940 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2023-12-30 15:29:35,062 1940 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2023-12-30 15:29:35,062 1940 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2023-12-30 15:29:35,081 1940 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2023-12-30 15:29:35,094 1940 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2023-12-30 15:29:35,094 1940 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2023-12-30 15:29:35,125 1940 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2023-12-30 15:29:35,144 1940 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2023-12-30 15:29:35,144 1940 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2023-12-30 15:29:35,163 1940 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2023-12-30 15:29:35,172 1940 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2023-12-30 15:29:35,203 1940 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2023-12-30 15:29:35,203 1940 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2023-12-30 15:29:35,218 1940 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2023-12-30 15:29:35,234 1940 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2023-12-30 15:29:35,250 1940 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2023-12-30 15:29:35,272 1940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2023-12-30 15:29:35,280 1940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2023-12-30 15:29:35,280 1940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2023-12-30 15:29:35,304 1940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2023-12-30 15:29:35,313 1940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2023-12-30 15:29:35,327 1940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2023-12-30 15:29:35,343 1940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2023-12-30 15:29:35,375 1940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2023-12-30 15:29:35,375 1940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2023-12-30 15:29:35,397 1940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2023-12-30 15:29:35,412 1940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2023-12-30 15:29:35,422 1940 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2023-12-30 15:29:35,422 1940 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2023-12-30 15:29:35,445 1940 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2023-12-30 15:29:35,454 1940 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2023-12-30 15:29:35,473 1940 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2023-12-30 15:29:35,485 1940 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2023-12-30 15:29:35,499 1940 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2023-12-30 15:29:35,515 1940 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2023-12-30 15:29:35,531 1940 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2023-12-30 15:29:35,630 1940 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2023-12-30 15:29:35,651 1940 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2023-12-30 15:29:35,661 1940 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2023-12-30 15:29:35,671 1940 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2023-12-30 15:29:35,691 1940 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2023-12-30 15:29:35,707 1940 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2023-12-30 15:29:35,723 1940 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2023-12-30 15:29:35,734 1940 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2023-12-30 15:29:35,753 1940 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2023-12-30 15:29:35,765 1940 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2023-12-30 15:29:35,765 1940 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2023-12-30 15:29:35,783 1940 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2023-12-30 15:29:35,797 1940 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2023-12-30 15:29:36,048 1940 [DEBUG] - ---------------------------Script Execution---------------------------
2023-12-30 15:29:36,159 1940 [DEBUG] - Running 'ChocolateyScriptRunner' for openssh v8.9.1-beta1 with packageScript 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\openssh', installArguments: '', packageParameters: '', preRunHookScripts: '', postRunHookScripts: '',
2023-12-30 15:29:36,299 1940 [DEBUG] - Running package script 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1'
2023-12-30 15:29:37,687 1940 [INFO ] - VERBOSE: Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' = root\cimv2,'className' = Win32_OperatingSystem'.
2023-12-30 15:29:40,029 1940 [INFO ] - VERBOSE: Operation 'Enumerate CimInstances' complete.
2023-12-30 15:29:40,108 1940 [INFO ] - Running on: Windows Server 2019 Datacenter, (ServerDatacenter)
2023-12-30 15:29:40,108 1940 [INFO ] - Windows Version: 10.0.17763
2023-12-30 15:29:40,224 1940 [INFO ] -
************************************************************************************
************************************************************************************
This package is a Universal Installer and can ALSO install Win32-OpenSSH on
Nano, Server Core, Docker Containers and more WITHOUT using Chocolatey.
See the following for more details:
https://github.com/DarwinJS/ChocoPackages/blob/master/openssh/readme.md
************************************************************************************
************************************************************************************
2023-12-30 15:29:40,265 1940 [DEBUG] - No Package Parameters Passed in
2023-12-30 15:29:40,717 1940 [DEBUG] - Running Get-ChocolateyUnzip -fileFullPath 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip' -destination 'C:\Users\vagrant\AppData\Local\Temp\chocolatey\OpenSSHTemp'
2023-12-30 15:29:40,802 1940 [DEBUG] - Running Get-OSArchitectureWidth -compare '32'
2023-12-30 15:29:40,962 1940 [INFO ] - Extracting C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip to C:\Users\vagrant\AppData\Local\Temp\chocolatey\OpenSSHTemp...
2023-12-30 15:29:41,219 1940 [DEBUG] - 7zip found at 'C:\ProgramData\chocolatey\tools\7z.exe'
2023-12-30 15:29:41,427 1940 [DEBUG] - Executing command ['C:\ProgramData\chocolatey\tools\7z.exe' x -aoa -bd -bb1 -o"C:\Users\vagrant\AppData\Local\Temp\chocolatey\OpenSSHTemp" -y "C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip"]
2023-12-30 15:29:42,441 1940 [INFO ] - VERBOSE: 7-Zip 23.01 (x86) : Copyright (c) 1999-2023 Igor Pavlov : 2023-06-20
2023-12-30 15:29:42,499 1940 [INFO ] - VERBOSE:
2023-12-30 15:29:42,531 1940 [INFO ] - VERBOSE: 1 file, 4353706 bytes (4252 KiB)
2023-12-30 15:29:42,550 1940 [INFO ] - VERBOSE:
2023-12-30 15:29:42,562 1940 [INFO ] - VERBOSE: Extracting archive: C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip
2023-12-30 15:29:42,594 1940 [INFO ] - VERBOSE:
2023-12-30 15:29:42,609 1940 [INFO ] - VERBOSE: Scanning the drive for archives:
2023-12-30 15:29:42,627 1940 [INFO ] - VERBOSE: --
2023-12-30 15:29:42,644 1940 [INFO ] - VERBOSE: Path = C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip
2023-12-30 15:29:42,659 1940 [INFO ] - VERBOSE: Type = zip
2023-12-30 15:29:42,674 1940 [INFO ] - VERBOSE:
2023-12-30 15:29:42,708 1940 [INFO ] - VERBOSE: Physical Size = 4353706
2023-12-30 15:29:42,720 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\FixHostFilePermissions.ps1
2023-12-30 15:29:42,858 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\FixUserFilePermissions.ps1
2023-12-30 15:29:42,858 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\libcrypto.dll
2023-12-30 15:29:42,890 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\LICENSE.txt
2023-12-30 15:29:42,921 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\moduli
2023-12-30 15:29:42,921 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\NOTICE.txt
2023-12-30 15:29:42,952 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\openssh-events.man
2023-12-30 15:29:42,971 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\OpenSSHUtils.psd1
2023-12-30 15:29:43,004 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\OpenSSHUtils.psm1
2023-12-30 15:29:43,015 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\_manifest\
2023-12-30 15:29:43,048 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\scp.exe
2023-12-30 15:29:43,064 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh.exe
2023-12-30 15:29:43,096 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-agent.exe
2023-12-30 15:29:43,108 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-add.exe
2023-12-30 15:29:43,126 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\sshd.exe
2023-12-30 15:29:43,154 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\sshd_config_default
2023-12-30 15:29:43,170 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-keygen.exe
2023-12-30 15:29:43,187 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-keyscan.exe
2023-12-30 15:29:43,187 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-shellhost.exe
2023-12-30 15:29:43,204 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-sk-helper.exe
2023-12-30 15:29:43,218 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-pkcs11-helper.exe
2023-12-30 15:29:43,235 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\_manifest\spdx_2.2\manifest.spdx.json
2023-12-30 15:29:43,264 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\uninstall-sshd.ps1
2023-12-30 15:29:43,264 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\sftp.exe
2023-12-30 15:29:43,280 1940 [INFO ] - VERBOSE: Everything is Ok
2023-12-30 15:29:43,295 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\_manifest\spdx_2.2\manifest.spdx.json.sha256
2023-12-30 15:29:43,310 1940 [INFO ] - VERBOSE:
2023-12-30 15:29:43,326 1940 [INFO ] - VERBOSE: Folders: 1
2023-12-30 15:29:43,342 1940 [INFO ] - VERBOSE: Size: 9540741
2023-12-30 15:29:43,363 1940 [INFO ] - VERBOSE: Compressed: 4353706
2023-12-30 15:29:43,374 1940 [INFO ] - VERBOSE: Files: 26
2023-12-30 15:29:43,374 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\install-sshd.ps1
2023-12-30 15:29:43,390 1940 [INFO ] - VERBOSE: - OpenSSH-Win64\sftp-server.exe
2023-12-30 15:29:43,640 1940 [DEBUG] - $exitCode was passed null
2023-12-30 15:29:43,677 1940 [DEBUG] - Command ['C:\ProgramData\chocolatey\tools\7z.exe' x -aoa -bd -bb1 -o"C:\Users\vagrant\AppData\Local\Temp\chocolatey\OpenSSHTemp" -y "C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip"] exited with '0'.
2023-12-30 15:29:43,703 1940 [DEBUG] - 7z exit code: 0
2023-12-30 15:29:43,751 1940 [INFO ] - C:\Users\vagrant\AppData\Local\Temp\chocolatey\OpenSSHTemp
2023-12-30 15:29:58,328 1940 [INFO ] - Hashes for internal source match
2023-12-30 15:29:58,374 1940 [INFO ] - C:\Program Files\OpenSSH-Win64
2023-12-30 15:29:58,397 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\FixHostFilePermissions.ps1
2023-12-30 15:29:58,420 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\FixUserFilePermissions.ps1
2023-12-30 15:29:58,443 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\install-sshd.ps1
2023-12-30 15:29:58,483 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\libcrypto.dll
2023-12-30 15:29:58,513 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\LICENSE.txt
2023-12-30 15:29:58,550 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\moduli
2023-12-30 15:29:58,576 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\NOTICE.txt
2023-12-30 15:29:58,599 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\openssh-events.man
2023-12-30 15:29:58,622 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\OpenSSHUtils.psd1
2023-12-30 15:29:58,647 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\OpenSSHUtils.psm1
2023-12-30 15:29:58,685 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\scp.exe
2023-12-30 15:29:58,685 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\sftp-server.exe
2023-12-30 15:29:58,716 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\sftp.exe
2023-12-30 15:29:58,732 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-add.exe
2023-12-30 15:29:58,732 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-agent.exe
2023-12-30 15:29:58,763 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-keygen.exe
2023-12-30 15:29:58,763 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-keyscan.exe
2023-12-30 15:29:58,779 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-pkcs11-helper.exe
2023-12-30 15:29:58,812 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-shellhost.exe
2023-12-30 15:29:58,842 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-sk-helper.exe
2023-12-30 15:29:58,860 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh.exe
2023-12-30 15:29:58,905 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\sshd.exe
2023-12-30 15:29:58,940 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\sshd_config_default
2023-12-30 15:29:58,970 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\uninstall-sshd.ps1
2023-12-30 15:29:58,998 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\_manifest
2023-12-30 15:29:59,031 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\_manifest\spdx_2.2
2023-12-30 15:29:59,045 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\_manifest\spdx_2.2\manifest.spdx.json
2023-12-30 15:29:59,060 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\_manifest\spdx_2.2\manifest.spdx.json.sha256
2023-12-30 15:29:59,081 1940 [INFO ] - C:\Program Files\OpenSSH-Win64\Set-SSHDefaultShell.ps1
2023-12-30 15:29:59,193 1940 [DEBUG] - Running Install-ChocolateyPath -pathToInstall 'C:\Program Files\OpenSSH-Win64' -pathType 'Machine'
2023-12-30 15:29:59,318 1940 [DEBUG] - Running Update-SessionEnvironment
2023-12-30 15:29:59,341 1940 [INFO ] - VERBOSE: Refreshing environment variables from the registry.
2023-12-30 15:30:00,465 1940 [INFO ] - PATH environment variable does not have C:\Program Files\OpenSSH-Win64 in it. Adding...
2023-12-30 15:30:00,502 1940 [INFO ] - VERBOSE: Choosing not to expand environment names
2023-12-30 15:30:00,734 1940 [DEBUG] - Test-ProcessAdminRights: returning True
2023-12-30 15:30:00,877 1940 [DEBUG] - Running Set-EnvironmentVariable -Name 'Path' -Value '%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%SYSTEMROOT%\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSH-Win64;' -Scope 'Machine'
2023-12-30 15:30:00,998 1940 [DEBUG] - Registry type for Path is/will be ExpandString
2023-12-30 15:30:01,108 1940 [DEBUG] -
using System;
using System.Runtime.InteropServices;
namespace Win32
{
public class NativeMethods
{
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern IntPtr SendMessageTimeout(
IntPtr hWnd, uint Msg, UIntPtr wParam, string lParam,
uint fuFlags, uint uTimeout, out UIntPtr lpdwResult);
}
}
2023-12-30 15:30:02,108 1940 [DEBUG] - Running Update-SessionEnvironment
2023-12-30 15:30:02,125 1940 [INFO ] - VERBOSE: Refreshing environment variables from the registry.
2023-12-30 15:30:02,860 1940 [INFO ] - Updating machine environment variable TERM from "" to ""
2023-12-30 15:30:11,605 1940 [INFO ] -
NEW VERSIONS OF SSH EXES:
2023-12-30 15:30:12,144 1940 [INFO ] -
2023-12-30 15:30:12,180 1940 [INFO ] -
2023-12-30 15:30:12,201 1940 [WARN ] - WARNING: You must start a new prompt, or use the command 'refreshenv' (provided by your chocolatey install) to re-read the environment for the tools to be available in this shell session.
2023-12-30 15:30:12,277 1940 [DEBUG] - ----------------------------------------------------------------------
2023-12-30 15:30:12,343 1940 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = '';[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::SystemDefault; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '' -preRunHookScripts $null -postRunHookScripts $null'] exited with '0'.
2023-12-30 15:30:12,356 1940 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2023-12-30 15:30:12,668 1940 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2023-12-30 15:30:12,762 1940 [WARN ] - Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
2023-12-30 15:30:12,762 1940 [DEBUG] - The following values have been added/changed (may contain sensitive data):
2023-12-30 15:30:12,779 1940 [DEBUG] - * ChocolateyLastPathUpdate='133484238018728513' (User)
2023-12-30 15:30:12,796 1940 [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;C:\Program Files\OpenSSH-Win64;' (Machine)
2023-12-30 15:30:12,810 1940 [DEBUG] - * TERM='' (Machine)
2023-12-30 15:30:13,129 1940 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\openssh'
2023-12-30 15:30:13,277 1940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\openssh.nupkg'
with checksum '1F536E9B88E8D94E5B115F81D2C73E0E'
2023-12-30 15:30:13,300 1940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\openssh.nuspec'
with checksum 'C9812BFD443A742D1658A41B7A6AD7A5'
2023-12-30 15:30:13,329 1940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe.ignore'
with checksum 'D41D8CD98F00B204E9800998ECF8427E'
2023-12-30 15:30:13,356 1940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\barebonesinstaller.ps1'
with checksum '4EF4A2A2F7DF1E58FEFC7B2796C3D30B'
2023-12-30 15:30:13,388 1940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1'
with checksum 'C058BFE6AED127D66338F6968DDAD4EE'
2023-12-30 15:30:13,402 1940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1'
with checksum '52ED6CE8FD63609AF9144F51A2B4841B'
2023-12-30 15:30:13,418 1940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\Get-NetStat.ps1'
with checksum '5639E1A979924BAB1F81DEDC52C89003'
2023-12-30 15:30:13,449 1940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\LICENSE.txt'
with checksum '1FA7983BE13136F10B6E346AC0F8ACE3'
2023-12-30 15:30:13,495 1940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win32.zip'
with checksum '07C5C50FF61553D42EB5E3F51DF492A2'
2023-12-30 15:30:13,542 1940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip'
with checksum '9663F220979730CD015E62AAEDF8DF60'
2023-12-30 15:30:13,558 1940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\Set-SSHDefaultShell.ps1'
with checksum '1A26224C48488038D136D9F06A7B9E73'
2023-12-30 15:30:13,577 1940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\SetSpecialPrivileges.ps1'
with checksum '543B78A2B38141A98F2AF8BD3F10893B'
2023-12-30 15:30:13,577 1940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\VERIFICATION.txt'
with checksum 'A3C11FB5F52B25E893CFB4FA8539F2E4'
2023-12-30 15:30:13,719 1940 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\openssh.8.9.1-beta1".
2023-12-30 15:30:13,777 1940 [DEBUG] - There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\openssh.8.9.1-beta1\.files'
2023-12-30 15:30:13,824 1940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\openssh.8.9.1-beta1\.extra".
2023-12-30 15:30:13,846 1940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\openssh.8.9.1-beta1\.version".
2023-12-30 15:30:13,871 1940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\openssh.8.9.1-beta1\.sxs".
2023-12-30 15:30:13,903 1940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\openssh.8.9.1-beta1\.pin".
2023-12-30 15:30:13,949 1940 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2023-12-30 15:30:13,968 1940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\.chocolateyPending".
2023-12-30 15:30:13,980 1940 [INFO ] - The install of openssh was successful.
2023-12-30 15:30:13,980 1940 [INFO ] - Software installed to 'C:\Users\vagrant\AppData\Local\Temp\chocolatey\OpenSSHTemp'
2023-12-30 15:30:14,043 1940 [WARN ] -
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2023-12-30 15:30:14,121 1940 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2023-12-30 15:30:14,151 1940 [DEBUG] - Exiting with 0
2023-12-30 15:30:42,011 1580 [DEBUG] - XmlConfiguration is now operational
2023-12-30 15:30:42,307 1580 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2023-12-30 15:30:42,324 1580 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2023-12-30 15:30:42,341 1580 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2023-12-30 15:30:42,373 1580 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2023-12-30 15:30:42,386 1580 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2023-12-30 15:30:42,424 1580 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2023-12-30 15:30:42,467 1580 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2023-12-30 15:30:42,497 1580 [DEBUG] - Adding new type 'RubyGemsService' for type 'IListSourceRunner' from assembly 'choco'
2023-12-30 15:30:42,526 1580 [DEBUG] - Adding new type 'RubyGemsService' for type 'IInstallSourceRunner' from assembly 'choco'
2023-12-30 15:30:42,551 1580 [DEBUG] - Adding new type 'SystemStateValidation' for type 'IValidation' from assembly 'choco'
2023-12-30 15:30:42,558 1580 [DEBUG] - Adding new type 'CacheFolderLockdownValidation' for type 'IValidation' from assembly 'choco'
2023-12-30 15:30:44,028 1580 [DEBUG] - Adding new type 'EmptyOrInvalidUrlMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-12-30 15:30:44,080 1580 [DEBUG] - Adding new type 'FrameWorkReferencesMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-12-30 15:30:44,103 1580 [DEBUG] - Adding new type 'IconMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-12-30 15:30:44,119 1580 [DEBUG] - Adding new type 'LicenseMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-12-30 15:30:44,143 1580 [DEBUG] - Adding new type 'PackageTypesMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-12-30 15:30:44,168 1580 [DEBUG] - Adding new type 'ReadmeMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-12-30 15:30:44,181 1580 [DEBUG] - Adding new type 'RepositoryMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-12-30 15:30:44,181 1580 [DEBUG] - Adding new type 'RequireLicenseAcceptanceMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-12-30 15:30:44,204 1580 [DEBUG] - Adding new type 'ServicableMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-12-30 15:30:44,233 1580 [DEBUG] - Adding new type 'VersionMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-12-30 15:30:44,258 1580 [DEBUG] - Registering new command 'cache' in assembly 'choco'
2023-12-30 15:30:44,274 1580 [DEBUG] - Registering new command 'list' in assembly 'choco'
2023-12-30 15:30:44,290 1580 [DEBUG] - Registering new command 'template' in assembly 'choco'
2023-12-30 15:30:44,290 1580 [DEBUG] - Registering new command 'export' in assembly 'choco'
2023-12-30 15:30:44,312 1580 [DEBUG] - Registering new command 'info' in assembly 'choco'
2023-12-30 15:30:44,329 1580 [DEBUG] - Registering new command 'help' in assembly 'choco'
2023-12-30 15:30:44,338 1580 [DEBUG] - Registering new command 'config' in assembly 'choco'
2023-12-30 15:30:44,354 1580 [DEBUG] - Registering new command 'feature' in assembly 'choco'
2023-12-30 15:30:44,354 1580 [DEBUG] - Registering new command 'new' in assembly 'choco'
2023-12-30 15:30:44,369 1580 [DEBUG] - Registering new command 'outdated' in assembly 'choco'
2023-12-30 15:30:44,384 1580 [DEBUG] - Registering new command 'pack' in assembly 'choco'
2023-12-30 15:30:44,384 1580 [DEBUG] - Registering new command 'pin' in assembly 'choco'
2023-12-30 15:30:44,399 1580 [DEBUG] - Registering new command 'push' in assembly 'choco'
2023-12-30 15:30:44,418 1580 [DEBUG] - Registering new command 'apikey' in assembly 'choco'
2023-12-30 15:30:44,436 1580 [DEBUG] - Registering new command 'source' in assembly 'choco'
2023-12-30 15:30:44,467 1580 [DEBUG] - Registering new command 'uninstall' in assembly 'choco'
2023-12-30 15:30:44,479 1580 [DEBUG] - Registering new command 'upgrade' in assembly 'choco'
2023-12-30 15:30:44,493 1580 [DEBUG] - Registering new command 'search' in assembly 'choco'
2023-12-30 15:30:44,493 1580 [DEBUG] - Registering new command 'unpackself' in assembly 'choco'
2023-12-30 15:30:44,509 1580 [DEBUG] - Registering new command 'install' in assembly 'choco'
2023-12-30 15:30:45,026 1580 [INFO ] - ============================================================
2023-12-30 15:30:45,760 1580 [INFO ] - Chocolatey v2.2.2
2023-12-30 15:30:45,813 1580 [DEBUG] - Chocolatey is running on Windows v 10.0.17763.0
2023-12-30 15:30:45,840 1580 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2023-12-30 15:30:45,852 1580 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2023-12-30 15:30:45,885 1580 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" uninstall openssh --version 8.9.1-beta1 -dvy --execution-timeout=2700
2023-12-30 15:30:45,900 1580 [DEBUG] - Received arguments: uninstall openssh --version 8.9.1-beta1 -dvy --execution-timeout=2700
2023-12-30 15:30:46,212 1580 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2023-12-30 15:30:46,290 1580 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2023-12-30 15:30:46,368 1580 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2023-12-30 15:30:46,667 1580 [DEBUG] - Performing validation checks.
2023-12-30 15:30:46,680 1580 [DEBUG] - Global Configuration Validation Checks:
2023-12-30 15:30:46,712 1580 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked
2023-12-30 15:30:46,749 1580 [DEBUG] - System State Validation Checks:
2023-12-30 15:30:46,775 1580 [DEBUG] - Reboot Requirement Checks:
2023-12-30 15:30:46,790 1580 [DEBUG] - - Pending Computer Rename = Checked
2023-12-30 15:30:46,806 1580 [DEBUG] - - Pending Component Based Servicing = Checked
2023-12-30 15:30:46,841 1580 [DEBUG] - - Pending Windows Auto Update = Checked
2023-12-30 15:30:46,853 1580 [DEBUG] - - Pending File Rename Operations = Ignored
2023-12-30 15:30:46,868 1580 [DEBUG] - - Pending Windows Package Installer = Checked
2023-12-30 15:30:46,883 1580 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked
2023-12-30 15:30:46,900 1580 [DEBUG] - Cache Folder Lockdown Checks:
2023-12-30 15:30:46,915 1580 [DEBUG] - - Elevated State = Checked
2023-12-30 15:30:46,915 1580 [DEBUG] - - Folder Exists = Checked
2023-12-30 15:30:46,946 1580 [DEBUG] - - Folder lockdown = Checked
2023-12-30 15:30:46,961 1580 [INFO ] - 3 validations performed. 3 success(es), 0 warning(s), and 0 error(s).
2023-12-30 15:30:47,040 1580 [DEBUG] - The source 'c:\cached-packages;https://community.chocolatey.org/api/v2/' evaluated to a 'normal' source type
2023-12-30 15:30:47,060 1580 [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-12-30 15:30:47,244 1580 [DEBUG] - Configuration: CommandName='uninstall'|
CacheLocation='C:\Users\vagrant\AppData\Local\Temp\chocolatey'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='c:\cached-packages;https://community.chocolatey.org/api/v2/'|
SourceType='normal'|ShowOnlineHelp='False'|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='openssh'|
Version='8.9.1-beta1'|AllVersions='False'|
SkipPackageInstallProvider='False'|SkipHookScripts='False'|
PackageNames='openssh'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
CacheExpirationInMinutes='30'|AllowDowngrade='False'|
ForceDependencies='False'|PinPackage='False'|
Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.17763.0'|
Information.PlatformName='Windows Server 2016'|
Information.ChocolateyVersion='2.2.2.0'|
Information.ChocolateyProductVersion='2.2.2'|
Information.FullName='choco, Version=2.2.2.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='False'|
Information.UserName='vagrant'|
Information.UserDomainName='WIN-1FSTBHT10UQ'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|
Information.IsLicensedAssemblyLoaded='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'|
ListCommand.ExplicitPageSize='False'|
ListCommand.ExplicitSource='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.Command='Unknown'|PinCommand.Command='Unknown'|
OutdatedCommand.IgnorePinned='False'|
ExportCommand.IncludeVersionNumbers='False'|Proxy.BypassOnLocal='True'|
TemplateCommand.Command='unknown'|CacheCommand.Command='Unknown'|
CacheCommand.RemoveExpiredItemsOnly='False'|
2023-12-30 15:30:47,260 1580 [DEBUG] - _ Chocolatey:ChocolateyUninstallCommand - Normal Run Mode _
2023-12-30 15:30:47,292 1580 [INFO ] - Uninstalling the following packages:
2023-12-30 15:30:47,306 1580 [INFO ] - openssh
2023-12-30 15:30:47,338 1580 [DEBUG] - Current environment values (may contain sensitive data):
2023-12-30 15:30:47,358 1580 [DEBUG] - * 'Path'='C:\Users\vagrant\AppData\Local\Microsoft\WindowsApps;' ('User')
2023-12-30 15:30:47,372 1580 [DEBUG] - * 'TEMP'='C:\Users\vagrant\AppData\Local\Temp' ('User')
2023-12-30 15:30:47,385 1580 [DEBUG] - * 'TMP'='C:\Users\vagrant\AppData\Local\Temp' ('User')
2023-12-30 15:30:47,400 1580 [DEBUG] - * 'ChocolateyLastPathUpdate'='133484238018728513' ('User')
2023-12-30 15:30:47,416 1580 [DEBUG] - * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine')
2023-12-30 15:30:47,432 1580 [DEBUG] - * 'DriverData'='C:\Windows\System32\Drivers\DriverData' ('Machine')
2023-12-30 15:30:47,450 1580 [DEBUG] - * 'OS'='Windows_NT' ('Machine')
2023-12-30 15:30:47,462 1580 [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;C:\Program Files\OpenSSH-Win64;' ('Machine')
2023-12-30 15:30:47,462 1580 [DEBUG] - * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine')
2023-12-30 15:30:47,478 1580 [DEBUG] - * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine')
2023-12-30 15:30:47,494 1580 [DEBUG] - * 'PSModulePath'='C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules' ('Machine')
2023-12-30 15:30:47,494 1580 [DEBUG] - * 'TEMP'='C:\Windows\TEMP' ('Machine')
2023-12-30 15:30:47,509 1580 [DEBUG] - * 'TMP'='C:\Windows\TEMP' ('Machine')
2023-12-30 15:30:47,509 1580 [DEBUG] - * 'USERNAME'='SYSTEM' ('Machine')
2023-12-30 15:30:47,524 1580 [DEBUG] - * 'windir'='C:\Windows' ('Machine')
2023-12-30 15:30:47,524 1580 [DEBUG] - * 'NUMBER_OF_PROCESSORS'='10' ('Machine')
2023-12-30 15:30:47,541 1580 [DEBUG] - * 'PROCESSOR_LEVEL'='6' ('Machine')
2023-12-30 15:30:47,556 1580 [DEBUG] - * 'PROCESSOR_IDENTIFIER'='Intel64 Family 6 Model 85 Stepping 7, GenuineIntel' ('Machine')
2023-12-30 15:30:47,556 1580 [DEBUG] - * 'PROCESSOR_REVISION'='5507' ('Machine')
2023-12-30 15:30:47,571 1580 [DEBUG] - * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine')
2023-12-30 15:30:47,571 1580 [DEBUG] - * 'TERM'='' ('Machine')
2023-12-30 15:30:47,981 1580 [DEBUG] - Running list with the following filter = ''
2023-12-30 15:30:47,994 1580 [DEBUG] - --- Start of List ---
2023-12-30 15:30:48,467 1580 [DEBUG] - Resolving resource PackageSearchResource for source C:\ProgramData\chocolatey\lib
2023-12-30 15:30:49,306 1580 [DEBUG] - chocolatey 2.2.2
2023-12-30 15:30:49,352 1580 [DEBUG] - chocolatey-windowsupdate.extension 1.0.5
2023-12-30 15:30:49,386 1580 [DEBUG] - KB2919355 1.0.20160915
2023-12-30 15:30:49,416 1580 [DEBUG] - KB2919442 1.0.20160915
2023-12-30 15:30:49,431 1580 [DEBUG] - KB2999226 1.0.20181019
2023-12-30 15:30:49,461 1580 [DEBUG] - KB3035131 1.0.3
2023-12-30 15:30:49,483 1580 [DEBUG] - KB3118401 1.0.5
2023-12-30 15:30:49,603 1580 [DEBUG] - openssh 8.9.1-beta1
2023-12-30 15:30:49,640 1580 [DEBUG] - virtualbox-guest-additions-guest.install 7.0.12
2023-12-30 15:30:49,654 1580 [DEBUG] - --- End of List ---
2023-12-30 15:30:49,680 1580 [DEBUG] - Running list with the following filter = ''
2023-12-30 15:30:49,680 1580 [DEBUG] - --- Start of List ---
2023-12-30 15:30:49,727 1580 [DEBUG] - chocolatey 2.2.2
2023-12-30 15:30:49,758 1580 [DEBUG] - chocolatey-windowsupdate.extension 1.0.5
2023-12-30 15:30:49,776 1580 [DEBUG] - KB2919355 1.0.20160915
2023-12-30 15:30:49,823 1580 [DEBUG] - KB2919442 1.0.20160915
2023-12-30 15:30:49,852 1580 [DEBUG] - KB2999226 1.0.20181019
2023-12-30 15:30:49,900 1580 [DEBUG] - KB3035131 1.0.3
2023-12-30 15:30:49,919 1580 [DEBUG] - KB3118401 1.0.5
2023-12-30 15:30:50,043 1580 [DEBUG] - openssh 8.9.1-beta1
2023-12-30 15:30:50,090 1580 [DEBUG] - virtualbox-guest-additions-guest.install 7.0.12
2023-12-30 15:30:50,102 1580 [DEBUG] - --- End of List ---
2023-12-30 15:30:50,264 1580 [DEBUG] - Running list with the following filter = ''
2023-12-30 15:30:50,275 1580 [DEBUG] - --- Start of List ---
2023-12-30 15:30:50,369 1580 [DEBUG] - chocolatey 2.2.2
2023-12-30 15:30:50,386 1580 [DEBUG] - chocolatey-windowsupdate.extension 1.0.5
2023-12-30 15:30:50,424 1580 [DEBUG] - KB2919355 1.0.20160915
2023-12-30 15:30:50,433 1580 [DEBUG] - KB2919442 1.0.20160915
2023-12-30 15:30:50,525 1580 [DEBUG] - KB2999226 1.0.20181019
2023-12-30 15:30:50,542 1580 [DEBUG] - KB3035131 1.0.3
2023-12-30 15:30:50,572 1580 [DEBUG] - KB3118401 1.0.5
2023-12-30 15:30:50,638 1580 [DEBUG] - openssh 8.9.1-beta1
2023-12-30 15:30:50,665 1580 [DEBUG] - virtualbox-guest-additions-guest.install 7.0.12
2023-12-30 15:30:50,697 1580 [DEBUG] - --- End of List ---
2023-12-30 15:30:50,821 1580 [INFO ] -
openssh v8.9.1-beta1
2023-12-30 15:30:50,918 1580 [DEBUG] - Running beforeModify step for 'openssh'
2023-12-30 15:30:50,946 1580 [DEBUG] - Backing up package files for 'openssh'
2023-12-30 15:30:51,213 1580 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bkp\openssh".
2023-12-30 15:30:51,244 1580 [DEBUG] - Moving C:\ProgramData\chocolatey\lib\openssh to C:\ProgramData\chocolatey\lib-bkp\openssh\8.9.1-beta1
2023-12-30 15:30:51,291 1580 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\openssh'
to 'C:\ProgramData\chocolatey\lib-bkp\openssh\8.9.1-beta1'
2023-12-30 15:30:53,391 1580 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\openssh".
2023-12-30 15:30:53,431 1580 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.9.1-beta1\openssh.nupkg"
to "C:\ProgramData\chocolatey\lib\openssh\openssh.nupkg".
2023-12-30 15:30:53,492 1580 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.9.1-beta1\openssh.nuspec"
to "C:\ProgramData\chocolatey\lib\openssh\openssh.nuspec".
2023-12-30 15:30:53,508 1580 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\openssh\tools".
2023-12-30 15:30:53,557 1580 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.9.1-beta1\tools\7z.exe.ignore"
to "C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe.ignore".
2023-12-30 15:30:53,586 1580 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.9.1-beta1\tools\barebonesinstaller.ps1"
to "C:\ProgramData\chocolatey\lib\openssh\tools\barebonesinstaller.ps1".
2023-12-30 15:30:53,602 1580 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.9.1-beta1\tools\chocolateyinstall.ps1"
to "C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1".
2023-12-30 15:30:53,649 1580 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.9.1-beta1\tools\chocolateyuninstall.ps1"
to "C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1".
2023-12-30 15:30:53,665 1580 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.9.1-beta1\tools\Get-NetStat.ps1"
to "C:\ProgramData\chocolatey\lib\openssh\tools\Get-NetStat.ps1".
2023-12-30 15:30:53,680 1580 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.9.1-beta1\tools\LICENSE.txt"
to "C:\ProgramData\chocolatey\lib\openssh\tools\LICENSE.txt".
2023-12-30 15:30:53,698 1580 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.9.1-beta1\tools\OpenSSH-Win32.zip"
to "C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win32.zip".
2023-12-30 15:30:53,712 1580 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.9.1-beta1\tools\OpenSSH-Win64.zip"
to "C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip".
2023-12-30 15:30:53,742 1580 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.9.1-beta1\tools\Set-SSHDefaultShell.ps1"
to "C:\ProgramData\chocolatey\lib\openssh\tools\Set-SSHDefaultShell.ps1".
2023-12-30 15:30:53,758 1580 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.9.1-beta1\tools\SetSpecialPrivileges.ps1"
to "C:\ProgramData\chocolatey\lib\openssh\tools\SetSpecialPrivileges.ps1".
2023-12-30 15:30:53,774 1580 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.9.1-beta1\tools\VERIFICATION.txt"
to "C:\ProgramData\chocolatey\lib\openssh\tools\VERIFICATION.txt".
2023-12-30 15:30:55,336 1580 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\openssh'
2023-12-30 15:30:55,436 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\openssh.nupkg'
with checksum '1F536E9B88E8D94E5B115F81D2C73E0E'
2023-12-30 15:30:55,466 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\openssh.nuspec'
with checksum 'C9812BFD443A742D1658A41B7A6AD7A5'
2023-12-30 15:30:55,466 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe.ignore'
with checksum 'D41D8CD98F00B204E9800998ECF8427E'
2023-12-30 15:30:55,477 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\barebonesinstaller.ps1'
with checksum '4EF4A2A2F7DF1E58FEFC7B2796C3D30B'
2023-12-30 15:30:55,492 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1'
with checksum 'C058BFE6AED127D66338F6968DDAD4EE'
2023-12-30 15:30:55,508 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1'
with checksum '52ED6CE8FD63609AF9144F51A2B4841B'
2023-12-30 15:30:55,508 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\Get-NetStat.ps1'
with checksum '5639E1A979924BAB1F81DEDC52C89003'
2023-12-30 15:30:55,523 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\LICENSE.txt'
with checksum '1FA7983BE13136F10B6E346AC0F8ACE3'
2023-12-30 15:30:55,554 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win32.zip'
with checksum '07C5C50FF61553D42EB5E3F51DF492A2'
2023-12-30 15:30:55,586 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip'
with checksum '9663F220979730CD015E62AAEDF8DF60'
2023-12-30 15:30:55,602 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\Set-SSHDefaultShell.ps1'
with checksum '1A26224C48488038D136D9F06A7B9E73'
2023-12-30 15:30:55,602 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\SetSpecialPrivileges.ps1'
with checksum '543B78A2B38141A98F2AF8BD3F10893B'
2023-12-30 15:30:55,634 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\VERIFICATION.txt'
with checksum 'A3C11FB5F52B25E893CFB4FA8539F2E4'
2023-12-30 15:30:55,648 1580 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe.ignore".
2023-12-30 15:30:55,744 1580 [DEBUG] - Setting installer args for openssh
2023-12-30 15:30:55,762 1580 [DEBUG] - Setting package parameters for openssh
2023-12-30 15:30:55,781 1580 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1':
2023-12-30 15:30:55,808 1580 [DEBUG] -
$ErrorActionPreference = 'Stop'; # stop on all errors
$ProductName = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name 'ProductName').ProductName
$EditionId = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name 'EditionID').EditionId
Write-Output "Running on: $ProductName, ($EditionId)"
$RunningOnNano = $False
If ($EditionId -ilike '*Nano*')
{$RunningOnNano = $True}
If (Test-Path variable:shimgen)
{$RunningUnderChocolatey = $True}
Else
{ Write-Output "Running Without Chocolatey"
$RunningUnderChocolatey = $False}
$packageName= 'openssh'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$OSBits = ([System.IntPtr]::Size * 8) #Get-ProcessorBits
#On 64-bit, always favor 64-bit Program Files no matter what our execution is now (works back past XP / Server 2003)
If ($env:ProgramFiles.contains('x86'))
{
$PF = $env:ProgramFiles.replace(' (x86)','')
}
Else
{
$PF = $env:ProgramFiles
}
#$TargetFolder = "$PF\OpenSSH"
$TargetFolder = "$PF\OpenSSH-Win$($OSBits)"
$TargetFolderOld = "$PF\OpenSSH-Win$($OSBits)"
$sshdpath = Join-Path $TargetFolder "sshd.exe"
$sshagentpath = Join-Path $TargetFolder "ssh-agent.exe"
$sshdatadir = Join-Path $env:ProgramData "\ssh"
$logsdir = Join-Path $sshdatadir "logs"
If ($RunningUnderChocolatey)
{
# Default the values before reading params
$SSHServerFeature = $false
$KeyBasedAuthenticationFeature = $false
$DeleteConfigAndServerKeys = $false
$arguments = @{};
$packageParameters = $env:chocolateyPackageParameters
}
# Now parse the packageParameters using good old regular expression
if ((test-path variable:packageparameters) -AND $packageParameters) {
$match_pattern = "\/(?<option>([a-zA-Z]+)):(?<value>([`"'])?([a-zA-Z0-9- _\\:\.]+)([`"'])?)|\/(?<option>([a-zA-Z]+))"
#"
$option_name = 'option'
$value_name = 'value'
if ($packageParameters -match $match_pattern ){
$results = $packageParameters | Select-String $match_pattern -AllMatches
$results.matches | % {
$arguments.Add(
$_.Groups[$option_name].Value.Trim(),
$_.Groups[$value_name].Value.Trim())
}
}
else
{
throw "Package Parameters were found but were invalid (REGEX Failure)"
}
if ($arguments.ContainsKey("SSHServerFeature")) {
Write-Host "/SSHServerFeature - Uninstalling SSH Server Feature if Present."
$SSHServerFeature = $true
}
if ($arguments.ContainsKey("DeleteConfigAndServerKeys")) {
Write-Host "/DeleteConfigAndServerKeys - Removing SSH Config and Server Keys."
$DeleteConfigAndServerKeys = $true
}
} else {
Write-Debug "No Package Parameters Passed in";
}
Function CheckServicePath ($ServiceEXE,$FolderToCheck)
{
if ($RunningOnNano) {
#The NANO TP5 Compatible Way:
Return ([bool](@(wmic service | ?{$_ -ilike "*$ServiceEXE*"}) -ilike "*$FolderToCheck*"))
}
Else
{
#The modern way:
Return ([bool]((Get-WmiObject win32_service | ?{$_.PathName -ilike "*$ServiceEXE*"} | select -expand PathName) -ilike "*$FolderToCheck*"))
}
}
#$SSHServiceInstanceExistsAndIsOurs = ([bool]((Get-WmiObject win32_service | ?{$_.Name -ilike 'sshd'} | select -expand PathName) -ilike "*$TargetFolder*"))
$SSHServiceInstanceExistsAndIsOurs = CheckServicePath 'sshd' "$TargetFolder"
#$SSHAGENTServiceInstanceExistsAndIsOurs = ([bool]((Get-WmiObject win32_service | ?{$_.Name -ilike 'ssh-agent'} | select -expand PathName) -ilike "*$TargetFolder*"))
$SSHAGENTServiceInstanceExistsAndIsOurs = CheckServicePath 'ssh-agent' "$TargetFolder"
If ($SSHServerFeature -AND (!$SSHServiceInstanceExistsAndIsOurs) -AND (Get-Service sshd -ErrorAction SilentlyContinue))
{
$ExistingSSHDInstancePath = (Get-WmiObject win32_service | ?{$_.Name -ilike 'sshd'} | select -expand PathName)
Throw "You have requested that the SSHD service be uninstalled, but this system appears to have an instance of an SSHD service configured for another folder ($ExistingSSHDInstancePath). Ignoring /SSHServerFeature"
$SSHServerFeature = $False
}
If ((!$SSHServerFeature) -AND $SSHServiceInstanceExistsAndIsOurs)
{
Throw "There is a configured instance of the SSHD service, please specify the /SSHServerFeature to confirm it is OK to UNINSTALL the SSHD service at this time."
}
If ([bool](get-process ssh -erroraction silentlycontinue | where {$_.Path -ilike "*$TargetPath*"}))
{
Throw "It appears you have instances of ssh.exe (client) running from the folder this package installs to, please terminate them and try again."
}
If ($SSHServiceInstanceExistsAndIsOurs -AND ([bool](Get-Service SSHD -ErrorAction SilentlyContinue | where {$_.Status -ieq 'Running'})))
{
Stop-Service SSHD -Force
Start-Sleep -seconds 3
If (([bool](Get-Service SSHD | where {$_.Status -ieq 'Running'})))
{
Throw "Could not stop the SSHD service, please stop it manually and retry this package."
}
$etwman = Join-Path $TargetFolder "openssh-events.man"
# unregister etw provider
wevtutil um `"$etwman`"
Stop-Service sshd -Force
sc.exe delete sshd | out-null
}
If ($SSHAGENTServiceInstanceExistsAndIsOurs)
{
Stop-Service SSH-Agent -Force
Start-Sleep -seconds 3
If (([bool](Get-Service ssh-agent | where {$_.Status -ieq 'Running'})))
{
Throw "Could not stop the ssh-agent service, please stop manually and retry this package."
}
sc.exe delete ssh-agent | out-null
}
If (Test-Path $TargetFolder) {Remove-Item "$TargetFolder" -Recurse -Force}
#Don't remove config in case they reinstall.
If (($SSHServiceInstanceExistsAndIsOurs -AND $DeleteConfigAndServerKeys) -OR (!$SSHServiceInstanceExistsAndIsOurs))
{
Write-Warning "Removing all config and server keys as requested by /DeleteConfigAndServerKeys"
If (Test-Path $sshdatadir) {Remove-Item "$sshdatadir" -Recurse -Force}
}
netsh advfirewall firewall delete rule name='SSHD Port OpenSSH (chocolatey package: openssh)'
$PathToRemove = "$TargetFolder"
#Code has been modified to work with Nano - do not change method of environment variable access
#foreach ($path in [Environment]::GetEnvironmentVariable("PATH","Machine").split(';'))
foreach ($path in ((Get-ItemProperty 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment').path.split(';')))
{
If ($Path)
{
If (($path -ine "$PathToRemove") -AND ($path -ine "$PathToRemove\"))
{
[string[]]$Newpath += "$path"
}
}
}
$AssembledNewPath = ($newpath -join(';')).trimend(';')
Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' -Name 'PATH' -Value "$AssembledNewPath"
$TermVarExists = [bool](get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' -Name 'TERM' -EA SilentlyContinue)
If ($TermVarExists)
{
Remove-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' -Name 'TERM'
}
2023-12-30 15:30:55,883 1580 [DEBUG] - Calling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = '';[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::SystemDefault; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1' -installArguments '' -packageParameters '' -preRunHookScripts $null -postRunHookScripts $null']
2023-12-30 15:30:55,898 1580 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2023-12-30 15:30:57,867 1580 [DEBUG] - Host version is 5.1.17763.1, PowerShell Version is '5.1.17763.3770' and CLR Version is '4.0.30319.42000'.
2023-12-30 15:30:58,976 1580 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2023-12-30 15:30:58,995 1580 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2023-12-30 15:30:59,007 1580 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyConfigValue'.
2023-12-30 15:30:59,007 1580 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'.
2023-12-30 15:30:59,023 1580 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2023-12-30 15:30:59,039 1580 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2023-12-30 15:30:59,039 1580 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2023-12-30 15:30:59,055 1580 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2023-12-30 15:30:59,055 1580 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2023-12-30 15:30:59,071 1580 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2023-12-30 15:30:59,086 1580 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2023-12-30 15:30:59,102 1580 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2023-12-30 15:30:59,117 1580 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2023-12-30 15:30:59,117 1580 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2023-12-30 15:30:59,148 1580 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2023-12-30 15:30:59,180 1580 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2023-12-30 15:30:59,195 1580 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2023-12-30 15:30:59,226 1580 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2023-12-30 15:30:59,242 1580 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2023-12-30 15:30:59,258 1580 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2023-12-30 15:30:59,274 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2023-12-30 15:30:59,274 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2023-12-30 15:30:59,289 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2023-12-30 15:30:59,305 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2023-12-30 15:30:59,305 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2023-12-30 15:30:59,320 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2023-12-30 15:30:59,320 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2023-12-30 15:30:59,337 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2023-12-30 15:30:59,337 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2023-12-30 15:30:59,353 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2023-12-30 15:30:59,371 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2023-12-30 15:30:59,384 1580 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2023-12-30 15:30:59,384 1580 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2023-12-30 15:30:59,415 1580 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2023-12-30 15:30:59,445 1580 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2023-12-30 15:30:59,476 1580 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2023-12-30 15:30:59,523 1580 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2023-12-30 15:30:59,539 1580 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2023-12-30 15:30:59,564 1580 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2023-12-30 15:30:59,571 1580 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2023-12-30 15:30:59,571 1580 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2023-12-30 15:30:59,588 1580 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2023-12-30 15:30:59,617 1580 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2023-12-30 15:30:59,633 1580 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2023-12-30 15:30:59,665 1580 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2023-12-30 15:30:59,679 1580 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2023-12-30 15:30:59,695 1580 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2023-12-30 15:30:59,695 1580 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2023-12-30 15:30:59,710 1580 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2023-12-30 15:30:59,726 1580 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2023-12-30 15:30:59,742 1580 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2023-12-30 15:30:59,853 1580 [DEBUG] - Loading community extensions
2023-12-30 15:30:59,914 1580 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
2023-12-30 15:30:59,952 1580 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
2023-12-30 15:31:00,195 1580 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2023-12-30 15:31:00,211 1580 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2023-12-30 15:31:00,242 1580 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2023-12-30 15:31:00,257 1580 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2023-12-30 15:31:00,291 1580 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2023-12-30 15:31:00,305 1580 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2023-12-30 15:31:00,320 1580 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyConfigValue'.
2023-12-30 15:31:00,351 1580 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'.
2023-12-30 15:31:00,367 1580 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2023-12-30 15:31:00,383 1580 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2023-12-30 15:31:00,399 1580 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2023-12-30 15:31:00,414 1580 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2023-12-30 15:31:00,445 1580 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2023-12-30 15:31:00,445 1580 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2023-12-30 15:31:00,460 1580 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2023-12-30 15:31:00,476 1580 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2023-12-30 15:31:00,476 1580 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2023-12-30 15:31:00,491 1580 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2023-12-30 15:31:00,524 1580 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2023-12-30 15:31:00,524 1580 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2023-12-30 15:31:00,538 1580 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2023-12-30 15:31:00,555 1580 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2023-12-30 15:31:00,555 1580 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2023-12-30 15:31:00,573 1580 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2023-12-30 15:31:00,586 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2023-12-30 15:31:00,603 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2023-12-30 15:31:00,618 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2023-12-30 15:31:00,618 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2023-12-30 15:31:00,636 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2023-12-30 15:31:00,636 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2023-12-30 15:31:00,664 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2023-12-30 15:31:00,664 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2023-12-30 15:31:00,679 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2023-12-30 15:31:00,695 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2023-12-30 15:31:00,710 1580 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2023-12-30 15:31:00,730 1580 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2023-12-30 15:31:00,742 1580 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2023-12-30 15:31:00,742 1580 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2023-12-30 15:31:00,757 1580 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2023-12-30 15:31:00,774 1580 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2023-12-30 15:31:00,783 1580 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2023-12-30 15:31:00,790 1580 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2023-12-30 15:31:00,804 1580 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2023-12-30 15:31:00,804 1580 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2023-12-30 15:31:00,821 1580 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2023-12-30 15:31:00,821 1580 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2023-12-30 15:31:00,852 1580 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2023-12-30 15:31:00,867 1580 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2023-12-30 15:31:00,867 1580 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2023-12-30 15:31:00,898 1580 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2023-12-30 15:31:00,898 1580 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2023-12-30 15:31:00,931 1580 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2023-12-30 15:31:00,961 1580 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2023-12-30 15:31:00,992 1580 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2023-12-30 15:31:01,008 1580 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2023-12-30 15:31:01,024 1580 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2023-12-30 15:31:01,042 1580 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2023-12-30 15:31:01,056 1580 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2023-12-30 15:31:01,070 1580 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2023-12-30 15:31:01,070 1580 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyConfigValue'.
2023-12-30 15:31:01,085 1580 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyPath'.
2023-12-30 15:31:01,085 1580 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2023-12-30 15:31:01,101 1580 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2023-12-30 15:31:01,101 1580 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2023-12-30 15:31:01,119 1580 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2023-12-30 15:31:01,135 1580 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2023-12-30 15:31:01,148 1580 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2023-12-30 15:31:01,165 1580 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2023-12-30 15:31:01,179 1580 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2023-12-30 15:31:01,179 1580 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2023-12-30 15:31:01,195 1580 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2023-12-30 15:31:01,211 1580 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2023-12-30 15:31:01,242 1580 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2023-12-30 15:31:01,258 1580 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2023-12-30 15:31:01,288 1580 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2023-12-30 15:31:01,288 1580 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2023-12-30 15:31:01,323 1580 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2023-12-30 15:31:01,338 1580 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2023-12-30 15:31:01,352 1580 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2023-12-30 15:31:01,367 1580 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2023-12-30 15:31:01,387 1580 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2023-12-30 15:31:01,405 1580 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2023-12-30 15:31:01,414 1580 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2023-12-30 15:31:01,435 1580 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2023-12-30 15:31:01,447 1580 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2023-12-30 15:31:01,524 1580 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2023-12-30 15:31:01,540 1580 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2023-12-30 15:31:01,570 1580 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2023-12-30 15:31:01,570 1580 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2023-12-30 15:31:01,601 1580 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2023-12-30 15:31:01,616 1580 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2023-12-30 15:31:01,632 1580 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2023-12-30 15:31:01,632 1580 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2023-12-30 15:31:01,651 1580 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2023-12-30 15:31:01,663 1580 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2023-12-30 15:31:01,679 1580 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2023-12-30 15:31:01,679 1580 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2023-12-30 15:31:01,695 1580 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2023-12-30 15:31:01,695 1580 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2023-12-30 15:31:01,711 1580 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2023-12-30 15:31:01,726 1580 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2023-12-30 15:31:01,726 1580 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2023-12-30 15:31:01,744 1580 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2023-12-30 15:31:01,757 1580 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2023-12-30 15:31:01,773 1580 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2023-12-30 15:31:01,790 1580 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2023-12-30 15:31:01,806 1580 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2023-12-30 15:31:01,821 1580 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2023-12-30 15:31:01,821 1580 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2023-12-30 15:31:01,867 1580 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2023-12-30 15:31:02,164 1580 [DEBUG] - ---------------------------Script Execution---------------------------
2023-12-30 15:31:02,273 1580 [DEBUG] - Running 'ChocolateyScriptRunner' for openssh v8.9.1-beta1 with packageScript 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\openssh', installArguments: '', packageParameters: '', preRunHookScripts: '', postRunHookScripts: '',
2023-12-30 15:31:02,372 1580 [DEBUG] - Running package script 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1'
2023-12-30 15:31:02,606 1580 [INFO ] - Running on: Windows Server 2019 Datacenter, (ServerDatacenter)
2023-12-30 15:31:02,696 1580 [DEBUG] - No Package Parameters Passed in
2023-12-30 15:31:09,790 1580 [WARN ] - WARNING: Removing all config and server keys as requested by /DeleteConfigAndServerKeys
2023-12-30 15:31:11,684 1580 [INFO ] -
2023-12-30 15:31:11,684 1580 [INFO ] - No rules match the specified criteria.
2023-12-30 15:31:11,706 1580 [INFO ] -
2023-12-30 15:31:12,179 1580 [DEBUG] - The last executable that ran had an exit code of '1'.
2023-12-30 15:31:12,234 1580 [DEBUG] - ----------------------------------------------------------------------
2023-12-30 15:31:12,280 1580 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = '';[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::SystemDefault; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1' -installArguments '' -packageParameters '' -preRunHookScripts $null -postRunHookScripts $null'] exited with '0'.
2023-12-30 15:31:12,344 1580 [INFO ] - Skipping auto uninstaller - No registry snapshot.
2023-12-30 15:31:12,375 1580 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2023-12-30 15:31:12,672 1580 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2023-12-30 15:31:12,719 1580 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bkp\openssh".
2023-12-30 15:31:12,782 1580 [DEBUG] - Ensuring removal of installation files.
2023-12-30 15:31:12,844 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\openssh.nupkg'
with checksum '1F536E9B88E8D94E5B115F81D2C73E0E'
2023-12-30 15:31:12,860 1580 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\openssh.nupkg".
2023-12-30 15:31:12,879 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\openssh.nuspec'
with checksum 'C9812BFD443A742D1658A41B7A6AD7A5'
2023-12-30 15:31:12,908 1580 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\openssh.nuspec".
2023-12-30 15:31:12,908 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\barebonesinstaller.ps1'
with checksum '4EF4A2A2F7DF1E58FEFC7B2796C3D30B'
2023-12-30 15:31:12,923 1580 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\barebonesinstaller.ps1".
2023-12-30 15:31:12,938 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1'
with checksum 'C058BFE6AED127D66338F6968DDAD4EE'
2023-12-30 15:31:12,938 1580 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1".
2023-12-30 15:31:12,954 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1'
with checksum '52ED6CE8FD63609AF9144F51A2B4841B'
2023-12-30 15:31:12,954 1580 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1".
2023-12-30 15:31:12,970 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\Get-NetStat.ps1'
with checksum '5639E1A979924BAB1F81DEDC52C89003'
2023-12-30 15:31:12,985 1580 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\Get-NetStat.ps1".
2023-12-30 15:31:12,985 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\LICENSE.txt'
with checksum '1FA7983BE13136F10B6E346AC0F8ACE3'
2023-12-30 15:31:13,026 1580 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\LICENSE.txt".
2023-12-30 15:31:13,068 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win32.zip'
with checksum '07C5C50FF61553D42EB5E3F51DF492A2'
2023-12-30 15:31:13,111 1580 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win32.zip".
2023-12-30 15:31:13,142 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip'
with checksum '9663F220979730CD015E62AAEDF8DF60'
2023-12-30 15:31:13,159 1580 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip".
2023-12-30 15:31:13,176 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\Set-SSHDefaultShell.ps1'
with checksum '1A26224C48488038D136D9F06A7B9E73'
2023-12-30 15:31:13,191 1580 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\Set-SSHDefaultShell.ps1".
2023-12-30 15:31:13,208 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\SetSpecialPrivileges.ps1'
with checksum '543B78A2B38141A98F2AF8BD3F10893B'
2023-12-30 15:31:13,208 1580 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\SetSpecialPrivileges.ps1".
2023-12-30 15:31:13,220 1580 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\VERIFICATION.txt'
with checksum 'A3C11FB5F52B25E893CFB4FA8539F2E4'
2023-12-30 15:31:13,235 1580 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\VERIFICATION.txt".
2023-12-30 15:31:13,235 1580 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib\openssh".
2023-12-30 15:31:13,252 1580 [INFO ] - openssh has been successfully uninstalled.
2023-12-30 15:31:13,271 1580 [DEBUG] - Removing nupkg if it still exists.
2023-12-30 15:31:13,298 1580 [DEBUG] - Ensuring removal of installation files.
2023-12-30 15:31:13,377 1580 [WARN ] - Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
2023-12-30 15:31:13,393 1580 [DEBUG] - The following values have been added/changed (may contain sensitive data):
2023-12-30 15:31:13,410 1580 [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-12-30 15:31:13,424 1580 [DEBUG] - The following values have been removed:
2023-12-30 15:31:13,440 1580 [DEBUG] - * TERM='' (Machine)
2023-12-30 15:31:13,506 1580 [WARN ] -
Chocolatey uninstalled 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2023-12-30 15:31:13,534 1580 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2023-12-30 15:31:13,552 1580 [DEBUG] - Exiting with 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment