Skip to content

Instantly share code, notes, and snippets.

@choco-bot
Created July 26, 2026 01:40
Show Gist options
  • Select an option

  • Save choco-bot/af5810c3b745fd79f5da3a5346b855b5 to your computer and use it in GitHub Desktop.

Select an option

Save choco-bot/af5810c3b745fd79f5da3a5346b855b5 to your computer and use it in GitHub Desktop.
openssh v8.0.0.1 - Passed - Package Tests Results

openssh v8.0.0.1 - Passed - Package Test Results

  • https://community.chocolatey.org/packages/openssh/8.0.0.1
  • Tested 26 Jul 2026 01:40:43 +00:00
  • Tested against chocolatey/test-environment 3.0.0 (Windows Server 2019)
  • Tested with the latest version of choco, possibly a beta version.
  • Tested with chocolatey-package-verifier service v1.4.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="9136665A6AD8B3B62A3A1FFBED8A7FEA" />
<file path="C:\ProgramData\chocolatey\lib\openssh\openssh.nuspec" checksum="9D949B36AD39A494935CEDF6F51DAC23" />
<file path="C:\ProgramData\chocolatey\lib\openssh\tools\7z.dll" checksum="9943B3BCB2CA91CCBEF2D96682CECB79" />
<file path="C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe" checksum="506E5B371882A5A62B669F04CE04DBA8" />
<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="D5C312730F2371D6B54370DEFA69B586" />
<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="236A84900601B75E3986ED28C1FBBAFA" />
<file path="C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip" checksum="8012EF304C0C0CF93AAFD0A6E7A7E14C" />
<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>
2026-07-26 01:38:59,574 3556 [DEBUG] - XmlConfiguration is now operational
2026-07-26 01:38:59,916 3556 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2026-07-26 01:38:59,916 3556 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2026-07-26 01:38:59,933 3556 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2026-07-26 01:38:59,933 3556 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2026-07-26 01:38:59,933 3556 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2026-07-26 01:38:59,964 3556 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2026-07-26 01:38:59,964 3556 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2026-07-26 01:38:59,964 3556 [DEBUG] - Adding new type 'RubyGemsService' for type 'IListSourceRunner' from assembly 'choco'
2026-07-26 01:38:59,980 3556 [DEBUG] - Adding new type 'RubyGemsService' for type 'IInstallSourceRunner' from assembly 'choco'
2026-07-26 01:38:59,980 3556 [DEBUG] - Adding new type 'SystemStateValidation' for type 'IValidation' from assembly 'choco'
2026-07-26 01:38:59,980 3556 [DEBUG] - Adding new type 'CacheFolderLockdownValidation' for type 'IValidation' from assembly 'choco'
2026-07-26 01:39:01,917 3556 [DEBUG] - Adding new type 'FrameWorkReferencesMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2026-07-26 01:39:01,933 3556 [DEBUG] - Adding new type 'IconMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2026-07-26 01:39:01,933 3556 [DEBUG] - Adding new type 'LicenseMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2026-07-26 01:39:01,933 3556 [DEBUG] - Adding new type 'PackageTypesMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2026-07-26 01:39:01,948 3556 [DEBUG] - Adding new type 'ReadmeMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2026-07-26 01:39:01,948 3556 [DEBUG] - Adding new type 'RepositoryMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2026-07-26 01:39:01,948 3556 [DEBUG] - Adding new type 'RequiredMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2026-07-26 01:39:01,948 3556 [DEBUG] - Adding new type 'RequireLicenseAcceptanceMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2026-07-26 01:39:01,964 3556 [DEBUG] - Adding new type 'ServicableMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2026-07-26 01:39:01,964 3556 [DEBUG] - Adding new type 'VersionMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2026-07-26 01:39:02,025 3556 [DEBUG] - Registering new command 'apikey' in assembly 'choco'
2026-07-26 01:39:02,025 3556 [DEBUG] - Registering new command 'cache' in assembly 'choco'
2026-07-26 01:39:02,025 3556 [DEBUG] - Registering new command 'config' in assembly 'choco'
2026-07-26 01:39:02,045 3556 [DEBUG] - Registering new command 'export' in assembly 'choco'
2026-07-26 01:39:02,045 3556 [DEBUG] - Registering new command 'feature' in assembly 'choco'
2026-07-26 01:39:02,045 3556 [DEBUG] - Registering new command 'help' in assembly 'choco'
2026-07-26 01:39:02,059 3556 [DEBUG] - Registering new command 'info' in assembly 'choco'
2026-07-26 01:39:02,059 3556 [DEBUG] - Registering new command 'install' in assembly 'choco'
2026-07-26 01:39:02,059 3556 [DEBUG] - Registering new command 'license' in assembly 'choco'
2026-07-26 01:39:02,073 3556 [DEBUG] - Registering new command 'list' in assembly 'choco'
2026-07-26 01:39:02,073 3556 [DEBUG] - Registering new command 'new' in assembly 'choco'
2026-07-26 01:39:02,073 3556 [DEBUG] - Registering new command 'outdated' in assembly 'choco'
2026-07-26 01:39:02,073 3556 [DEBUG] - Registering new command 'pack' in assembly 'choco'
2026-07-26 01:39:02,089 3556 [DEBUG] - Registering new command 'pin' in assembly 'choco'
2026-07-26 01:39:02,089 3556 [DEBUG] - Registering new command 'push' in assembly 'choco'
2026-07-26 01:39:02,089 3556 [DEBUG] - Registering new command 'rule' in assembly 'choco'
2026-07-26 01:39:02,089 3556 [DEBUG] - Registering new command 'search' in assembly 'choco'
2026-07-26 01:39:02,108 3556 [DEBUG] - Registering new command 'source' in assembly 'choco'
2026-07-26 01:39:02,108 3556 [DEBUG] - Registering new command 'support' in assembly 'choco'
2026-07-26 01:39:02,108 3556 [DEBUG] - Registering new command 'template' in assembly 'choco'
2026-07-26 01:39:02,119 3556 [DEBUG] - Registering new command 'uninstall' in assembly 'choco'
2026-07-26 01:39:02,119 3556 [DEBUG] - Registering new command 'unpackself' in assembly 'choco'
2026-07-26 01:39:02,119 3556 [DEBUG] - Registering new command 'upgrade' in assembly 'choco'
2026-07-26 01:39:02,588 3556 [INFO ] - ============================================================
2026-07-26 01:39:03,356 3556 [INFO ] - Chocolatey v2.7.3
2026-07-26 01:39:03,401 3556 [DEBUG] - Chocolatey is running on Windows v 10.0.17763.0
2026-07-26 01:39:03,419 3556 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2026-07-26 01:39:03,419 3556 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2026-07-26 01:39:03,464 3556 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install openssh --version 8.0.0.1 -fdvy --execution-timeout=2700 --allow-downgrade
2026-07-26 01:39:03,464 3556 [DEBUG] - Received arguments: install openssh --version 8.0.0.1 -fdvy --execution-timeout=2700 --allow-downgrade
2026-07-26 01:39:03,807 3556 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2026-07-26 01:39:03,839 3556 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2026-07-26 01:39:03,869 3556 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2026-07-26 01:39:04,244 3556 [DEBUG] - Performing validation checks.
2026-07-26 01:39:04,260 3556 [DEBUG] - Global Configuration Validation Checks:
2026-07-26 01:39:04,292 3556 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked
2026-07-26 01:39:04,307 3556 [DEBUG] - System State Validation Checks:
2026-07-26 01:39:04,307 3556 [DEBUG] - Reboot Requirement Checks:
2026-07-26 01:39:04,323 3556 [DEBUG] - - Pending Computer Rename = Checked
2026-07-26 01:39:04,323 3556 [DEBUG] - - Pending Component Based Servicing = Checked
2026-07-26 01:39:04,338 3556 [DEBUG] - - Pending Windows Auto Update = Checked
2026-07-26 01:39:04,338 3556 [DEBUG] - - Pending File Rename Operations = Ignored
2026-07-26 01:39:04,355 3556 [DEBUG] - - Pending Windows Package Installer = Checked
2026-07-26 01:39:04,371 3556 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked
2026-07-26 01:39:04,387 3556 [DEBUG] - Cache Folder Lockdown Checks:
2026-07-26 01:39:04,387 3556 [DEBUG] - - Elevated State = Checked
2026-07-26 01:39:04,400 3556 [DEBUG] - - Folder Exists = Checked
2026-07-26 01:39:04,419 3556 [DEBUG] - - Folder lockdown = Checked
2026-07-26 01:39:04,432 3556 [INFO ] - 3 validations performed. 3 success(es), 0 warning(s), and 0 error(s).
2026-07-26 01:39:04,526 3556 [DEBUG] - The source 'c:\cached-packages;https://community.chocolatey.org/api/v2/' evaluated to a 'normal' source type
2026-07-26 01:39:04,526 3556 [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.
2026-07-26 01:39:04,651 3556 [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'|IncludeConfiguredSources='False'|
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.0.0.1'|AllVersions='False'|
SkipPackageInstallProvider='False'|SkipHookScripts='False'|
PackageNames='openssh'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
UseHttpCache='True'|CacheExpirationInMinutes='30'|
AllowDowngrade='True'|
ForceDependencies='False'|PinPackage='False'|IncludeHeaders='False'|
Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.17763.0'|
Information.PlatformName='Windows Server 2019'|
Information.ChocolateyVersion='2.7.3.0'|
Information.ChocolateyProductVersion='2.7.3'|
Information.FullName='choco, Version=2.7.3.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='False'|
Information.UserName='vagrant'|
Information.UserDomainName='WIN-S94J7SPVL3O'|
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'|
Features.UsePackageHashValidation='False'|
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.IgnorePinned='False'|
ListCommand.OrderBy='Id'|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'|
UpgradeCommand.IgnorePinned='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'|
LicenseCommand.Command='Unknown'|OutdatedCommand.IgnorePinned='False'|
ExportCommand.IncludeVersionNumbers='False'|Proxy.BypassOnLocal='True'|
TemplateCommand.Command='unknown'|CacheCommand.Command='Unknown'|
CacheCommand.RemoveExpiredItemsOnly='False'|
2026-07-26 01:39:04,668 3556 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
2026-07-26 01:39:04,703 3556 [INFO ] - Installing the following packages:
2026-07-26 01:39:04,703 3556 [INFO ] - openssh
2026-07-26 01:39:04,713 3556 [INFO ] - By installing, you accept licenses for the packages.
2026-07-26 01:39:04,754 3556 [DEBUG] - Current environment values (may contain sensitive data):
2026-07-26 01:39:04,760 3556 [DEBUG] - * 'Path'='C:\Users\vagrant\AppData\Local\Microsoft\WindowsApps;' ('User')
2026-07-26 01:39:04,760 3556 [DEBUG] - * 'TEMP'='C:\Users\vagrant\AppData\Local\Temp' ('User')
2026-07-26 01:39:04,760 3556 [DEBUG] - * 'TMP'='C:\Users\vagrant\AppData\Local\Temp' ('User')
2026-07-26 01:39:04,776 3556 [DEBUG] - * 'ChocolateyLastPathUpdate'='134282496066084734' ('User')
2026-07-26 01:39:04,776 3556 [DEBUG] - * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine')
2026-07-26 01:39:04,776 3556 [DEBUG] - * 'DriverData'='C:\Windows\System32\Drivers\DriverData' ('Machine')
2026-07-26 01:39:04,792 3556 [DEBUG] - * 'OS'='Windows_NT' ('Machine')
2026-07-26 01:39:04,792 3556 [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')
2026-07-26 01:39:04,792 3556 [DEBUG] - * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine')
2026-07-26 01:39:04,792 3556 [DEBUG] - * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine')
2026-07-26 01:39:04,808 3556 [DEBUG] - * 'PSModulePath'='C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules' ('Machine')
2026-07-26 01:39:04,808 3556 [DEBUG] - * 'TEMP'='C:\Windows\TEMP' ('Machine')
2026-07-26 01:39:04,808 3556 [DEBUG] - * 'TMP'='C:\Windows\TEMP' ('Machine')
2026-07-26 01:39:04,823 3556 [DEBUG] - * 'USERNAME'='SYSTEM' ('Machine')
2026-07-26 01:39:04,823 3556 [DEBUG] - * 'windir'='C:\Windows' ('Machine')
2026-07-26 01:39:04,823 3556 [DEBUG] - * 'NUMBER_OF_PROCESSORS'='10' ('Machine')
2026-07-26 01:39:04,839 3556 [DEBUG] - * 'PROCESSOR_LEVEL'='6' ('Machine')
2026-07-26 01:39:04,839 3556 [DEBUG] - * 'PROCESSOR_IDENTIFIER'='Intel64 Family 6 Model 85 Stepping 7, GenuineIntel' ('Machine')
2026-07-26 01:39:04,839 3556 [DEBUG] - * 'PROCESSOR_REVISION'='5507' ('Machine')
2026-07-26 01:39:04,855 3556 [DEBUG] - * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine')
2026-07-26 01:39:05,150 3556 [DEBUG] - Unable to get parent process for 'choco'. Ignoring...
2026-07-26 01:39:05,150 3556 [DEBUG] - Process Tree: Chocolatey CLI => Chocolatey CLI => powershell => powershell => cmd => sshd => sshd => sshd => services
2026-07-26 01:39:05,213 3556 [DEBUG] - Updating User Agent to 'Chocolatey Command Line/2.7.3 (sshd, Chocolatey CLI) via NuGet Client/6.4.1 (Microsoft Windows NT 10.0.17763.0)'.
2026-07-26 01:39:05,871 3556 [DEBUG] - Running list with the following filter = ''
2026-07-26 01:39:05,871 3556 [DEBUG] - --- Start of List ---
2026-07-26 01:39:05,947 3556 [DEBUG] - Process Tree: Chocolatey CLI => Chocolatey CLI => powershell => powershell => cmd => sshd => sshd => sshd => services
2026-07-26 01:39:05,962 3556 [DEBUG] - Updating User Agent to 'Chocolatey Command Line/2.7.3 (sshd, Chocolatey CLI) via NuGet Client/6.4.1 (Microsoft Windows NT 10.0.17763.0)'.
2026-07-26 01:39:05,962 3556 [DEBUG] - Resolving resource PackageSearchResource for source C:\ProgramData\chocolatey\lib
2026-07-26 01:39:07,168 3556 [DEBUG] - chocolatey 2.7.3
2026-07-26 01:39:07,183 3556 [DEBUG] - chocolatey-windowsupdate.extension 1.0.5
2026-07-26 01:39:07,198 3556 [DEBUG] - KB2919355 1.0.20160915
2026-07-26 01:39:07,198 3556 [DEBUG] - KB2919442 1.0.20160915
2026-07-26 01:39:07,214 3556 [DEBUG] - KB2999226 1.0.20181019
2026-07-26 01:39:07,230 3556 [DEBUG] - KB3035131 1.0.3
2026-07-26 01:39:07,247 3556 [DEBUG] - KB3118401 1.0.5
2026-07-26 01:39:07,247 3556 [DEBUG] - virtualbox-guest-additions-guest.install 7.2.12
2026-07-26 01:39:07,261 3556 [DEBUG] - --- End of List ---
2026-07-26 01:39:07,276 3556 [DEBUG] - Resolving resource PackageMetadataResource for source c:\cached-packages
2026-07-26 01:39:08,151 3556 [DEBUG] - Resolving resource PackageMetadataResource for source https://community.chocolatey.org/api/v2/
2026-07-26 01:39:09,072 3556 [INFO ] - [NuGet] GET https://community.chocolatey.org/api/v2/Packages(Id='openssh',Version='8.0.0.1')
2026-07-26 01:39:09,307 3556 [INFO ] - [NuGet] OK https://community.chocolatey.org/api/v2/Packages(Id='openssh',Version='8.0.0.1') 223ms
2026-07-26 01:39:09,541 3556 [DEBUG] - Resolving resource DependencyInfoResource for source c:\cached-packages
2026-07-26 01:39:10,463 3556 [DEBUG] - Resolving resource DependencyInfoResource for source https://community.chocolatey.org/api/v2/
2026-07-26 01:39:10,479 3556 [INFO ] - [NuGet] CACHE https://community.chocolatey.org/api/v2/Packages(Id='openssh',Version='8.0.0.1')
2026-07-26 01:39:10,795 3556 [INFO ] - [NuGet] Resolving dependency information took 0 ms
2026-07-26 01:39:10,822 3556 [DEBUG] - Resolving resource DownloadResource for source https://community.chocolatey.org/api/v2/
2026-07-26 01:39:10,900 3556 [DEBUG] - Attempting to delete file "".
2026-07-26 01:39:10,900 3556 [INFO ] - Downloading package from source 'https://community.chocolatey.org/api/v2/'
2026-07-26 01:39:10,900 3556 [DEBUG] - Package download location 'https://community.chocolatey.org/api/v2/package/openssh/8.0.0.1'
2026-07-26 01:39:10,995 3556 [INFO ] - [NuGet] GET https://community.chocolatey.org/api/v2/package/openssh/8.0.0.1
2026-07-26 01:39:11,370 3556 [INFO ] - [NuGet] OK https://community.chocolatey.org/api/v2/package/openssh/8.0.0.1 370ms
2026-07-26 01:39:11,478 3556 [INFO ] - [NuGet] Acquiring lock for the installation of openssh 8.0.0.1
2026-07-26 01:39:11,635 3556 [INFO ] - [NuGet] Acquired lock for the installation of openssh 8.0.0.1
2026-07-26 01:39:14,463 3556 [INFO ] - [NuGet] Installed openssh 8.0.0.1 from https://community.chocolatey.org/api/v2/ with content hash lak7BlzqMNK+9hFdNuFlox9Z/uQKzWjmyNaCIV7A/K6hpKbxOTX3cCk/BJXXjFl2id7Lig+8aCzd6zThRiy9KA==.
2026-07-26 01:39:14,495 3556 [DEBUG] - Skipping package hash validation as feature 'usePackageHashValidation' is not enabled.
2026-07-26 01:39:14,574 3556 [INFO ] - [NuGet] Adding package 'openssh.8.0.0.1' to folder 'C:\ProgramData\chocolatey\lib'
2026-07-26 01:39:14,948 3556 [INFO ] - [NuGet] Added package 'openssh.8.0.0.1' to folder 'C:\ProgramData\chocolatey\lib'
2026-07-26 01:39:14,968 3556 [DEBUG] - Attempting to delete file "C:\Users\vagrant\AppData\Local\Temp\chocolatey\ChocolateyScratch\openssh/8.0.0.1\openssh.8.0.0.1.nupkg".
2026-07-26 01:39:14,979 3556 [DEBUG] - Attempting to delete file "C:\Users\vagrant\AppData\Local\Temp\chocolatey\ChocolateyScratch\openssh/8.0.0.1\.nupkg.metadata".
2026-07-26 01:39:14,979 3556 [DEBUG] - Attempting to delete file "C:\Users\vagrant\AppData\Local\Temp\chocolatey\ChocolateyScratch\openssh/8.0.0.1\openssh.8.0.0.1.nupkg.sha512".
2026-07-26 01:39:14,995 3556 [INFO ] -
openssh v8.0.0.1 (forced) [Approved]
2026-07-26 01:39:15,182 3556 [INFO ] - openssh package files install completed. Performing other installation steps.
2026-07-26 01:39:15,322 3556 [DEBUG] - Setting installer args for openssh
2026-07-26 01:39:15,356 3556 [DEBUG] - Setting package parameters for openssh
2026-07-26 01:39:15,356 3556 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1':
2026-07-26 01:39:15,402 3556 [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 = '0B471E0F927656113E4A1CF581694C0D735E74ED'
checksumType = 'SHA1'
checksum64 = '4CD3B34E78C354E0EF058B9B40D8802B7CA69604'
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."
2026-07-26 01:39:15,494 3556 [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']
2026-07-26 01:39:15,526 3556 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2026-07-26 01:39:17,400 3556 [DEBUG] - Host version is 5.1.17763.1, PowerShell Version is '5.1.17763.6893' and CLR Version is '4.0.30319.42000'.
2026-07-26 01:39:18,760 3556 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\helpers\Chocolatey.PowerShell.dll'.
2026-07-26 01:39:18,839 3556 [DEBUG] - Returning loaded assembly type for 'Chocolatey.PowerShell'
2026-07-26 01:39:18,854 3556 [INFO ] - VERBOSE: Importing cmdlet 'Get-EnvironmentVariable'.
2026-07-26 01:39:18,854 3556 [INFO ] - VERBOSE: Importing cmdlet 'Get-EnvironmentVariableNames'.
2026-07-26 01:39:18,870 3556 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyPath'.
2026-07-26 01:39:18,870 3556 [INFO ] - VERBOSE: Importing cmdlet 'Set-EnvironmentVariable'.
2026-07-26 01:39:18,886 3556 [INFO ] - VERBOSE: Importing cmdlet 'Test-ProcessAdminRights'.
2026-07-26 01:39:18,886 3556 [INFO ] - VERBOSE: Importing cmdlet 'Uninstall-ChocolateyPath'.
2026-07-26 01:39:18,886 3556 [INFO ] - VERBOSE: Importing cmdlet 'Update-SessionEnvironment'.
2026-07-26 01:39:19,025 3556 [DEBUG] - Cmdlets exported from Chocolatey.PowerShell.dll
2026-07-26 01:39:19,073 3556 [DEBUG] - Get-EnvironmentVariable
2026-07-26 01:39:19,073 3556 [DEBUG] - Get-EnvironmentVariableNames
2026-07-26 01:39:19,073 3556 [DEBUG] - Install-ChocolateyPath
2026-07-26 01:39:19,089 3556 [DEBUG] - Set-EnvironmentVariable
2026-07-26 01:39:19,089 3556 [DEBUG] - Test-ProcessAdminRights
2026-07-26 01:39:19,089 3556 [DEBUG] - Uninstall-ChocolateyPath
2026-07-26 01:39:19,106 3556 [DEBUG] - Update-SessionEnvironment
2026-07-26 01:39:19,152 3556 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2026-07-26 01:39:19,152 3556 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2026-07-26 01:39:19,168 3556 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyConfigValue'.
2026-07-26 01:39:19,183 3556 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'.
2026-07-26 01:39:19,183 3556 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2026-07-26 01:39:19,183 3556 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2026-07-26 01:39:19,200 3556 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2026-07-26 01:39:19,200 3556 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2026-07-26 01:39:19,215 3556 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2026-07-26 01:39:19,215 3556 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2026-07-26 01:39:19,229 3556 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2026-07-26 01:39:19,229 3556 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2026-07-26 01:39:19,229 3556 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2026-07-26 01:39:19,245 3556 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2026-07-26 01:39:19,245 3556 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2026-07-26 01:39:19,263 3556 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2026-07-26 01:39:19,263 3556 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2026-07-26 01:39:19,263 3556 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2026-07-26 01:39:19,277 3556 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2026-07-26 01:39:19,277 3556 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2026-07-26 01:39:19,293 3556 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2026-07-26 01:39:19,293 3556 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2026-07-26 01:39:19,307 3556 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2026-07-26 01:39:19,307 3556 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2026-07-26 01:39:19,307 3556 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2026-07-26 01:39:19,323 3556 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2026-07-26 01:39:19,323 3556 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2026-07-26 01:39:19,339 3556 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2026-07-26 01:39:19,354 3556 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2026-07-26 01:39:19,354 3556 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2026-07-26 01:39:19,370 3556 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2026-07-26 01:39:19,370 3556 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2026-07-26 01:39:19,370 3556 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2026-07-26 01:39:19,387 3556 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2026-07-26 01:39:19,387 3556 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2026-07-26 01:39:19,387 3556 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2026-07-26 01:39:19,401 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Get-EnvironmentVariable'.
2026-07-26 01:39:19,401 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Get-EnvironmentVariableNames'.
2026-07-26 01:39:19,401 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyPath'.
2026-07-26 01:39:19,418 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Set-EnvironmentVariable'.
2026-07-26 01:39:19,418 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Test-ProcessAdminRights'.
2026-07-26 01:39:19,433 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Uninstall-ChocolateyPath'.
2026-07-26 01:39:19,433 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Update-SessionEnvironment'.
2026-07-26 01:39:19,448 3556 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2026-07-26 01:39:19,448 3556 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2026-07-26 01:39:19,448 3556 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2026-07-26 01:39:19,467 3556 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2026-07-26 01:39:19,467 3556 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2026-07-26 01:39:19,480 3556 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2026-07-26 01:39:19,480 3556 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2026-07-26 01:39:19,480 3556 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2026-07-26 01:39:19,495 3556 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2026-07-26 01:39:19,510 3556 [DEBUG] - Loading community extensions
2026-07-26 01:39:19,557 3556 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
2026-07-26 01:39:19,573 3556 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
2026-07-26 01:39:19,809 3556 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2026-07-26 01:39:19,823 3556 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2026-07-26 01:39:19,823 3556 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2026-07-26 01:39:19,839 3556 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2026-07-26 01:39:19,901 3556 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2026-07-26 01:39:19,917 3556 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2026-07-26 01:39:19,917 3556 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyConfigValue'.
2026-07-26 01:39:19,917 3556 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'.
2026-07-26 01:39:19,932 3556 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2026-07-26 01:39:19,932 3556 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2026-07-26 01:39:19,948 3556 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2026-07-26 01:39:19,948 3556 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2026-07-26 01:39:19,948 3556 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2026-07-26 01:39:19,966 3556 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2026-07-26 01:39:19,966 3556 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2026-07-26 01:39:19,966 3556 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2026-07-26 01:39:19,979 3556 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2026-07-26 01:39:19,979 3556 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2026-07-26 01:39:19,979 3556 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2026-07-26 01:39:19,996 3556 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2026-07-26 01:39:19,996 3556 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2026-07-26 01:39:20,011 3556 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2026-07-26 01:39:20,011 3556 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2026-07-26 01:39:20,011 3556 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2026-07-26 01:39:20,026 3556 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2026-07-26 01:39:20,026 3556 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2026-07-26 01:39:20,026 3556 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2026-07-26 01:39:20,042 3556 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2026-07-26 01:39:20,042 3556 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2026-07-26 01:39:20,042 3556 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2026-07-26 01:39:20,058 3556 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2026-07-26 01:39:20,058 3556 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2026-07-26 01:39:20,058 3556 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2026-07-26 01:39:20,072 3556 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2026-07-26 01:39:20,072 3556 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2026-07-26 01:39:20,072 3556 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2026-07-26 01:39:20,089 3556 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2026-07-26 01:39:20,089 3556 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2026-07-26 01:39:20,089 3556 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2026-07-26 01:39:20,104 3556 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2026-07-26 01:39:20,104 3556 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2026-07-26 01:39:20,104 3556 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2026-07-26 01:39:20,120 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Get-EnvironmentVariable'.
2026-07-26 01:39:20,120 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Get-EnvironmentVariableNames'.
2026-07-26 01:39:20,120 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyPath'.
2026-07-26 01:39:20,135 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Set-EnvironmentVariable'.
2026-07-26 01:39:20,135 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Test-ProcessAdminRights'.
2026-07-26 01:39:20,153 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Uninstall-ChocolateyPath'.
2026-07-26 01:39:20,153 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Update-SessionEnvironment'.
2026-07-26 01:39:20,153 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Get-EnvironmentVariable'.
2026-07-26 01:39:20,168 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Get-EnvironmentVariableNames'.
2026-07-26 01:39:20,168 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyPath'.
2026-07-26 01:39:20,183 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Set-EnvironmentVariable'.
2026-07-26 01:39:20,183 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Test-ProcessAdminRights'.
2026-07-26 01:39:20,183 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Uninstall-ChocolateyPath'.
2026-07-26 01:39:20,197 3556 [INFO ] - VERBOSE: Exporting cmdlet 'Update-SessionEnvironment'.
2026-07-26 01:39:20,197 3556 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2026-07-26 01:39:20,197 3556 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2026-07-26 01:39:20,214 3556 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2026-07-26 01:39:20,214 3556 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2026-07-26 01:39:20,214 3556 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2026-07-26 01:39:20,229 3556 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2026-07-26 01:39:20,229 3556 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2026-07-26 01:39:20,245 3556 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2026-07-26 01:39:20,245 3556 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2026-07-26 01:39:20,245 3556 [INFO ] - VERBOSE: Importing cmdlet 'Get-EnvironmentVariable'.
2026-07-26 01:39:20,261 3556 [INFO ] - VERBOSE: Importing cmdlet 'Get-EnvironmentVariableNames'.
2026-07-26 01:39:20,261 3556 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyPath'.
2026-07-26 01:39:20,261 3556 [INFO ] - VERBOSE: Importing cmdlet 'Set-EnvironmentVariable'.
2026-07-26 01:39:20,282 3556 [INFO ] - VERBOSE: Importing cmdlet 'Test-ProcessAdminRights'.
2026-07-26 01:39:20,282 3556 [INFO ] - VERBOSE: Importing cmdlet 'Uninstall-ChocolateyPath'.
2026-07-26 01:39:20,291 3556 [INFO ] - VERBOSE: Importing cmdlet 'Update-SessionEnvironment'.
2026-07-26 01:39:20,291 3556 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2026-07-26 01:39:20,291 3556 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2026-07-26 01:39:20,307 3556 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyConfigValue'.
2026-07-26 01:39:20,307 3556 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyPath'.
2026-07-26 01:39:20,307 3556 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2026-07-26 01:39:20,324 3556 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2026-07-26 01:39:20,324 3556 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2026-07-26 01:39:20,324 3556 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2026-07-26 01:39:20,338 3556 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2026-07-26 01:39:20,338 3556 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2026-07-26 01:39:20,338 3556 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2026-07-26 01:39:20,354 3556 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2026-07-26 01:39:20,354 3556 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2026-07-26 01:39:20,354 3556 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2026-07-26 01:39:20,370 3556 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2026-07-26 01:39:20,370 3556 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2026-07-26 01:39:20,385 3556 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2026-07-26 01:39:20,385 3556 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2026-07-26 01:39:20,385 3556 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2026-07-26 01:39:20,385 3556 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2026-07-26 01:39:20,402 3556 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2026-07-26 01:39:20,402 3556 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2026-07-26 01:39:20,417 3556 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2026-07-26 01:39:20,417 3556 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2026-07-26 01:39:20,433 3556 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2026-07-26 01:39:20,433 3556 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2026-07-26 01:39:20,433 3556 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2026-07-26 01:39:20,452 3556 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2026-07-26 01:39:20,452 3556 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2026-07-26 01:39:20,466 3556 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2026-07-26 01:39:20,466 3556 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2026-07-26 01:39:20,478 3556 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2026-07-26 01:39:20,478 3556 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2026-07-26 01:39:20,478 3556 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2026-07-26 01:39:20,495 3556 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2026-07-26 01:39:20,495 3556 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2026-07-26 01:39:20,495 3556 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2026-07-26 01:39:20,510 3556 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2026-07-26 01:39:20,510 3556 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2026-07-26 01:39:20,510 3556 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2026-07-26 01:39:20,526 3556 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2026-07-26 01:39:20,526 3556 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2026-07-26 01:39:20,541 3556 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2026-07-26 01:39:20,541 3556 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2026-07-26 01:39:20,541 3556 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2026-07-26 01:39:20,541 3556 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2026-07-26 01:39:20,558 3556 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2026-07-26 01:39:20,728 3556 [DEBUG] - ---------------------------Script Execution---------------------------
2026-07-26 01:39:20,776 3556 [DEBUG] - Running 'ChocolateyScriptRunner' for openssh v8.0.0.1 with packageScript 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\openssh', installArguments: '', packageParameters: '', preRunHookScripts: '', postRunHookScripts: '',
2026-07-26 01:39:20,869 3556 [DEBUG] - Running package script 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1'
2026-07-26 01:39:21,634 3556 [INFO ] - VERBOSE: Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' = root\cimv2,'className' = Win32_OperatingSystem'.
2026-07-26 01:39:22,199 3556 [INFO ] - VERBOSE: Operation 'Enumerate CimInstances' complete.
2026-07-26 01:39:22,245 3556 [INFO ] - Running on: Windows Server 2019 Datacenter, (ServerDatacenter)
2026-07-26 01:39:22,264 3556 [INFO ] - Windows Version: 10.0.17763
2026-07-26 01:39:22,322 3556 [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
************************************************************************************
************************************************************************************
2026-07-26 01:39:22,338 3556 [DEBUG] - No Package Parameters Passed in
2026-07-26 01:39:22,729 3556 [DEBUG] - Running Get-ChocolateyUnzip -fileFullPath 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip' -destination 'C:\Users\vagrant\AppData\Local\Temp\chocolatey\OpenSSHTemp'
2026-07-26 01:39:22,775 3556 [DEBUG] - Running Get-OSArchitectureWidth -compare '32'
2026-07-26 01:39:22,854 3556 [INFO ] - Extracting C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip to C:\Users\vagrant\AppData\Local\Temp\chocolatey\OpenSSHTemp...
2026-07-26 01:39:22,964 3556 [DEBUG] - 7zip found at 'C:\ProgramData\chocolatey\tools\7z.exe'
2026-07-26 01:39:23,088 3556 [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"]
2026-07-26 01:39:23,729 3556 [INFO ] - VERBOSE: Scanning the drive for archives:
2026-07-26 01:39:23,760 3556 [INFO ] - VERBOSE:
2026-07-26 01:39:23,776 3556 [INFO ] - VERBOSE:
2026-07-26 01:39:23,776 3556 [INFO ] - VERBOSE: 1 file, 3374244 bytes (3296 KiB)
2026-07-26 01:39:23,792 3556 [INFO ] - VERBOSE:
2026-07-26 01:39:23,792 3556 [INFO ] - VERBOSE: Extracting archive: C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip
2026-07-26 01:39:23,808 3556 [INFO ] - VERBOSE: 7-Zip 26.01 (x86) : Copyright (c) 1999-2026 Igor Pavlov : 2026-04-27
2026-07-26 01:39:23,808 3556 [INFO ] - VERBOSE: --
2026-07-26 01:39:23,825 3556 [INFO ] - VERBOSE: Type = zip
2026-07-26 01:39:23,825 3556 [INFO ] - VERBOSE: Path = C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip
2026-07-26 01:39:23,837 3556 [INFO ] - VERBOSE: Physical Size = 3374244
2026-07-26 01:39:23,855 3556 [INFO ] - VERBOSE: - OpenSSH-Win64\FixUserFilePermissions.ps1
2026-07-26 01:39:23,932 3556 [INFO ] - VERBOSE: - OpenSSH-Win64\install-sshd.ps1
2026-07-26 01:39:23,932 3556 [INFO ] - VERBOSE: - OpenSSH-Win64\libcrypto.dll
2026-07-26 01:39:23,949 3556 [INFO ] - VERBOSE: - OpenSSH-Win64\openssh-events.man
2026-07-26 01:39:23,949 3556 [INFO ] - VERBOSE: - OpenSSH-Win64\OpenSSHUtils.psd1
2026-07-26 01:39:23,962 3556 [INFO ] - VERBOSE: - OpenSSH-Win64\OpenSSHUtils.psm1
2026-07-26 01:39:23,962 3556 [INFO ] - VERBOSE: - OpenSSH-Win64\sftp-server.exe
2026-07-26 01:39:23,979 3556 [INFO ] - VERBOSE: - OpenSSH-Win64\sftp.exe
2026-07-26 01:39:23,979 3556 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-keygen.exe
2026-07-26 01:39:23,995 3556 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-agent.exe
2026-07-26 01:39:23,995 3556 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-keyscan.exe
2026-07-26 01:39:24,010 3556 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-shellhost.exe
2026-07-26 01:39:24,026 3556 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh.exe
2026-07-26 01:39:24,026 3556 [INFO ] - VERBOSE: - OpenSSH-Win64\sshd.exe
2026-07-26 01:39:24,041 3556 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-add.exe
2026-07-26 01:39:24,041 3556 [INFO ] - VERBOSE: - OpenSSH-Win64\uninstall-sshd.ps1
2026-07-26 01:39:24,058 3556 [INFO ] - VERBOSE: - OpenSSH-Win64\scp.exe
2026-07-26 01:39:24,058 3556 [INFO ] - VERBOSE: - OpenSSH-Win64\sshd_config_default
2026-07-26 01:39:24,058 3556 [INFO ] - VERBOSE: - OpenSSH-Win64\
2026-07-26 01:39:24,074 3556 [INFO ] - VERBOSE: - OpenSSH-Win64\FixHostFilePermissions.ps1
2026-07-26 01:39:24,074 3556 [INFO ] - VERBOSE:
2026-07-26 01:39:24,089 3556 [INFO ] - VERBOSE:
2026-07-26 01:39:24,121 3556 [INFO ] - VERBOSE: Everything is Ok
2026-07-26 01:39:24,121 3556 [INFO ] - VERBOSE: Folders: 1
2026-07-26 01:39:24,136 3556 [INFO ] - VERBOSE: Files: 19
2026-07-26 01:39:24,156 3556 [INFO ] - VERBOSE: Size: 7158734
2026-07-26 01:39:24,167 3556 [INFO ] - VERBOSE: Compressed: 3374244
2026-07-26 01:39:24,354 3556 [DEBUG] - $exitCode was passed null
2026-07-26 01:39:24,371 3556 [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'.
2026-07-26 01:39:24,371 3556 [DEBUG] - 7z exit code: 0
2026-07-26 01:39:24,416 3556 [INFO ] - C:\Users\vagrant\AppData\Local\Temp\chocolatey\OpenSSHTemp
2026-07-26 01:39:32,199 3556 [INFO ] - Hashes for internal source match
2026-07-26 01:39:32,228 3556 [INFO ] - C:\Program Files\OpenSSH-Win64
2026-07-26 01:39:32,228 3556 [INFO ] - C:\Program Files\OpenSSH-Win64\FixHostFilePermissions.ps1
2026-07-26 01:39:32,245 3556 [INFO ] - C:\Program Files\OpenSSH-Win64\FixUserFilePermissions.ps1
2026-07-26 01:39:32,245 3556 [INFO ] - C:\Program Files\OpenSSH-Win64\install-sshd.ps1
2026-07-26 01:39:32,261 3556 [INFO ] - C:\Program Files\OpenSSH-Win64\libcrypto.dll
2026-07-26 01:39:32,261 3556 [INFO ] - C:\Program Files\OpenSSH-Win64\openssh-events.man
2026-07-26 01:39:32,283 3556 [INFO ] - C:\Program Files\OpenSSH-Win64\OpenSSHUtils.psd1
2026-07-26 01:39:32,290 3556 [INFO ] - C:\Program Files\OpenSSH-Win64\OpenSSHUtils.psm1
2026-07-26 01:39:32,307 3556 [INFO ] - C:\Program Files\OpenSSH-Win64\scp.exe
2026-07-26 01:39:32,307 3556 [INFO ] - C:\Program Files\OpenSSH-Win64\sftp-server.exe
2026-07-26 01:39:32,324 3556 [INFO ] - C:\Program Files\OpenSSH-Win64\sftp.exe
2026-07-26 01:39:32,324 3556 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-add.exe
2026-07-26 01:39:32,338 3556 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-agent.exe
2026-07-26 01:39:32,338 3556 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-keygen.exe
2026-07-26 01:39:32,354 3556 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-keyscan.exe
2026-07-26 01:39:32,370 3556 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-shellhost.exe
2026-07-26 01:39:32,370 3556 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh.exe
2026-07-26 01:39:32,385 3556 [INFO ] - C:\Program Files\OpenSSH-Win64\sshd.exe
2026-07-26 01:39:32,401 3556 [INFO ] - C:\Program Files\OpenSSH-Win64\sshd_config_default
2026-07-26 01:39:32,401 3556 [INFO ] - C:\Program Files\OpenSSH-Win64\uninstall-sshd.ps1
2026-07-26 01:39:32,417 3556 [INFO ] - C:\Program Files\OpenSSH-Win64\Set-SSHDefaultShell.ps1
2026-07-26 01:39:32,495 3556 [DEBUG] - Running Install-ChocolateyPath -Path 'C:\Program Files\OpenSSH-Win64' -PathType 'Machine'
2026-07-26 01:39:32,526 3556 [INFO ] - PATH environment variable does not have C:\Program Files\OpenSSH-Win64 in it. Adding...
2026-07-26 01:39:32,543 3556 [DEBUG] - Registry type for PATH is/will be ExpandString
2026-07-26 01:39:32,667 3556 [DEBUG] - Finishing 'Install-ChocolateyPath'
2026-07-26 01:39:32,728 3556 [INFO ] - Updating machine environment variable TERM from "" to ""
2026-07-26 01:39:38,291 3556 [INFO ] -
NEW VERSIONS OF SSH EXES:
2026-07-26 01:39:38,702 3556 [INFO ] -
2026-07-26 01:39:38,714 3556 [INFO ] -
2026-07-26 01:39:38,728 3556 [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.
2026-07-26 01:39:38,776 3556 [DEBUG] - ----------------------------------------------------------------------
2026-07-26 01:39:38,807 3556 [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'.
2026-07-26 01:39:38,822 3556 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2026-07-26 01:39:39,090 3556 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2026-07-26 01:39:39,153 3556 [WARN ] - Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
2026-07-26 01:39:39,153 3556 [DEBUG] - The following values have been added/changed (may contain sensitive data):
2026-07-26 01:39:39,167 3556 [DEBUG] - * ChocolateyLastPathUpdate='134295035725576108' (User)
2026-07-26 01:39:39,167 3556 [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)
2026-07-26 01:39:39,185 3556 [DEBUG] - * TERM='' (Machine)
2026-07-26 01:39:39,495 3556 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\openssh'
2026-07-26 01:39:39,541 3556 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\openssh.nupkg'
with checksum '9136665A6AD8B3B62A3A1FFBED8A7FEA'
2026-07-26 01:39:39,559 3556 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\openssh.nuspec'
with checksum '9D949B36AD39A494935CEDF6F51DAC23'
2026-07-26 01:39:39,573 3556 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\7z.dll'
with checksum '9943B3BCB2CA91CCBEF2D96682CECB79'
2026-07-26 01:39:39,590 3556 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe'
with checksum '506E5B371882A5A62B669F04CE04DBA8'
2026-07-26 01:39:39,605 3556 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe.ignore'
with checksum 'D41D8CD98F00B204E9800998ECF8427E'
2026-07-26 01:39:39,605 3556 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\barebonesinstaller.ps1'
with checksum '4EF4A2A2F7DF1E58FEFC7B2796C3D30B'
2026-07-26 01:39:39,620 3556 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1'
with checksum 'D5C312730F2371D6B54370DEFA69B586'
2026-07-26 01:39:39,620 3556 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1'
with checksum '52ED6CE8FD63609AF9144F51A2B4841B'
2026-07-26 01:39:39,620 3556 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\Get-NetStat.ps1'
with checksum '5639E1A979924BAB1F81DEDC52C89003'
2026-07-26 01:39:39,636 3556 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\LICENSE.txt'
with checksum '1FA7983BE13136F10B6E346AC0F8ACE3'
2026-07-26 01:39:39,651 3556 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win32.zip'
with checksum '236A84900601B75E3986ED28C1FBBAFA'
2026-07-26 01:39:39,666 3556 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip'
with checksum '8012EF304C0C0CF93AAFD0A6E7A7E14C'
2026-07-26 01:39:39,685 3556 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\Set-SSHDefaultShell.ps1'
with checksum '1A26224C48488038D136D9F06A7B9E73'
2026-07-26 01:39:39,685 3556 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\SetSpecialPrivileges.ps1'
with checksum '543B78A2B38141A98F2AF8BD3F10893B'
2026-07-26 01:39:39,700 3556 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\VERIFICATION.txt'
with checksum 'A3C11FB5F52B25E893CFB4FA8539F2E4'
2026-07-26 01:39:39,886 3556 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\openssh.8.0.0.1".
2026-07-26 01:39:39,965 3556 [DEBUG] - There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\openssh.8.0.0.1\.files'
2026-07-26 01:39:40,010 3556 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\openssh.8.0.0.1\.extra".
2026-07-26 01:39:40,010 3556 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\openssh.8.0.0.1\.version".
2026-07-26 01:39:40,027 3556 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\openssh.8.0.0.1\.sxs".
2026-07-26 01:39:40,027 3556 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\openssh.8.0.0.1\.pin".
2026-07-26 01:39:40,089 3556 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2026-07-26 01:39:40,089 3556 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\.chocolateyPending".
2026-07-26 01:39:40,105 3556 [INFO ] - The install of openssh was successful.
2026-07-26 01:39:40,105 3556 [INFO ] - Deployed to 'C:\Users\vagrant\AppData\Local\Temp\chocolatey\OpenSSHTemp'
2026-07-26 01:39:40,250 3556 [WARN ] -
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2026-07-26 01:39:40,277 3556 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2026-07-26 01:39:40,292 3556 [DEBUG] - Exiting with 0
2026-07-26 01:40:02,421 3196 [DEBUG] - XmlConfiguration is now operational
2026-07-26 01:40:03,088 3196 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2026-07-26 01:40:03,103 3196 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2026-07-26 01:40:03,121 3196 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2026-07-26 01:40:03,121 3196 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2026-07-26 01:40:03,121 3196 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2026-07-26 01:40:03,149 3196 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2026-07-26 01:40:03,149 3196 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2026-07-26 01:40:03,171 3196 [DEBUG] - Adding new type 'RubyGemsService' for type 'IListSourceRunner' from assembly 'choco'
2026-07-26 01:40:03,171 3196 [DEBUG] - Adding new type 'RubyGemsService' for type 'IInstallSourceRunner' from assembly 'choco'
2026-07-26 01:40:03,199 3196 [DEBUG] - Adding new type 'SystemStateValidation' for type 'IValidation' from assembly 'choco'
2026-07-26 01:40:03,219 3196 [DEBUG] - Adding new type 'CacheFolderLockdownValidation' for type 'IValidation' from assembly 'choco'
2026-07-26 01:40:07,791 3196 [DEBUG] - Adding new type 'FrameWorkReferencesMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2026-07-26 01:40:07,791 3196 [DEBUG] - Adding new type 'IconMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2026-07-26 01:40:07,806 3196 [DEBUG] - Adding new type 'LicenseMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2026-07-26 01:40:07,806 3196 [DEBUG] - Adding new type 'PackageTypesMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2026-07-26 01:40:07,822 3196 [DEBUG] - Adding new type 'ReadmeMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2026-07-26 01:40:07,822 3196 [DEBUG] - Adding new type 'RepositoryMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2026-07-26 01:40:07,822 3196 [DEBUG] - Adding new type 'RequiredMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2026-07-26 01:40:07,839 3196 [DEBUG] - Adding new type 'RequireLicenseAcceptanceMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2026-07-26 01:40:07,839 3196 [DEBUG] - Adding new type 'ServicableMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2026-07-26 01:40:07,853 3196 [DEBUG] - Adding new type 'VersionMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2026-07-26 01:40:07,916 3196 [DEBUG] - Registering new command 'apikey' in assembly 'choco'
2026-07-26 01:40:07,916 3196 [DEBUG] - Registering new command 'cache' in assembly 'choco'
2026-07-26 01:40:07,932 3196 [DEBUG] - Registering new command 'config' in assembly 'choco'
2026-07-26 01:40:07,932 3196 [DEBUG] - Registering new command 'export' in assembly 'choco'
2026-07-26 01:40:07,932 3196 [DEBUG] - Registering new command 'feature' in assembly 'choco'
2026-07-26 01:40:07,947 3196 [DEBUG] - Registering new command 'help' in assembly 'choco'
2026-07-26 01:40:07,947 3196 [DEBUG] - Registering new command 'info' in assembly 'choco'
2026-07-26 01:40:07,947 3196 [DEBUG] - Registering new command 'install' in assembly 'choco'
2026-07-26 01:40:07,964 3196 [DEBUG] - Registering new command 'license' in assembly 'choco'
2026-07-26 01:40:08,003 3196 [DEBUG] - Registering new command 'list' in assembly 'choco'
2026-07-26 01:40:08,003 3196 [DEBUG] - Registering new command 'new' in assembly 'choco'
2026-07-26 01:40:08,010 3196 [DEBUG] - Registering new command 'outdated' in assembly 'choco'
2026-07-26 01:40:08,010 3196 [DEBUG] - Registering new command 'pack' in assembly 'choco'
2026-07-26 01:40:08,025 3196 [DEBUG] - Registering new command 'pin' in assembly 'choco'
2026-07-26 01:40:08,025 3196 [DEBUG] - Registering new command 'push' in assembly 'choco'
2026-07-26 01:40:08,025 3196 [DEBUG] - Registering new command 'rule' in assembly 'choco'
2026-07-26 01:40:08,042 3196 [DEBUG] - Registering new command 'search' in assembly 'choco'
2026-07-26 01:40:08,042 3196 [DEBUG] - Registering new command 'source' in assembly 'choco'
2026-07-26 01:40:08,042 3196 [DEBUG] - Registering new command 'support' in assembly 'choco'
2026-07-26 01:40:08,058 3196 [DEBUG] - Registering new command 'template' in assembly 'choco'
2026-07-26 01:40:08,058 3196 [DEBUG] - Registering new command 'uninstall' in assembly 'choco'
2026-07-26 01:40:08,072 3196 [DEBUG] - Registering new command 'unpackself' in assembly 'choco'
2026-07-26 01:40:08,072 3196 [DEBUG] - Registering new command 'upgrade' in assembly 'choco'
2026-07-26 01:40:09,089 3196 [INFO ] - ============================================================
2026-07-26 01:40:10,837 3196 [INFO ] - Chocolatey v2.7.3
2026-07-26 01:40:10,917 3196 [DEBUG] - Chocolatey is running on Windows v 10.0.17763.0
2026-07-26 01:40:10,963 3196 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2026-07-26 01:40:10,963 3196 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2026-07-26 01:40:11,056 3196 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" uninstall openssh --version 8.0.0.1 -dvy --execution-timeout=2700
2026-07-26 01:40:11,073 3196 [DEBUG] - Received arguments: uninstall openssh --version 8.0.0.1 -dvy --execution-timeout=2700
2026-07-26 01:40:11,619 3196 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2026-07-26 01:40:11,697 3196 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2026-07-26 01:40:11,838 3196 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2026-07-26 01:40:12,415 3196 [DEBUG] - Performing validation checks.
2026-07-26 01:40:12,494 3196 [DEBUG] - Global Configuration Validation Checks:
2026-07-26 01:40:12,509 3196 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked
2026-07-26 01:40:12,541 3196 [DEBUG] - System State Validation Checks:
2026-07-26 01:40:12,556 3196 [DEBUG] - Reboot Requirement Checks:
2026-07-26 01:40:12,589 3196 [DEBUG] - - Pending Computer Rename = Checked
2026-07-26 01:40:12,604 3196 [DEBUG] - - Pending Component Based Servicing = Flagged
2026-07-26 01:40:12,619 3196 [DEBUG] - Cache Folder Lockdown Checks:
2026-07-26 01:40:12,634 3196 [DEBUG] - - Elevated State = Checked
2026-07-26 01:40:12,634 3196 [DEBUG] - - Folder Exists = Checked
2026-07-26 01:40:12,698 3196 [DEBUG] - - Folder lockdown = Checked
2026-07-26 01:40:12,728 3196 [INFO ] - 3 validations performed. 2 success(es), 1 warning(s), and 0 error(s).
2026-07-26 01:40:12,744 3196 [INFO ] -
2026-07-26 01:40:12,761 3196 [WARN ] - Validation Warnings:
2026-07-26 01:40:12,775 3196 [WARN ] - - A pending system reboot request has been detected, however, this is
being ignored due to the current Chocolatey configuration. If you
want to halt when this occurs, then either set the global feature
using:
choco feature enable --name="exitOnRebootDetected"
or pass the option --exit-when-reboot-detected.
2026-07-26 01:40:13,180 3196 [DEBUG] - The source 'c:\cached-packages;https://community.chocolatey.org/api/v2/' evaluated to a 'normal' source type
2026-07-26 01:40:13,229 3196 [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.
2026-07-26 01:40:13,446 3196 [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'|IncludeConfiguredSources='False'|
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.0.0.1'|AllVersions='False'|
SkipPackageInstallProvider='False'|SkipHookScripts='False'|
PackageNames='openssh'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
UseHttpCache='True'|CacheExpirationInMinutes='30'|
AllowDowngrade='False'|ForceDependencies='False'|PinPackage='False'|
IncludeHeaders='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.17763.0'|
Information.PlatformName='Windows Server 2019'|
Information.ChocolateyVersion='2.7.3.0'|
Information.ChocolateyProductVersion='2.7.3'|
Information.FullName='choco, Version=2.7.3.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='False'|
Information.UserName='vagrant'|
Information.UserDomainName='WIN-S94J7SPVL3O'|
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'|
Features.UsePackageHashValidation='False'|
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.IgnorePinned='False'|
ListCommand.OrderBy='Id'|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'|
UpgradeCommand.IgnorePinned='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'|
LicenseCommand.Command='Unknown'|OutdatedCommand.IgnorePinned='False'|
ExportCommand.IncludeVersionNumbers='False'|Proxy.BypassOnLocal='True'|
TemplateCommand.Command='unknown'|CacheCommand.Command='Unknown'|
CacheCommand.RemoveExpiredItemsOnly='False'|
2026-07-26 01:40:13,478 3196 [DEBUG] - _ Chocolatey:ChocolateyUninstallCommand - Normal Run Mode _
2026-07-26 01:40:13,526 3196 [INFO ] - Uninstalling the following packages:
2026-07-26 01:40:13,543 3196 [INFO ] - openssh
2026-07-26 01:40:13,620 3196 [DEBUG] - Current environment values (may contain sensitive data):
2026-07-26 01:40:13,637 3196 [DEBUG] - * 'Path'='C:\Users\vagrant\AppData\Local\Microsoft\WindowsApps;' ('User')
2026-07-26 01:40:13,637 3196 [DEBUG] - * 'TEMP'='C:\Users\vagrant\AppData\Local\Temp' ('User')
2026-07-26 01:40:13,652 3196 [DEBUG] - * 'TMP'='C:\Users\vagrant\AppData\Local\Temp' ('User')
2026-07-26 01:40:13,652 3196 [DEBUG] - * 'ChocolateyLastPathUpdate'='134295035725576108' ('User')
2026-07-26 01:40:13,667 3196 [DEBUG] - * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine')
2026-07-26 01:40:13,667 3196 [DEBUG] - * 'DriverData'='C:\Windows\System32\Drivers\DriverData' ('Machine')
2026-07-26 01:40:13,685 3196 [DEBUG] - * 'OS'='Windows_NT' ('Machine')
2026-07-26 01:40:13,696 3196 [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')
2026-07-26 01:40:13,716 3196 [DEBUG] - * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine')
2026-07-26 01:40:13,716 3196 [DEBUG] - * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine')
2026-07-26 01:40:13,730 3196 [DEBUG] - * 'PSModulePath'='C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules' ('Machine')
2026-07-26 01:40:13,745 3196 [DEBUG] - * 'TEMP'='C:\Windows\TEMP' ('Machine')
2026-07-26 01:40:13,745 3196 [DEBUG] - * 'TMP'='C:\Windows\TEMP' ('Machine')
2026-07-26 01:40:13,764 3196 [DEBUG] - * 'USERNAME'='SYSTEM' ('Machine')
2026-07-26 01:40:13,775 3196 [DEBUG] - * 'windir'='C:\Windows' ('Machine')
2026-07-26 01:40:13,775 3196 [DEBUG] - * 'NUMBER_OF_PROCESSORS'='10' ('Machine')
2026-07-26 01:40:13,791 3196 [DEBUG] - * 'PROCESSOR_LEVEL'='6' ('Machine')
2026-07-26 01:40:13,791 3196 [DEBUG] - * 'PROCESSOR_IDENTIFIER'='Intel64 Family 6 Model 85 Stepping 7, GenuineIntel' ('Machine')
2026-07-26 01:40:13,807 3196 [DEBUG] - * 'PROCESSOR_REVISION'='5507' ('Machine')
2026-07-26 01:40:13,823 3196 [DEBUG] - * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine')
2026-07-26 01:40:13,884 3196 [DEBUG] - * 'TERM'='' ('Machine')
2026-07-26 01:40:14,807 3196 [DEBUG] - Running list with the following filter = ''
2026-07-26 01:40:14,822 3196 [DEBUG] - --- Start of List ---
2026-07-26 01:40:15,588 3196 [DEBUG] - Unable to get parent process for 'choco'. Ignoring...
2026-07-26 01:40:15,588 3196 [DEBUG] - Process Tree: Chocolatey CLI => Chocolatey CLI => powershell => powershell => cmd => sshd => sshd => sshd => services
2026-07-26 01:40:15,681 3196 [DEBUG] - Updating User Agent to 'Chocolatey Command Line/2.7.3 (sshd, Chocolatey CLI) via NuGet Client/6.4.1 (Microsoft Windows NT 10.0.17763.0)'.
2026-07-26 01:40:16,075 3196 [DEBUG] - Resolving resource PackageSearchResource for source C:\ProgramData\chocolatey\lib
2026-07-26 01:40:17,337 3196 [DEBUG] - chocolatey 2.7.3
2026-07-26 01:40:17,400 3196 [DEBUG] - chocolatey-windowsupdate.extension 1.0.5
2026-07-26 01:40:17,416 3196 [DEBUG] - KB2919355 1.0.20160915
2026-07-26 01:40:17,416 3196 [DEBUG] - KB2919442 1.0.20160915
2026-07-26 01:40:17,447 3196 [DEBUG] - KB2999226 1.0.20181019
2026-07-26 01:40:17,447 3196 [DEBUG] - KB3035131 1.0.3
2026-07-26 01:40:17,478 3196 [DEBUG] - KB3118401 1.0.5
2026-07-26 01:40:17,697 3196 [DEBUG] - openssh 8.0.0.1
2026-07-26 01:40:17,713 3196 [DEBUG] - virtualbox-guest-additions-guest.install 7.2.12
2026-07-26 01:40:17,713 3196 [DEBUG] - --- End of List ---
2026-07-26 01:40:17,745 3196 [DEBUG] - Running list with the following filter = ''
2026-07-26 01:40:17,745 3196 [DEBUG] - --- Start of List ---
2026-07-26 01:40:17,760 3196 [DEBUG] - Process Tree: Chocolatey CLI => Chocolatey CLI => powershell => powershell => cmd => sshd => sshd => sshd => services
2026-07-26 01:40:17,760 3196 [DEBUG] - Updating User Agent to 'Chocolatey Command Line/2.7.3 (sshd, Chocolatey CLI) via NuGet Client/6.4.1 (Microsoft Windows NT 10.0.17763.0)'.
2026-07-26 01:40:17,915 3196 [DEBUG] - chocolatey 2.7.3
2026-07-26 01:40:17,946 3196 [DEBUG] - chocolatey-windowsupdate.extension 1.0.5
2026-07-26 01:40:17,962 3196 [DEBUG] - KB2919355 1.0.20160915
2026-07-26 01:40:17,995 3196 [DEBUG] - KB2919442 1.0.20160915
2026-07-26 01:40:18,010 3196 [DEBUG] - KB2999226 1.0.20181019
2026-07-26 01:40:18,026 3196 [DEBUG] - KB3035131 1.0.3
2026-07-26 01:40:18,041 3196 [DEBUG] - KB3118401 1.0.5
2026-07-26 01:40:18,118 3196 [DEBUG] - openssh 8.0.0.1
2026-07-26 01:40:18,134 3196 [DEBUG] - virtualbox-guest-additions-guest.install 7.2.12
2026-07-26 01:40:18,150 3196 [DEBUG] - --- End of List ---
2026-07-26 01:40:18,369 3196 [DEBUG] - Running list with the following filter = ''
2026-07-26 01:40:18,369 3196 [DEBUG] - --- Start of List ---
2026-07-26 01:40:18,385 3196 [DEBUG] - Process Tree: Chocolatey CLI => Chocolatey CLI => powershell => powershell => cmd => sshd => sshd => sshd => services
2026-07-26 01:40:18,385 3196 [DEBUG] - Updating User Agent to 'Chocolatey Command Line/2.7.3 (sshd, Chocolatey CLI) via NuGet Client/6.4.1 (Microsoft Windows NT 10.0.17763.0)'.
2026-07-26 01:40:18,465 3196 [DEBUG] - chocolatey 2.7.3
2026-07-26 01:40:18,479 3196 [DEBUG] - chocolatey-windowsupdate.extension 1.0.5
2026-07-26 01:40:18,494 3196 [DEBUG] - KB2919355 1.0.20160915
2026-07-26 01:40:18,510 3196 [DEBUG] - KB2919442 1.0.20160915
2026-07-26 01:40:18,526 3196 [DEBUG] - KB2999226 1.0.20181019
2026-07-26 01:40:18,556 3196 [DEBUG] - KB3035131 1.0.3
2026-07-26 01:40:18,575 3196 [DEBUG] - KB3118401 1.0.5
2026-07-26 01:40:18,634 3196 [DEBUG] - openssh 8.0.0.1
2026-07-26 01:40:18,651 3196 [DEBUG] - virtualbox-guest-additions-guest.install 7.2.12
2026-07-26 01:40:18,666 3196 [DEBUG] - --- End of List ---
2026-07-26 01:40:18,807 3196 [INFO ] -
openssh v8.0.0.1
2026-07-26 01:40:18,870 3196 [DEBUG] - Running beforeModify step for 'openssh'
2026-07-26 01:40:18,932 3196 [DEBUG] - Backing up package files for 'openssh'
2026-07-26 01:40:19,372 3196 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bkp\openssh".
2026-07-26 01:40:19,384 3196 [DEBUG] - Moving C:\ProgramData\chocolatey\lib\openssh to C:\ProgramData\chocolatey\lib-bkp\openssh\8.0.0.1
2026-07-26 01:40:19,417 3196 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\openssh'
to 'C:\ProgramData\chocolatey\lib-bkp\openssh\8.0.0.1'
2026-07-26 01:40:21,447 3196 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\openssh".
2026-07-26 01:40:21,463 3196 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.0.0.1\openssh.nupkg"
to "C:\ProgramData\chocolatey\lib\openssh\openssh.nupkg".
2026-07-26 01:40:21,493 3196 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.0.0.1\openssh.nuspec"
to "C:\ProgramData\chocolatey\lib\openssh\openssh.nuspec".
2026-07-26 01:40:21,509 3196 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\openssh\tools".
2026-07-26 01:40:21,525 3196 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.0.0.1\tools\7z.dll"
to "C:\ProgramData\chocolatey\lib\openssh\tools\7z.dll".
2026-07-26 01:40:21,525 3196 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.0.0.1\tools\7z.exe"
to "C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe".
2026-07-26 01:40:21,540 3196 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.0.0.1\tools\7z.exe.ignore"
to "C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe.ignore".
2026-07-26 01:40:21,556 3196 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.0.0.1\tools\barebonesinstaller.ps1"
to "C:\ProgramData\chocolatey\lib\openssh\tools\barebonesinstaller.ps1".
2026-07-26 01:40:21,574 3196 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.0.0.1\tools\chocolateyinstall.ps1"
to "C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1".
2026-07-26 01:40:21,587 3196 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.0.0.1\tools\chocolateyuninstall.ps1"
to "C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1".
2026-07-26 01:40:21,587 3196 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.0.0.1\tools\Get-NetStat.ps1"
to "C:\ProgramData\chocolatey\lib\openssh\tools\Get-NetStat.ps1".
2026-07-26 01:40:21,604 3196 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.0.0.1\tools\LICENSE.txt"
to "C:\ProgramData\chocolatey\lib\openssh\tools\LICENSE.txt".
2026-07-26 01:40:21,620 3196 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.0.0.1\tools\OpenSSH-Win32.zip"
to "C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win32.zip".
2026-07-26 01:40:21,635 3196 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.0.0.1\tools\OpenSSH-Win64.zip"
to "C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip".
2026-07-26 01:40:21,667 3196 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.0.0.1\tools\Set-SSHDefaultShell.ps1"
to "C:\ProgramData\chocolatey\lib\openssh\tools\Set-SSHDefaultShell.ps1".
2026-07-26 01:40:21,667 3196 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.0.0.1\tools\SetSpecialPrivileges.ps1"
to "C:\ProgramData\chocolatey\lib\openssh\tools\SetSpecialPrivileges.ps1".
2026-07-26 01:40:21,681 3196 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\8.0.0.1\tools\VERIFICATION.txt"
to "C:\ProgramData\chocolatey\lib\openssh\tools\VERIFICATION.txt".
2026-07-26 01:40:23,244 3196 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\openssh'
2026-07-26 01:40:23,308 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\openssh.nupkg'
with checksum '9136665A6AD8B3B62A3A1FFBED8A7FEA'
2026-07-26 01:40:23,322 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\openssh.nuspec'
with checksum '9D949B36AD39A494935CEDF6F51DAC23'
2026-07-26 01:40:23,338 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\7z.dll'
with checksum '9943B3BCB2CA91CCBEF2D96682CECB79'
2026-07-26 01:40:23,358 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe'
with checksum '506E5B371882A5A62B669F04CE04DBA8'
2026-07-26 01:40:23,372 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe.ignore'
with checksum 'D41D8CD98F00B204E9800998ECF8427E'
2026-07-26 01:40:23,384 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\barebonesinstaller.ps1'
with checksum '4EF4A2A2F7DF1E58FEFC7B2796C3D30B'
2026-07-26 01:40:23,384 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1'
with checksum 'D5C312730F2371D6B54370DEFA69B586'
2026-07-26 01:40:23,403 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1'
with checksum '52ED6CE8FD63609AF9144F51A2B4841B'
2026-07-26 01:40:23,417 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\Get-NetStat.ps1'
with checksum '5639E1A979924BAB1F81DEDC52C89003'
2026-07-26 01:40:23,417 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\LICENSE.txt'
with checksum '1FA7983BE13136F10B6E346AC0F8ACE3'
2026-07-26 01:40:23,465 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win32.zip'
with checksum '236A84900601B75E3986ED28C1FBBAFA'
2026-07-26 01:40:23,494 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip'
with checksum '8012EF304C0C0CF93AAFD0A6E7A7E14C'
2026-07-26 01:40:23,525 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\Set-SSHDefaultShell.ps1'
with checksum '1A26224C48488038D136D9F06A7B9E73'
2026-07-26 01:40:23,541 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\SetSpecialPrivileges.ps1'
with checksum '543B78A2B38141A98F2AF8BD3F10893B'
2026-07-26 01:40:23,558 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\VERIFICATION.txt'
with checksum 'A3C11FB5F52B25E893CFB4FA8539F2E4'
2026-07-26 01:40:23,587 3196 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe.ignore".
2026-07-26 01:40:23,635 3196 [DEBUG] - Removing shim for 7z.exe at 'C:\ProgramData\chocolatey\bin\7z.exe
2026-07-26 01:40:23,635 3196 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\bin\7z.exe".
2026-07-26 01:40:23,711 3196 [DEBUG] - Setting installer args for openssh
2026-07-26 01:40:23,711 3196 [DEBUG] - Setting package parameters for openssh
2026-07-26 01:40:23,711 3196 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1':
2026-07-26 01:40:23,774 3196 [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'
}
2026-07-26 01:40:23,884 3196 [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']
2026-07-26 01:40:23,915 3196 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2026-07-26 01:40:27,103 3196 [DEBUG] - Host version is 5.1.17763.1, PowerShell Version is '5.1.17763.6893' and CLR Version is '4.0.30319.42000'.
2026-07-26 01:40:28,743 3196 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\helpers\Chocolatey.PowerShell.dll'.
2026-07-26 01:40:28,854 3196 [DEBUG] - Returning loaded assembly type for 'Chocolatey.PowerShell'
2026-07-26 01:40:28,870 3196 [INFO ] - VERBOSE: Importing cmdlet 'Get-EnvironmentVariable'.
2026-07-26 01:40:28,870 3196 [INFO ] - VERBOSE: Importing cmdlet 'Get-EnvironmentVariableNames'.
2026-07-26 01:40:28,884 3196 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyPath'.
2026-07-26 01:40:28,884 3196 [INFO ] - VERBOSE: Importing cmdlet 'Set-EnvironmentVariable'.
2026-07-26 01:40:28,901 3196 [INFO ] - VERBOSE: Importing cmdlet 'Test-ProcessAdminRights'.
2026-07-26 01:40:28,901 3196 [INFO ] - VERBOSE: Importing cmdlet 'Uninstall-ChocolateyPath'.
2026-07-26 01:40:28,917 3196 [INFO ] - VERBOSE: Importing cmdlet 'Update-SessionEnvironment'.
2026-07-26 01:40:29,087 3196 [DEBUG] - Cmdlets exported from Chocolatey.PowerShell.dll
2026-07-26 01:40:29,151 3196 [DEBUG] - Get-EnvironmentVariable
2026-07-26 01:40:29,151 3196 [DEBUG] - Get-EnvironmentVariableNames
2026-07-26 01:40:29,168 3196 [DEBUG] - Install-ChocolateyPath
2026-07-26 01:40:29,184 3196 [DEBUG] - Set-EnvironmentVariable
2026-07-26 01:40:29,184 3196 [DEBUG] - Test-ProcessAdminRights
2026-07-26 01:40:29,198 3196 [DEBUG] - Uninstall-ChocolateyPath
2026-07-26 01:40:29,198 3196 [DEBUG] - Update-SessionEnvironment
2026-07-26 01:40:29,228 3196 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2026-07-26 01:40:29,245 3196 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2026-07-26 01:40:29,261 3196 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyConfigValue'.
2026-07-26 01:40:29,261 3196 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'.
2026-07-26 01:40:29,275 3196 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2026-07-26 01:40:29,294 3196 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2026-07-26 01:40:29,294 3196 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2026-07-26 01:40:29,306 3196 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2026-07-26 01:40:29,306 3196 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2026-07-26 01:40:29,339 3196 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2026-07-26 01:40:29,339 3196 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2026-07-26 01:40:29,356 3196 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2026-07-26 01:40:29,356 3196 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2026-07-26 01:40:29,372 3196 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2026-07-26 01:40:29,385 3196 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2026-07-26 01:40:29,385 3196 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2026-07-26 01:40:29,401 3196 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2026-07-26 01:40:29,401 3196 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2026-07-26 01:40:29,418 3196 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2026-07-26 01:40:29,418 3196 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2026-07-26 01:40:29,431 3196 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2026-07-26 01:40:29,431 3196 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2026-07-26 01:40:29,450 3196 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2026-07-26 01:40:29,465 3196 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2026-07-26 01:40:29,478 3196 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2026-07-26 01:40:29,478 3196 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2026-07-26 01:40:29,499 3196 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2026-07-26 01:40:29,510 3196 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2026-07-26 01:40:29,510 3196 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2026-07-26 01:40:29,542 3196 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2026-07-26 01:40:29,542 3196 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2026-07-26 01:40:29,557 3196 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2026-07-26 01:40:29,557 3196 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2026-07-26 01:40:29,575 3196 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2026-07-26 01:40:29,588 3196 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2026-07-26 01:40:29,588 3196 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2026-07-26 01:40:29,604 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Get-EnvironmentVariable'.
2026-07-26 01:40:29,618 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Get-EnvironmentVariableNames'.
2026-07-26 01:40:29,618 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyPath'.
2026-07-26 01:40:29,635 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Set-EnvironmentVariable'.
2026-07-26 01:40:29,635 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Test-ProcessAdminRights'.
2026-07-26 01:40:29,651 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Uninstall-ChocolateyPath'.
2026-07-26 01:40:29,651 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Update-SessionEnvironment'.
2026-07-26 01:40:29,666 3196 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2026-07-26 01:40:29,681 3196 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2026-07-26 01:40:29,681 3196 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2026-07-26 01:40:29,697 3196 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2026-07-26 01:40:29,697 3196 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2026-07-26 01:40:29,713 3196 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2026-07-26 01:40:29,713 3196 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2026-07-26 01:40:29,728 3196 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2026-07-26 01:40:29,728 3196 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2026-07-26 01:40:29,792 3196 [DEBUG] - Loading community extensions
2026-07-26 01:40:29,917 3196 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
2026-07-26 01:40:29,934 3196 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
2026-07-26 01:40:30,291 3196 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2026-07-26 01:40:30,291 3196 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2026-07-26 01:40:30,311 3196 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2026-07-26 01:40:30,322 3196 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2026-07-26 01:40:30,447 3196 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2026-07-26 01:40:30,465 3196 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2026-07-26 01:40:30,465 3196 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyConfigValue'.
2026-07-26 01:40:30,478 3196 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'.
2026-07-26 01:40:30,478 3196 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2026-07-26 01:40:30,495 3196 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2026-07-26 01:40:30,495 3196 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2026-07-26 01:40:30,510 3196 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2026-07-26 01:40:30,510 3196 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2026-07-26 01:40:30,526 3196 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2026-07-26 01:40:30,526 3196 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2026-07-26 01:40:30,541 3196 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2026-07-26 01:40:30,541 3196 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2026-07-26 01:40:30,557 3196 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2026-07-26 01:40:30,575 3196 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2026-07-26 01:40:30,587 3196 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2026-07-26 01:40:30,587 3196 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2026-07-26 01:40:30,603 3196 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2026-07-26 01:40:30,603 3196 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2026-07-26 01:40:30,603 3196 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2026-07-26 01:40:30,620 3196 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2026-07-26 01:40:30,620 3196 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2026-07-26 01:40:30,635 3196 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2026-07-26 01:40:30,635 3196 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2026-07-26 01:40:30,651 3196 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2026-07-26 01:40:30,667 3196 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2026-07-26 01:40:30,667 3196 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2026-07-26 01:40:30,683 3196 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2026-07-26 01:40:30,683 3196 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2026-07-26 01:40:30,698 3196 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2026-07-26 01:40:30,698 3196 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2026-07-26 01:40:30,714 3196 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2026-07-26 01:40:30,714 3196 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2026-07-26 01:40:30,730 3196 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2026-07-26 01:40:30,746 3196 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2026-07-26 01:40:30,764 3196 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2026-07-26 01:40:30,775 3196 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2026-07-26 01:40:30,775 3196 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2026-07-26 01:40:30,798 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Get-EnvironmentVariable'.
2026-07-26 01:40:30,807 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Get-EnvironmentVariableNames'.
2026-07-26 01:40:30,822 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyPath'.
2026-07-26 01:40:30,822 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Set-EnvironmentVariable'.
2026-07-26 01:40:30,839 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Test-ProcessAdminRights'.
2026-07-26 01:40:30,839 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Uninstall-ChocolateyPath'.
2026-07-26 01:40:30,855 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Update-SessionEnvironment'.
2026-07-26 01:40:30,871 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Get-EnvironmentVariable'.
2026-07-26 01:40:30,871 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Get-EnvironmentVariableNames'.
2026-07-26 01:40:30,885 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyPath'.
2026-07-26 01:40:30,885 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Set-EnvironmentVariable'.
2026-07-26 01:40:30,901 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Test-ProcessAdminRights'.
2026-07-26 01:40:30,901 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Uninstall-ChocolateyPath'.
2026-07-26 01:40:30,921 3196 [INFO ] - VERBOSE: Exporting cmdlet 'Update-SessionEnvironment'.
2026-07-26 01:40:30,931 3196 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2026-07-26 01:40:30,931 3196 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2026-07-26 01:40:30,947 3196 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2026-07-26 01:40:30,966 3196 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2026-07-26 01:40:30,966 3196 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2026-07-26 01:40:30,979 3196 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2026-07-26 01:40:30,979 3196 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2026-07-26 01:40:30,994 3196 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2026-07-26 01:40:30,994 3196 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2026-07-26 01:40:31,009 3196 [INFO ] - VERBOSE: Importing cmdlet 'Get-EnvironmentVariable'.
2026-07-26 01:40:31,009 3196 [INFO ] - VERBOSE: Importing cmdlet 'Get-EnvironmentVariableNames'.
2026-07-26 01:40:31,026 3196 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyPath'.
2026-07-26 01:40:31,041 3196 [INFO ] - VERBOSE: Importing cmdlet 'Set-EnvironmentVariable'.
2026-07-26 01:40:31,041 3196 [INFO ] - VERBOSE: Importing cmdlet 'Test-ProcessAdminRights'.
2026-07-26 01:40:31,059 3196 [INFO ] - VERBOSE: Importing cmdlet 'Uninstall-ChocolateyPath'.
2026-07-26 01:40:31,070 3196 [INFO ] - VERBOSE: Importing cmdlet 'Update-SessionEnvironment'.
2026-07-26 01:40:31,070 3196 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2026-07-26 01:40:31,070 3196 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2026-07-26 01:40:31,089 3196 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyConfigValue'.
2026-07-26 01:40:31,105 3196 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyPath'.
2026-07-26 01:40:31,120 3196 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2026-07-26 01:40:31,136 3196 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2026-07-26 01:40:31,136 3196 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2026-07-26 01:40:31,150 3196 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2026-07-26 01:40:31,150 3196 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2026-07-26 01:40:31,150 3196 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2026-07-26 01:40:31,167 3196 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2026-07-26 01:40:31,167 3196 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2026-07-26 01:40:31,181 3196 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2026-07-26 01:40:31,181 3196 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2026-07-26 01:40:31,198 3196 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2026-07-26 01:40:31,198 3196 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2026-07-26 01:40:31,213 3196 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2026-07-26 01:40:31,213 3196 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2026-07-26 01:40:31,244 3196 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2026-07-26 01:40:31,244 3196 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2026-07-26 01:40:31,261 3196 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2026-07-26 01:40:31,261 3196 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2026-07-26 01:40:31,261 3196 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2026-07-26 01:40:31,278 3196 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2026-07-26 01:40:31,278 3196 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2026-07-26 01:40:31,291 3196 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2026-07-26 01:40:31,291 3196 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2026-07-26 01:40:31,311 3196 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2026-07-26 01:40:31,311 3196 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2026-07-26 01:40:31,321 3196 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2026-07-26 01:40:31,321 3196 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2026-07-26 01:40:31,339 3196 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2026-07-26 01:40:31,339 3196 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2026-07-26 01:40:31,354 3196 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2026-07-26 01:40:31,354 3196 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2026-07-26 01:40:31,371 3196 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2026-07-26 01:40:31,387 3196 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2026-07-26 01:40:31,399 3196 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2026-07-26 01:40:31,399 3196 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2026-07-26 01:40:31,418 3196 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2026-07-26 01:40:31,433 3196 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2026-07-26 01:40:31,433 3196 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2026-07-26 01:40:31,448 3196 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2026-07-26 01:40:31,465 3196 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2026-07-26 01:40:31,465 3196 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2026-07-26 01:40:31,526 3196 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2026-07-26 01:40:31,526 3196 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2026-07-26 01:40:31,977 3196 [DEBUG] - ---------------------------Script Execution---------------------------
2026-07-26 01:40:32,087 3196 [DEBUG] - Running 'ChocolateyScriptRunner' for openssh v8.0.0.1 with packageScript 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\openssh', installArguments: '', packageParameters: '', preRunHookScripts: '', postRunHookScripts: '',
2026-07-26 01:40:32,262 3196 [DEBUG] - Running package script 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1'
2026-07-26 01:40:33,603 3196 [INFO ] - Running on: Windows Server 2019 Datacenter, (ServerDatacenter)
2026-07-26 01:40:33,931 3196 [DEBUG] - No Package Parameters Passed in
2026-07-26 01:40:39,274 3196 [WARN ] - WARNING: Removing all config and server keys as requested by /DeleteConfigAndServerKeys
2026-07-26 01:40:41,432 3196 [INFO ] -
2026-07-26 01:40:41,432 3196 [INFO ] - No rules match the specified criteria.
2026-07-26 01:40:41,445 3196 [INFO ] -
2026-07-26 01:40:41,790 3196 [DEBUG] - The last executable that ran had an exit code of '1'.
2026-07-26 01:40:41,821 3196 [DEBUG] - ----------------------------------------------------------------------
2026-07-26 01:40:41,854 3196 [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'.
2026-07-26 01:40:41,914 3196 [INFO ] - Skipping auto uninstaller - No registry snapshot.
2026-07-26 01:40:41,930 3196 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2026-07-26 01:40:42,119 3196 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2026-07-26 01:40:42,149 3196 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bkp\openssh".
2026-07-26 01:40:42,181 3196 [DEBUG] - Ensuring removal of installation files.
2026-07-26 01:40:42,227 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\openssh.nupkg'
with checksum '9136665A6AD8B3B62A3A1FFBED8A7FEA'
2026-07-26 01:40:42,227 3196 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\openssh.nupkg".
2026-07-26 01:40:42,244 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\openssh.nuspec'
with checksum '9D949B36AD39A494935CEDF6F51DAC23'
2026-07-26 01:40:42,244 3196 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\openssh.nuspec".
2026-07-26 01:40:42,259 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\7z.dll'
with checksum '9943B3BCB2CA91CCBEF2D96682CECB79'
2026-07-26 01:40:42,277 3196 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\7z.dll".
2026-07-26 01:40:42,277 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe'
with checksum '506E5B371882A5A62B669F04CE04DBA8'
2026-07-26 01:40:42,291 3196 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe".
2026-07-26 01:40:42,291 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\barebonesinstaller.ps1'
with checksum '4EF4A2A2F7DF1E58FEFC7B2796C3D30B'
2026-07-26 01:40:42,291 3196 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\barebonesinstaller.ps1".
2026-07-26 01:40:42,306 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1'
with checksum 'D5C312730F2371D6B54370DEFA69B586'
2026-07-26 01:40:42,306 3196 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1".
2026-07-26 01:40:42,306 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1'
with checksum '52ED6CE8FD63609AF9144F51A2B4841B'
2026-07-26 01:40:42,322 3196 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1".
2026-07-26 01:40:42,322 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\Get-NetStat.ps1'
with checksum '5639E1A979924BAB1F81DEDC52C89003'
2026-07-26 01:40:42,336 3196 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\Get-NetStat.ps1".
2026-07-26 01:40:42,336 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\LICENSE.txt'
with checksum '1FA7983BE13136F10B6E346AC0F8ACE3'
2026-07-26 01:40:42,336 3196 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\LICENSE.txt".
2026-07-26 01:40:42,368 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win32.zip'
with checksum '236A84900601B75E3986ED28C1FBBAFA'
2026-07-26 01:40:42,383 3196 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win32.zip".
2026-07-26 01:40:42,402 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip'
with checksum '8012EF304C0C0CF93AAFD0A6E7A7E14C'
2026-07-26 01:40:42,415 3196 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip".
2026-07-26 01:40:42,415 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\Set-SSHDefaultShell.ps1'
with checksum '1A26224C48488038D136D9F06A7B9E73'
2026-07-26 01:40:42,415 3196 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\Set-SSHDefaultShell.ps1".
2026-07-26 01:40:42,430 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\SetSpecialPrivileges.ps1'
with checksum '543B78A2B38141A98F2AF8BD3F10893B'
2026-07-26 01:40:42,430 3196 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\SetSpecialPrivileges.ps1".
2026-07-26 01:40:42,445 3196 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\VERIFICATION.txt'
with checksum 'A3C11FB5F52B25E893CFB4FA8539F2E4'
2026-07-26 01:40:42,445 3196 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\tools\VERIFICATION.txt".
2026-07-26 01:40:42,445 3196 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib\openssh".
2026-07-26 01:40:42,463 3196 [INFO ] - openssh has been successfully uninstalled.
2026-07-26 01:40:42,463 3196 [DEBUG] - Removing nupkg if it still exists.
2026-07-26 01:40:42,477 3196 [DEBUG] - Ensuring removal of installation files.
2026-07-26 01:40:42,510 3196 [WARN ] - Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
2026-07-26 01:40:42,525 3196 [DEBUG] - The following values have been added/changed (may contain sensitive data):
2026-07-26 01:40:42,525 3196 [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)
2026-07-26 01:40:42,525 3196 [DEBUG] - The following values have been removed:
2026-07-26 01:40:42,540 3196 [DEBUG] - * TERM='' (Machine)
2026-07-26 01:40:42,587 3196 [WARN ] -
Chocolatey uninstalled 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2026-07-26 01:40:42,603 3196 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2026-07-26 01:40:42,618 3196 [DEBUG] - Exiting with 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment