Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
openssh v7.9.0.1 - Passed - Package Tests Results

openssh v7.9.0.1 - Passed - Package Test Results

  • https://chocolatey.org/packages/openssh/7.9.0.1
  • Tested 19 May 2019 07:09:52 +00:00
  • Tested against win2012r2x64 (Windows Server 2012 R2 x64)
  • Tested with the latest version of choco, possibly a beta version.
  • Tested with chocolatey-package-verifier service v0.4.0-38-g3187e94
  • 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="125A315F0C279B84C8F0477C6F692BDB" />
<file path="C:\ProgramData\chocolatey\lib\openssh\openssh.nuspec" checksum="A27A18E6A2AA898B5DD0DEB4CD0CE81B" />
<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="B9167A47593AB102F4BF6D4D1C1317CF" />
<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="8FD343BE968602FED13EBEF309170866" />
<file path="C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip" checksum="543983308CB8DC13B24F89322AC3DE78" />
<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>
2019-05-19 07:08:08,142 2008 [DEBUG] - XmlConfiguration is now operational
2019-05-19 07:08:08,377 2008 [INFO ] - ============================================================
2019-05-19 07:08:09,190 2008 [INFO ] - Chocolatey v0.10.14-beta-7-gb30427d
2019-05-19 07:08:09,221 2008 [DEBUG] - Chocolatey is running on Windows v 6.3.9600.0
2019-05-19 07:08:09,236 2008 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2019-05-19 07:08:09,252 2008 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2019-05-19 07:08:09,268 2008 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install openssh --version 7.9.0.1 -fdvy --execution-timeout=2700 --allow-downgrade
2019-05-19 07:08:09,283 2008 [DEBUG] - Received arguments: install openssh --version 7.9.0.1 -fdvy --execution-timeout=2700 --allow-downgrade
2019-05-19 07:08:09,471 2008 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2019-05-19 07:08:09,487 2008 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2019-05-19 07:08:09,519 2008 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2019-05-19 07:08:09,705 2008 [DEBUG] - Performing validation checks.
2019-05-19 07:08:09,738 2008 [DEBUG] - Global Configuration Validation Checks:
2019-05-19 07:08:09,738 2008 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked
2019-05-19 07:08:09,752 2008 [DEBUG] - System State Validation Checks:
2019-05-19 07:08:09,768 2008 [DEBUG] - Reboot Requirement Checks:
2019-05-19 07:08:09,768 2008 [DEBUG] - - Pending Computer Rename = Checked
2019-05-19 07:08:09,783 2008 [DEBUG] - - Pending Component Based Servicing = Checked
2019-05-19 07:08:09,783 2008 [DEBUG] - - Pending Windows Auto Update = Checked
2019-05-19 07:08:09,799 2008 [DEBUG] - - Pending File Rename Operations = Checked
2019-05-19 07:08:09,799 2008 [DEBUG] - - Pending Windows Package Installer = Checked
2019-05-19 07:08:09,814 2008 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked
2019-05-19 07:08:09,830 2008 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s).
2019-05-19 07:08:09,846 2008 [DEBUG] - The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2019-05-19 07:08:09,861 2008 [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.
2019-05-19 07:08:09,924 2008 [DEBUG] - Configuration: CommandName='install'|
CacheLocation='C:\Users\Administrator\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://chocolatey.org/api/v2/'|SourceType='normal'|
Debug='True'|Verbose='True'|Trace='False'|Force='True'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='False'|AcceptLicense='True'|
AllowUnofficialBuild='False'|Input='openssh'|Version='7.9.0.1'|
AllVersions='False'|SkipPackageInstallProvider='False'|
PackageNames='openssh'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='True'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='6.3.9600.0'|
Information.PlatformName='Windows Server 2012 R2'|
Information.ChocolateyVersion='0.10.14.0'|
Information.ChocolateyProductVersion='0.10.14-beta-7-gb30427d'|
Information.FullName='choco, Version=0.10.14.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='vagrant'|
Information.UserDomainName='WIN-E5K8TM30719'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
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.ScriptsCheckLastExitCode='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.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
SourceCommand.VisibleToAdminsOnly='False'|
FeatureCommand.Command='unknown'|ConfigCommand.Command='unknown'|
ApiKeyCommand.Remove='False'|PinCommand.Command='unknown'|
OutdatedCommand.IgnorePinned='False'|Proxy.BypassOnLocal='True'|
2019-05-19 07:08:09,924 2008 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
2019-05-19 07:08:09,956 2008 [INFO ] - Installing the following packages:
2019-05-19 07:08:09,956 2008 [INFO ] - openssh
2019-05-19 07:08:09,971 2008 [INFO ] - By installing you accept licenses for the packages.
2019-05-19 07:08:09,986 2008 [DEBUG] - Current environment values (may contain sensitive data):
2019-05-19 07:08:09,986 2008 [DEBUG] - * 'TMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
2019-05-19 07:08:10,002 2008 [DEBUG] - * 'TEMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
2019-05-19 07:08:10,002 2008 [DEBUG] - * 'ChocolateyLastPathUpdate'='132026419368052815' ('User')
2019-05-19 07:08:10,002 2008 [DEBUG] - * 'FP_NO_HOST_CHECK'='NO' ('Machine')
2019-05-19 07:08:10,002 2008 [DEBUG] - * 'USERNAME'='SYSTEM' ('Machine')
2019-05-19 07:08:10,017 2008 [DEBUG] - * 'Path'='C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\ProgramData\chocolatey\bin;' ('Machine')
2019-05-19 07:08:10,017 2008 [DEBUG] - * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine')
2019-05-19 07:08:10,017 2008 [DEBUG] - * 'TMP'='C:\Windows\TEMP' ('Machine')
2019-05-19 07:08:10,017 2008 [DEBUG] - * 'OS'='Windows_NT' ('Machine')
2019-05-19 07:08:10,033 2008 [DEBUG] - * 'windir'='C:\Windows' ('Machine')
2019-05-19 07:08:10,033 2008 [DEBUG] - * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine')
2019-05-19 07:08:10,033 2008 [DEBUG] - * 'TEMP'='C:\Windows\TEMP' ('Machine')
2019-05-19 07:08:10,033 2008 [DEBUG] - * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine')
2019-05-19 07:08:10,033 2008 [DEBUG] - * 'PSModulePath'='C:\Windows\system32\WindowsPowerShell\v1.0\Modules\' ('Machine')
2019-05-19 07:08:10,049 2008 [DEBUG] - * 'NUMBER_OF_PROCESSORS'='4' ('Machine')
2019-05-19 07:08:10,049 2008 [DEBUG] - * 'PROCESSOR_LEVEL'='6' ('Machine')
2019-05-19 07:08:10,049 2008 [DEBUG] - * 'PROCESSOR_IDENTIFIER'='Intel64 Family 6 Model 45 Stepping 7, GenuineIntel' ('Machine')
2019-05-19 07:08:10,049 2008 [DEBUG] - * 'PROCESSOR_REVISION'='2d07' ('Machine')
2019-05-19 07:08:10,064 2008 [DEBUG] - * 'HOME'='C:\Users\Administrator' ('Machine')
2019-05-19 07:08:10,064 2008 [DEBUG] - * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine')
2019-05-19 07:08:20,596 2008 [INFO ] - [NuGet] Installing 'openssh 7.9.0.1'.
2019-05-19 07:08:20,627 2008 [DEBUG] - [NuGet] Added file '7z.dll' to folder 'openssh\tools'.
2019-05-19 07:08:20,642 2008 [DEBUG] - [NuGet] Added file '7z.exe' to folder 'openssh\tools'.
2019-05-19 07:08:20,642 2008 [DEBUG] - [NuGet] Added file '7z.exe.ignore' to folder 'openssh\tools'.
2019-05-19 07:08:20,642 2008 [DEBUG] - [NuGet] Added file 'barebonesinstaller.ps1' to folder 'openssh\tools'.
2019-05-19 07:08:20,658 2008 [DEBUG] - [NuGet] Added file 'chocolateyinstall.ps1' to folder 'openssh\tools'.
2019-05-19 07:08:20,658 2008 [DEBUG] - [NuGet] Added file 'chocolateyuninstall.ps1' to folder 'openssh\tools'.
2019-05-19 07:08:20,674 2008 [DEBUG] - [NuGet] Added file 'Get-NetStat.ps1' to folder 'openssh\tools'.
2019-05-19 07:08:20,674 2008 [DEBUG] - [NuGet] Added file 'LICENSE.txt' to folder 'openssh\tools'.
2019-05-19 07:08:20,674 2008 [DEBUG] - [NuGet] Added file 'OpenSSH-Win32.zip' to folder 'openssh\tools'.
2019-05-19 07:08:20,689 2008 [DEBUG] - [NuGet] Added file 'OpenSSH-Win64.zip' to folder 'openssh\tools'.
2019-05-19 07:08:20,705 2008 [DEBUG] - [NuGet] Added file 'Set-SSHDefaultShell.ps1' to folder 'openssh\tools'.
2019-05-19 07:08:20,705 2008 [DEBUG] - [NuGet] Added file 'SetSpecialPrivileges.ps1' to folder 'openssh\tools'.
2019-05-19 07:08:20,705 2008 [DEBUG] - [NuGet] Added file 'VERIFICATION.txt' to folder 'openssh\tools'.
2019-05-19 07:08:20,753 2008 [DEBUG] - [NuGet] Added file 'openssh.nupkg' to folder 'openssh'.
2019-05-19 07:08:21,146 2008 [DEBUG] - [NuGet] Added file 'openssh.nuspec' to folder 'openssh'.
2019-05-19 07:08:21,158 2008 [INFO ] - [NuGet] Successfully installed 'openssh 7.9.0.1'.
2019-05-19 07:08:21,158 2008 [INFO ] -
openssh v7.9.0.1 (forced) [Approved]
2019-05-19 07:08:21,221 2008 [INFO ] - openssh package files install completed. Performing other installation steps.
2019-05-19 07:08:21,393 2008 [DEBUG] - Setting installer args for openssh
2019-05-19 07:08:21,408 2008 [DEBUG] - Setting package parameters for openssh
2019-05-19 07:08:21,408 2008 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1':
2019-05-19 07:08:21,455 2008 [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 = 'F60242D89DAB3AFE9BA4DB6657E767EF78A33D5B'
checksumType = 'SHA1'
checksum64 = '8AA6455C37C6F4E6DA5F6D33A3C6DBBC2096E860'
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."
2019-05-19 07:08:22,127 2008 [DEBUG] - Calling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters ''']
2019-05-19 07:08:22,142 2008 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2019-05-19 07:08:24,533 2008 [DEBUG] - Host version is 4.0, PowerShell Version is '4.0' and CLR Version is '4.0.30319.33440'.
2019-05-19 07:08:24,924 2008 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2019-05-19 07:08:24,939 2008 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2019-05-19 07:08:24,939 2008 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2019-05-19 07:08:24,939 2008 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2019-05-19 07:08:24,955 2008 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2019-05-19 07:08:24,955 2008 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2019-05-19 07:08:24,955 2008 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2019-05-19 07:08:24,955 2008 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2019-05-19 07:08:24,971 2008 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2019-05-19 07:08:24,971 2008 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2019-05-19 07:08:24,971 2008 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2019-05-19 07:08:24,986 2008 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2019-05-19 07:08:24,986 2008 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2019-05-19 07:08:24,986 2008 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2019-05-19 07:08:25,002 2008 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2019-05-19 07:08:25,002 2008 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2019-05-19 07:08:25,002 2008 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2019-05-19 07:08:25,002 2008 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2019-05-19 07:08:25,017 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2019-05-19 07:08:25,017 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2019-05-19 07:08:25,017 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2019-05-19 07:08:25,033 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2019-05-19 07:08:25,033 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2019-05-19 07:08:25,033 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2019-05-19 07:08:25,049 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2019-05-19 07:08:25,049 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2019-05-19 07:08:25,049 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2019-05-19 07:08:25,064 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2019-05-19 07:08:25,064 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2019-05-19 07:08:25,064 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2019-05-19 07:08:25,064 2008 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2019-05-19 07:08:25,080 2008 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2019-05-19 07:08:25,080 2008 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2019-05-19 07:08:25,080 2008 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2019-05-19 07:08:25,096 2008 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2019-05-19 07:08:25,096 2008 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2019-05-19 07:08:25,111 2008 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-05-19 07:08:25,111 2008 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2019-05-19 07:08:25,111 2008 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2019-05-19 07:08:25,127 2008 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2019-05-19 07:08:25,127 2008 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2019-05-19 07:08:25,143 2008 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2019-05-19 07:08:25,143 2008 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2019-05-19 07:08:25,143 2008 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2019-05-19 07:08:25,158 2008 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2019-05-19 07:08:25,158 2008 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2019-05-19 07:08:25,158 2008 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2019-05-19 07:08:25,174 2008 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2019-05-19 07:08:25,174 2008 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2019-05-19 07:08:25,174 2008 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2019-05-19 07:08:25,174 2008 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2019-05-19 07:08:25,189 2008 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2019-05-19 07:08:25,189 2008 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2019-05-19 07:08:25,221 2008 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2019-05-19 07:08:25,236 2008 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2019-05-19 07:08:25,236 2008 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2019-05-19 07:08:25,236 2008 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2019-05-19 07:08:25,252 2008 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2019-05-19 07:08:25,252 2008 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2019-05-19 07:08:25,252 2008 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2019-05-19 07:08:25,267 2008 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2019-05-19 07:08:25,267 2008 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2019-05-19 07:08:25,267 2008 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2019-05-19 07:08:25,267 2008 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2019-05-19 07:08:25,283 2008 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2019-05-19 07:08:25,283 2008 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2019-05-19 07:08:25,283 2008 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2019-05-19 07:08:25,299 2008 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2019-05-19 07:08:25,299 2008 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2019-05-19 07:08:25,299 2008 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2019-05-19 07:08:25,299 2008 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2019-05-19 07:08:25,314 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2019-05-19 07:08:25,314 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2019-05-19 07:08:25,314 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2019-05-19 07:08:25,330 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2019-05-19 07:08:25,330 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2019-05-19 07:08:25,330 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2019-05-19 07:08:25,330 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2019-05-19 07:08:25,346 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2019-05-19 07:08:25,346 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2019-05-19 07:08:25,346 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2019-05-19 07:08:25,361 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2019-05-19 07:08:25,361 2008 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2019-05-19 07:08:25,361 2008 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2019-05-19 07:08:25,377 2008 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2019-05-19 07:08:25,377 2008 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2019-05-19 07:08:25,377 2008 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2019-05-19 07:08:25,377 2008 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2019-05-19 07:08:25,392 2008 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2019-05-19 07:08:25,392 2008 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-05-19 07:08:25,392 2008 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2019-05-19 07:08:25,408 2008 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2019-05-19 07:08:25,408 2008 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2019-05-19 07:08:25,408 2008 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2019-05-19 07:08:25,408 2008 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2019-05-19 07:08:25,424 2008 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2019-05-19 07:08:25,424 2008 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2019-05-19 07:08:25,424 2008 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2019-05-19 07:08:25,439 2008 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2019-05-19 07:08:25,439 2008 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2019-05-19 07:08:25,439 2008 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2019-05-19 07:08:25,455 2008 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2019-05-19 07:08:25,455 2008 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2019-05-19 07:08:25,455 2008 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2019-05-19 07:08:25,455 2008 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2019-05-19 07:08:25,471 2008 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2019-05-19 07:08:25,471 2008 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2019-05-19 07:08:25,471 2008 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2019-05-19 07:08:25,486 2008 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2019-05-19 07:08:25,486 2008 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2019-05-19 07:08:25,486 2008 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2019-05-19 07:08:25,502 2008 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2019-05-19 07:08:25,502 2008 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2019-05-19 07:08:25,502 2008 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2019-05-19 07:08:25,517 2008 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2019-05-19 07:08:25,517 2008 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2019-05-19 07:08:25,517 2008 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2019-05-19 07:08:25,517 2008 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2019-05-19 07:08:25,533 2008 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2019-05-19 07:08:25,533 2008 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2019-05-19 07:08:25,549 2008 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2019-05-19 07:08:25,549 2008 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2019-05-19 07:08:25,549 2008 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2019-05-19 07:08:25,549 2008 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2019-05-19 07:08:25,564 2008 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2019-05-19 07:08:25,564 2008 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2019-05-19 07:08:25,564 2008 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2019-05-19 07:08:25,580 2008 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2019-05-19 07:08:25,580 2008 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2019-05-19 07:08:25,580 2008 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2019-05-19 07:08:25,596 2008 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2019-05-19 07:08:25,596 2008 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2019-05-19 07:08:25,596 2008 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2019-05-19 07:08:25,596 2008 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2019-05-19 07:08:25,611 2008 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2019-05-19 07:08:25,611 2008 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2019-05-19 07:08:25,611 2008 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2019-05-19 07:08:25,627 2008 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2019-05-19 07:08:25,627 2008 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2019-05-19 07:08:25,627 2008 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2019-05-19 07:08:25,627 2008 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2019-05-19 07:08:25,642 2008 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2019-05-19 07:08:25,642 2008 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-05-19 07:08:25,642 2008 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2019-05-19 07:08:25,658 2008 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2019-05-19 07:08:25,658 2008 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2019-05-19 07:08:25,658 2008 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2019-05-19 07:08:25,658 2008 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2019-05-19 07:08:25,674 2008 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2019-05-19 07:08:25,674 2008 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2019-05-19 07:08:25,674 2008 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2019-05-19 07:08:25,689 2008 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2019-05-19 07:08:25,689 2008 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2019-05-19 07:08:25,689 2008 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2019-05-19 07:08:25,705 2008 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2019-05-19 07:08:25,705 2008 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2019-05-19 07:08:25,705 2008 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2019-05-19 07:08:25,705 2008 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2019-05-19 07:08:25,721 2008 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2019-05-19 07:08:25,892 2008 [DEBUG] - Running 'ChocolateyScriptRunner' for openssh v7.9.0.1 with packageScript 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\openssh', installArguments: '', packageParameters: '',
2019-05-19 07:08:25,939 2008 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1'
2019-05-19 07:08:26,471 2008 [INFO ] - VERBOSE: Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' = root\cimv2,'className' = Win32_OperatingSystem'.
2019-05-19 07:08:26,642 2008 [INFO ] - VERBOSE: Operation 'Enumerate CimInstances' complete.
2019-05-19 07:08:26,658 2008 [INFO ] - Running on: Windows Server 2012 R2 Datacenter, (ServerDatacenter)
2019-05-19 07:08:26,674 2008 [INFO ] - Windows Version: 6.3.9600
2019-05-19 07:08:26,721 2008 [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
************************************************************************************
************************************************************************************
2019-05-19 07:08:26,736 2008 [DEBUG] - No Package Parameters Passed in
2019-05-19 07:08:26,925 2008 [DEBUG] - Running Get-ChocolateyUnzip -fileFullPath 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip' -destination 'C:\Users\Administrator\AppData\Local\Temp\chocolatey\OpenSSHTemp'
2019-05-19 07:08:26,925 2008 [DEBUG] - Running Get-ProcessorBits -compare '32'
2019-05-19 07:08:27,002 2008 [INFO ] - Extracting C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip to C:\Users\Administrator\AppData\Local\Temp\chocolatey\OpenSSHTemp...
2019-05-19 07:08:27,002 2008 [INFO ] -
2019-05-19 07:08:27,064 2008 [DEBUG] - 7zip found at 'C:\ProgramData\chocolatey\tools\7z.exe'
2019-05-19 07:08:27,111 2008 [DEBUG] - Executing command ['C:\ProgramData\chocolatey\tools\7z.exe' x -aoa -bd -bb1 -o"C:\Users\Administrator\AppData\Local\Temp\chocolatey\OpenSSHTemp" -y "C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip"]
2019-05-19 07:08:27,908 2008 [INFO ] - VERBOSE:
2019-05-19 07:08:27,924 2008 [INFO ] - VERBOSE: 7-Zip 18.06 (x86) : Copyright (c) 1999-2018 Igor Pavlov : 2018-12-30
2019-05-19 07:08:27,924 2008 [INFO ] - VERBOSE:
2019-05-19 07:08:27,939 2008 [INFO ] - VERBOSE: Scanning the drive for archives:
2019-05-19 07:08:27,939 2008 [INFO ] - VERBOSE: 1 file, 3347699 bytes (3270 KiB)
2019-05-19 07:08:27,939 2008 [INFO ] - VERBOSE:
2019-05-19 07:08:27,955 2008 [INFO ] - VERBOSE: Extracting archive: C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip
2019-05-19 07:08:27,955 2008 [INFO ] - VERBOSE: --
2019-05-19 07:08:27,955 2008 [INFO ] - VERBOSE: Path = C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip
2019-05-19 07:08:27,971 2008 [INFO ] - VERBOSE: Type = zip
2019-05-19 07:08:27,971 2008 [INFO ] - VERBOSE: Physical Size = 3347699
2019-05-19 07:08:27,971 2008 [INFO ] - VERBOSE:
2019-05-19 07:08:27,986 2008 [INFO ] - VERBOSE: - OpenSSH-Win64\FixHostFilePermissions.ps1
2019-05-19 07:08:28,018 2008 [INFO ] - VERBOSE: - OpenSSH-Win64\FixUserFilePermissions.ps1
2019-05-19 07:08:28,033 2008 [INFO ] - VERBOSE: - OpenSSH-Win64\install-sshd.ps1
2019-05-19 07:08:28,033 2008 [INFO ] - VERBOSE: - OpenSSH-Win64\libcrypto.dll
2019-05-19 07:08:28,033 2008 [INFO ] - VERBOSE: - OpenSSH-Win64\openssh-events.man
2019-05-19 07:08:28,049 2008 [INFO ] - VERBOSE: - OpenSSH-Win64\OpenSSHUtils.psd1
2019-05-19 07:08:28,049 2008 [INFO ] - VERBOSE: - OpenSSH-Win64\OpenSSHUtils.psm1
2019-05-19 07:08:28,049 2008 [INFO ] - VERBOSE: - OpenSSH-Win64\scp.exe
2019-05-19 07:08:28,064 2008 [INFO ] - VERBOSE: - OpenSSH-Win64\sftp.exe
2019-05-19 07:08:28,064 2008 [INFO ] - VERBOSE: - OpenSSH-Win64\sftp-server.exe
2019-05-19 07:08:28,064 2008 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh.exe
2019-05-19 07:08:28,080 2008 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-add.exe
2019-05-19 07:08:28,080 2008 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-agent.exe
2019-05-19 07:08:28,080 2008 [INFO ] - VERBOSE: - OpenSSH-Win64\sshd.exe
2019-05-19 07:08:28,096 2008 [INFO ] - VERBOSE: - OpenSSH-Win64\sshd_config_default
2019-05-19 07:08:28,096 2008 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-keygen.exe
2019-05-19 07:08:28,096 2008 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-keyscan.exe
2019-05-19 07:08:28,111 2008 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-shellhost.exe
2019-05-19 07:08:28,111 2008 [INFO ] - VERBOSE: - OpenSSH-Win64\uninstall-sshd.ps1
2019-05-19 07:08:28,111 2008 [INFO ] - VERBOSE: Everything is Ok
2019-05-19 07:08:28,127 2008 [INFO ] - VERBOSE:
2019-05-19 07:08:28,127 2008 [INFO ] - VERBOSE: Files: 19
2019-05-19 07:08:28,127 2008 [INFO ] - VERBOSE: Size: 7072999
2019-05-19 07:08:28,142 2008 [INFO ] - VERBOSE: Compressed: 3347699
2019-05-19 07:08:28,299 2008 [DEBUG] - $exitCode was passed null
2019-05-19 07:08:28,299 2008 [DEBUG] - Command ['C:\ProgramData\chocolatey\tools\7z.exe' x -aoa -bd -bb1 -o"C:\Users\Administrator\AppData\Local\Temp\chocolatey\OpenSSHTemp" -y "C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip"] exited with '0'.
2019-05-19 07:08:28,299 2008 [DEBUG] - 7z exit code: 0
2019-05-19 07:08:28,314 2008 [INFO ] - C:\Users\Administrator\AppData\Local\Temp\chocolatey\OpenSSHTemp
2019-05-19 07:08:31,002 2008 [INFO ] - Hashes for internal source match
2019-05-19 07:08:31,017 2008 [INFO ] - C:\Program Files\OpenSSH-Win64
2019-05-19 07:08:31,049 2008 [INFO ] - C:\Program Files\OpenSSH-Win64\FixHostFilePermissions.ps1
2019-05-19 07:08:31,049 2008 [INFO ] - C:\Program Files\OpenSSH-Win64\FixUserFilePermissions.ps1
2019-05-19 07:08:31,064 2008 [INFO ] - C:\Program Files\OpenSSH-Win64\install-sshd.ps1
2019-05-19 07:08:31,064 2008 [INFO ] - C:\Program Files\OpenSSH-Win64\libcrypto.dll
2019-05-19 07:08:31,080 2008 [INFO ] - C:\Program Files\OpenSSH-Win64\openssh-events.man
2019-05-19 07:08:31,080 2008 [INFO ] - C:\Program Files\OpenSSH-Win64\OpenSSHUtils.psd1
2019-05-19 07:08:31,080 2008 [INFO ] - C:\Program Files\OpenSSH-Win64\OpenSSHUtils.psm1
2019-05-19 07:08:31,096 2008 [INFO ] - C:\Program Files\OpenSSH-Win64\scp.exe
2019-05-19 07:08:31,096 2008 [INFO ] - C:\Program Files\OpenSSH-Win64\sftp-server.exe
2019-05-19 07:08:31,111 2008 [INFO ] - C:\Program Files\OpenSSH-Win64\sftp.exe
2019-05-19 07:08:31,111 2008 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-add.exe
2019-05-19 07:08:31,127 2008 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-agent.exe
2019-05-19 07:08:31,127 2008 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-keygen.exe
2019-05-19 07:08:31,142 2008 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-keyscan.exe
2019-05-19 07:08:31,142 2008 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-shellhost.exe
2019-05-19 07:08:31,158 2008 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh.exe
2019-05-19 07:08:31,174 2008 [INFO ] - C:\Program Files\OpenSSH-Win64\sshd.exe
2019-05-19 07:08:31,174 2008 [INFO ] - C:\Program Files\OpenSSH-Win64\sshd_config_default
2019-05-19 07:08:31,174 2008 [INFO ] - C:\Program Files\OpenSSH-Win64\uninstall-sshd.ps1
2019-05-19 07:08:31,189 2008 [INFO ] - C:\Program Files\OpenSSH-Win64\Set-SSHDefaultShell.ps1
2019-05-19 07:08:31,221 2008 [DEBUG] - Running Install-ChocolateyPath -pathToInstall 'C:\Program Files\OpenSSH-Win64' -pathType 'Machine'
2019-05-19 07:08:31,252 2008 [DEBUG] - Running Update-SessionEnvironment
2019-05-19 07:08:31,252 2008 [INFO ] - VERBOSE: Refreshing environment variables from the registry.
2019-05-19 07:08:31,783 2008 [INFO ] - PATH environment variable does not have C:\Program Files\OpenSSH-Win64 in it. Adding...
2019-05-19 07:08:31,783 2008 [INFO ] -
2019-05-19 07:08:31,783 2008 [INFO ] - VERBOSE: Choosing not to expand environment names
2019-05-19 07:08:31,924 2008 [DEBUG] - Test-ProcessAdminRights: returning True
2019-05-19 07:08:32,017 2008 [DEBUG] - Running Set-EnvironmentVariable -Name 'Path' -Value '%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSH-Win64;' -Scope 'Machine'
2019-05-19 07:08:32,096 2008 [DEBUG] - Registry type for Path is/will be ExpandString
2019-05-19 07:08:32,158 2008 [DEBUG] -
using System;
using System.Runtime.InteropServices;
namespace Win32
{
public class NativeMethods
{
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern IntPtr SendMessageTimeout(
IntPtr hWnd, uint Msg, UIntPtr wParam, string lParam,
uint fuFlags, uint uTimeout, out UIntPtr lpdwResult);
}
}
2019-05-19 07:09:02,580 2008 [DEBUG] - Running Update-SessionEnvironment
2019-05-19 07:09:02,580 2008 [INFO ] - VERBOSE: Refreshing environment variables from the registry.
2019-05-19 07:09:03,064 2008 [INFO ] - Updating machine environment variable TERM from "" to ""
2019-05-19 07:09:03,064 2008 [INFO ] -
2019-05-19 07:09:03,784 2008 [INFO ] -
NEW VERSIONS OF SSH EXES:
2019-05-19 07:09:03,971 2008 [INFO ] -
2019-05-19 07:09:03,986 2008 [INFO ] -
2019-05-19 07:09:04,003 2008 [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.
2019-05-19 07:09:04,158 2008 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '''] exited with '0'.
2019-05-19 07:09:04,175 2008 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2019-05-19 07:09:04,221 2008 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2019-05-19 07:09:04,330 2008 [WARN ] - Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
2019-05-19 07:09:04,346 2008 [DEBUG] - The following values have been added/changed (may contain sensitive data):
2019-05-19 07:09:04,346 2008 [DEBUG] - * ChocolateyLastPathUpdate='132027233274554202' (User)
2019-05-19 07:09:04,346 2008 [DEBUG] - * Path='C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSH-Win64;' (Machine)
2019-05-19 07:09:04,361 2008 [DEBUG] - * TERM='' (Machine)
2019-05-19 07:09:04,767 2008 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\openssh'
2019-05-19 07:09:04,846 2008 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\openssh.nupkg'
with checksum '125A315F0C279B84C8F0477C6F692BDB'
2019-05-19 07:09:04,846 2008 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\openssh.nuspec'
with checksum 'A27A18E6A2AA898B5DD0DEB4CD0CE81B'
2019-05-19 07:09:04,877 2008 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\7z.dll'
with checksum '9943B3BCB2CA91CCBEF2D96682CECB79'
2019-05-19 07:09:04,908 2008 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe'
with checksum '506E5B371882A5A62B669F04CE04DBA8'
2019-05-19 07:09:04,908 2008 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe.ignore'
with checksum 'D41D8CD98F00B204E9800998ECF8427E'
2019-05-19 07:09:04,924 2008 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\barebonesinstaller.ps1'
with checksum '4EF4A2A2F7DF1E58FEFC7B2796C3D30B'
2019-05-19 07:09:04,924 2008 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1'
with checksum 'B9167A47593AB102F4BF6D4D1C1317CF'
2019-05-19 07:09:04,924 2008 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1'
with checksum '52ED6CE8FD63609AF9144F51A2B4841B'
2019-05-19 07:09:04,939 2008 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\Get-NetStat.ps1'
with checksum '5639E1A979924BAB1F81DEDC52C89003'
2019-05-19 07:09:04,939 2008 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\LICENSE.txt'
with checksum '1FA7983BE13136F10B6E346AC0F8ACE3'
2019-05-19 07:09:04,971 2008 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win32.zip'
with checksum '8FD343BE968602FED13EBEF309170866'
2019-05-19 07:09:05,002 2008 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip'
with checksum '543983308CB8DC13B24F89322AC3DE78'
2019-05-19 07:09:05,002 2008 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\Set-SSHDefaultShell.ps1'
with checksum '1A26224C48488038D136D9F06A7B9E73'
2019-05-19 07:09:05,017 2008 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\SetSpecialPrivileges.ps1'
with checksum '543B78A2B38141A98F2AF8BD3F10893B'
2019-05-19 07:09:05,017 2008 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\VERIFICATION.txt'
with checksum 'A3C11FB5F52B25E893CFB4FA8539F2E4'
2019-05-19 07:09:05,127 2008 [DEBUG] - Adding 'Hidden' attribute(s) to 'C:\ProgramData\chocolatey\.chocolatey'.
2019-05-19 07:09:05,158 2008 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\openssh.7.9.0.1".
2019-05-19 07:09:05,205 2008 [DEBUG] - There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\openssh.7.9.0.1\.files'
2019-05-19 07:09:05,221 2008 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\openssh.7.9.0.1\.extra".
2019-05-19 07:09:05,221 2008 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\openssh.7.9.0.1\.version".
2019-05-19 07:09:05,221 2008 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\openssh.7.9.0.1\.sxs".
2019-05-19 07:09:05,236 2008 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\openssh.7.9.0.1\.pin".
2019-05-19 07:09:05,252 2008 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2019-05-19 07:09:05,252 2008 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\.chocolateyPending".
2019-05-19 07:09:05,267 2008 [INFO ] - The install of openssh was successful.
2019-05-19 07:09:05,283 2008 [INFO ] - Software installed to 'C:\Users\Administrator\AppData\Local\Temp\chocolatey\OpenSSHTemp'
2019-05-19 07:09:05,283 2008 [DEBUG] - Attempting to delete file "C:\Users\Administrator\AppData\Local\NuGet\Cache\openssh.7.9.0.1.nupkg".
2019-05-19 07:09:05,425 2008 [WARN ] -
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2019-05-19 07:09:05,439 2008 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2019-05-19 07:09:05,502 2008 [DEBUG] - Exiting with 0
2019-05-19 07:09:37,346 1448 [DEBUG] - XmlConfiguration is now operational
2019-05-19 07:09:37,502 1448 [INFO ] - ============================================================
2019-05-19 07:09:38,096 1448 [INFO ] - Chocolatey v0.10.14-beta-7-gb30427d
2019-05-19 07:09:38,127 1448 [DEBUG] - Chocolatey is running on Windows v 6.3.9600.0
2019-05-19 07:09:38,142 1448 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2019-05-19 07:09:38,142 1448 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2019-05-19 07:09:38,159 1448 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" uninstall openssh --version 7.9.0.1 -dvy --execution-timeout=2700
2019-05-19 07:09:38,174 1448 [DEBUG] - Received arguments: uninstall openssh --version 7.9.0.1 -dvy --execution-timeout=2700
2019-05-19 07:09:38,283 1448 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2019-05-19 07:09:38,314 1448 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2019-05-19 07:09:38,331 1448 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2019-05-19 07:09:38,456 1448 [DEBUG] - Performing validation checks.
2019-05-19 07:09:38,471 1448 [DEBUG] - Global Configuration Validation Checks:
2019-05-19 07:09:38,471 1448 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked
2019-05-19 07:09:38,486 1448 [DEBUG] - System State Validation Checks:
2019-05-19 07:09:38,486 1448 [DEBUG] - Reboot Requirement Checks:
2019-05-19 07:09:38,502 1448 [DEBUG] - - Pending Computer Rename = Checked
2019-05-19 07:09:38,502 1448 [DEBUG] - - Pending Component Based Servicing = Checked
2019-05-19 07:09:38,502 1448 [DEBUG] - - Pending Windows Auto Update = Checked
2019-05-19 07:09:38,517 1448 [DEBUG] - - Pending File Rename Operations = Checked
2019-05-19 07:09:38,517 1448 [DEBUG] - - Pending Windows Package Installer = Checked
2019-05-19 07:09:38,517 1448 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked
2019-05-19 07:09:38,533 1448 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s).
2019-05-19 07:09:38,549 1448 [DEBUG] - The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2019-05-19 07:09:38,549 1448 [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.
2019-05-19 07:09:38,596 1448 [DEBUG] - Configuration: CommandName='uninstall'|
CacheLocation='C:\Users\Administrator\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://chocolatey.org/api/v2/'|SourceType='normal'|
Debug='True'|Verbose='True'|Trace='False'|Force='False'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='False'|AcceptLicense='True'|
AllowUnofficialBuild='False'|Input='openssh'|Version='7.9.0.1'|
AllVersions='False'|SkipPackageInstallProvider='False'|
PackageNames='openssh'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='6.3.9600.0'|
Information.PlatformName='Windows Server 2012 R2'|
Information.ChocolateyVersion='0.10.14.0'|
Information.ChocolateyProductVersion='0.10.14-beta-7-gb30427d'|
Information.FullName='choco, Version=0.10.14.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='vagrant'|
Information.UserDomainName='WIN-E5K8TM30719'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
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.ScriptsCheckLastExitCode='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.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
SourceCommand.VisibleToAdminsOnly='False'|
FeatureCommand.Command='unknown'|ConfigCommand.Command='unknown'|
ApiKeyCommand.Remove='False'|PinCommand.Command='unknown'|
OutdatedCommand.IgnorePinned='False'|Proxy.BypassOnLocal='True'|
2019-05-19 07:09:38,596 1448 [DEBUG] - _ Chocolatey:ChocolateyUninstallCommand - Normal Run Mode _
2019-05-19 07:09:38,611 1448 [INFO ] - Uninstalling the following packages:
2019-05-19 07:09:38,611 1448 [INFO ] - openssh
2019-05-19 07:09:38,642 1448 [DEBUG] - Current environment values (may contain sensitive data):
2019-05-19 07:09:38,642 1448 [DEBUG] - * 'TMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
2019-05-19 07:09:38,642 1448 [DEBUG] - * 'TEMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
2019-05-19 07:09:38,642 1448 [DEBUG] - * 'ChocolateyLastPathUpdate'='132027233274554202' ('User')
2019-05-19 07:09:38,658 1448 [DEBUG] - * 'FP_NO_HOST_CHECK'='NO' ('Machine')
2019-05-19 07:09:38,658 1448 [DEBUG] - * 'USERNAME'='SYSTEM' ('Machine')
2019-05-19 07:09:38,658 1448 [DEBUG] - * 'Path'='C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSH-Win64;' ('Machine')
2019-05-19 07:09:38,658 1448 [DEBUG] - * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine')
2019-05-19 07:09:38,658 1448 [DEBUG] - * 'TMP'='C:\Windows\TEMP' ('Machine')
2019-05-19 07:09:38,674 1448 [DEBUG] - * 'OS'='Windows_NT' ('Machine')
2019-05-19 07:09:38,674 1448 [DEBUG] - * 'windir'='C:\Windows' ('Machine')
2019-05-19 07:09:38,674 1448 [DEBUG] - * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine')
2019-05-19 07:09:38,674 1448 [DEBUG] - * 'TEMP'='C:\Windows\TEMP' ('Machine')
2019-05-19 07:09:38,689 1448 [DEBUG] - * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine')
2019-05-19 07:09:38,689 1448 [DEBUG] - * 'PSModulePath'='C:\Windows\system32\WindowsPowerShell\v1.0\Modules\' ('Machine')
2019-05-19 07:09:38,689 1448 [DEBUG] - * 'NUMBER_OF_PROCESSORS'='4' ('Machine')
2019-05-19 07:09:38,689 1448 [DEBUG] - * 'PROCESSOR_LEVEL'='6' ('Machine')
2019-05-19 07:09:38,705 1448 [DEBUG] - * 'PROCESSOR_IDENTIFIER'='Intel64 Family 6 Model 45 Stepping 7, GenuineIntel' ('Machine')
2019-05-19 07:09:38,705 1448 [DEBUG] - * 'PROCESSOR_REVISION'='2d07' ('Machine')
2019-05-19 07:09:38,705 1448 [DEBUG] - * 'HOME'='C:\Users\Administrator' ('Machine')
2019-05-19 07:09:38,705 1448 [DEBUG] - * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine')
2019-05-19 07:09:38,721 1448 [DEBUG] - * 'TERM'='' ('Machine')
2019-05-19 07:09:38,971 1448 [DEBUG] - Running list with the following filter = ''
2019-05-19 07:09:38,971 1448 [DEBUG] - --- Start of List ---
2019-05-19 07:09:39,377 1448 [DEBUG] - openssh 7.9.0.1
2019-05-19 07:09:39,392 1448 [DEBUG] - --- End of List ---
2019-05-19 07:09:39,721 1448 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bkp".
2019-05-19 07:09:39,736 1448 [DEBUG] - Backing up existing openssh prior to operation.
2019-05-19 07:09:39,753 1448 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\openssh'
to 'C:\ProgramData\chocolatey\lib-bkp\openssh'
2019-05-19 07:09:41,767 1448 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\openssh".
2019-05-19 07:09:41,767 1448 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\openssh.nupkg"
to "C:\ProgramData\chocolatey\lib\openssh\openssh.nupkg".
2019-05-19 07:09:41,783 1448 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\openssh.nuspec"
to "C:\ProgramData\chocolatey\lib\openssh\openssh.nuspec".
2019-05-19 07:09:41,800 1448 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\openssh\tools".
2019-05-19 07:09:41,800 1448 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\tools\7z.dll"
to "C:\ProgramData\chocolatey\lib\openssh\tools\7z.dll".
2019-05-19 07:09:41,814 1448 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\tools\7z.exe"
to "C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe".
2019-05-19 07:09:41,814 1448 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\tools\7z.exe.ignore"
to "C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe.ignore".
2019-05-19 07:09:41,830 1448 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\tools\barebonesinstaller.ps1"
to "C:\ProgramData\chocolatey\lib\openssh\tools\barebonesinstaller.ps1".
2019-05-19 07:09:41,830 1448 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\tools\chocolateyinstall.ps1"
to "C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1".
2019-05-19 07:09:41,830 1448 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\tools\chocolateyuninstall.ps1"
to "C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1".
2019-05-19 07:09:41,846 1448 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\tools\Get-NetStat.ps1"
to "C:\ProgramData\chocolatey\lib\openssh\tools\Get-NetStat.ps1".
2019-05-19 07:09:41,846 1448 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\tools\LICENSE.txt"
to "C:\ProgramData\chocolatey\lib\openssh\tools\LICENSE.txt".
2019-05-19 07:09:41,846 1448 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\tools\OpenSSH-Win32.zip"
to "C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win32.zip".
2019-05-19 07:09:41,861 1448 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\tools\OpenSSH-Win64.zip"
to "C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip".
2019-05-19 07:09:41,877 1448 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\tools\Set-SSHDefaultShell.ps1"
to "C:\ProgramData\chocolatey\lib\openssh\tools\Set-SSHDefaultShell.ps1".
2019-05-19 07:09:41,877 1448 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\tools\SetSpecialPrivileges.ps1"
to "C:\ProgramData\chocolatey\lib\openssh\tools\SetSpecialPrivileges.ps1".
2019-05-19 07:09:41,877 1448 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\openssh\tools\VERIFICATION.txt"
to "C:\ProgramData\chocolatey\lib\openssh\tools\VERIFICATION.txt".
2019-05-19 07:09:43,424 1448 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\openssh'
2019-05-19 07:09:44,596 1448 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\openssh.nupkg'
with checksum '125A315F0C279B84C8F0477C6F692BDB'
2019-05-19 07:09:44,611 1448 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\openssh.nuspec'
with checksum 'A27A18E6A2AA898B5DD0DEB4CD0CE81B'
2019-05-19 07:09:44,627 1448 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\7z.dll'
with checksum '9943B3BCB2CA91CCBEF2D96682CECB79'
2019-05-19 07:09:44,627 1448 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe'
with checksum '506E5B371882A5A62B669F04CE04DBA8'
2019-05-19 07:09:44,627 1448 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe.ignore'
with checksum 'D41D8CD98F00B204E9800998ECF8427E'
2019-05-19 07:09:44,642 1448 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\barebonesinstaller.ps1'
with checksum '4EF4A2A2F7DF1E58FEFC7B2796C3D30B'
2019-05-19 07:09:44,642 1448 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1'
with checksum 'B9167A47593AB102F4BF6D4D1C1317CF'
2019-05-19 07:09:44,642 1448 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1'
with checksum '52ED6CE8FD63609AF9144F51A2B4841B'
2019-05-19 07:09:44,642 1448 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\Get-NetStat.ps1'
with checksum '5639E1A979924BAB1F81DEDC52C89003'
2019-05-19 07:09:44,658 1448 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\LICENSE.txt'
with checksum '1FA7983BE13136F10B6E346AC0F8ACE3'
2019-05-19 07:09:44,674 1448 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win32.zip'
with checksum '8FD343BE968602FED13EBEF309170866'
2019-05-19 07:09:44,705 1448 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip'
with checksum '543983308CB8DC13B24F89322AC3DE78'
2019-05-19 07:09:44,721 1448 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\Set-SSHDefaultShell.ps1'
with checksum '1A26224C48488038D136D9F06A7B9E73'
2019-05-19 07:09:44,721 1448 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\SetSpecialPrivileges.ps1'
with checksum '543B78A2B38141A98F2AF8BD3F10893B'
2019-05-19 07:09:44,721 1448 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\VERIFICATION.txt'
with checksum 'A3C11FB5F52B25E893CFB4FA8539F2E4'
2019-05-19 07:09:45,143 1448 [INFO ] - [NuGet] Uninstalling 'openssh 7.9.0.1'.
2019-05-19 07:09:45,158 1448 [INFO ] -
openssh v7.9.0.1
2019-05-19 07:09:45,237 1448 [DEBUG] - Setting installer args for openssh
2019-05-19 07:09:45,252 1448 [DEBUG] - Setting package parameters for openssh
2019-05-19 07:09:45,252 1448 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1':
2019-05-19 07:09:45,283 1448 [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'
}
2019-05-19 07:09:45,361 1448 [DEBUG] - Calling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1' -installArguments '' -packageParameters ''']
2019-05-19 07:09:45,377 1448 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2019-05-19 07:09:46,080 1448 [DEBUG] - Host version is 4.0, PowerShell Version is '4.0' and CLR Version is '4.0.30319.33440'.
2019-05-19 07:09:46,471 1448 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2019-05-19 07:09:46,486 1448 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2019-05-19 07:09:46,486 1448 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2019-05-19 07:09:46,486 1448 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2019-05-19 07:09:46,486 1448 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2019-05-19 07:09:46,502 1448 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2019-05-19 07:09:46,502 1448 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2019-05-19 07:09:46,502 1448 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2019-05-19 07:09:46,502 1448 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2019-05-19 07:09:46,517 1448 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2019-05-19 07:09:46,517 1448 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2019-05-19 07:09:46,517 1448 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2019-05-19 07:09:46,533 1448 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2019-05-19 07:09:46,533 1448 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2019-05-19 07:09:46,533 1448 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2019-05-19 07:09:46,549 1448 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2019-05-19 07:09:46,549 1448 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2019-05-19 07:09:46,549 1448 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2019-05-19 07:09:46,549 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2019-05-19 07:09:46,564 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2019-05-19 07:09:46,564 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2019-05-19 07:09:46,564 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2019-05-19 07:09:46,580 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2019-05-19 07:09:46,846 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2019-05-19 07:09:46,861 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2019-05-19 07:09:46,861 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2019-05-19 07:09:46,861 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2019-05-19 07:09:46,861 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2019-05-19 07:09:46,877 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2019-05-19 07:09:46,877 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2019-05-19 07:09:46,877 1448 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2019-05-19 07:09:46,892 1448 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2019-05-19 07:09:46,892 1448 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2019-05-19 07:09:46,892 1448 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2019-05-19 07:09:46,892 1448 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2019-05-19 07:09:46,908 1448 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2019-05-19 07:09:46,908 1448 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-05-19 07:09:46,908 1448 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2019-05-19 07:09:46,908 1448 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2019-05-19 07:09:46,924 1448 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2019-05-19 07:09:46,924 1448 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2019-05-19 07:09:46,924 1448 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2019-05-19 07:09:46,939 1448 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2019-05-19 07:09:46,939 1448 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2019-05-19 07:09:46,939 1448 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2019-05-19 07:09:46,955 1448 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2019-05-19 07:09:46,955 1448 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2019-05-19 07:09:46,955 1448 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2019-05-19 07:09:46,955 1448 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2019-05-19 07:09:46,971 1448 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2019-05-19 07:09:46,971 1448 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2019-05-19 07:09:46,971 1448 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2019-05-19 07:09:46,986 1448 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2019-05-19 07:09:47,017 1448 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2019-05-19 07:09:47,017 1448 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2019-05-19 07:09:47,033 1448 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2019-05-19 07:09:47,033 1448 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2019-05-19 07:09:47,033 1448 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2019-05-19 07:09:47,033 1448 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2019-05-19 07:09:47,049 1448 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2019-05-19 07:09:47,049 1448 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2019-05-19 07:09:47,049 1448 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2019-05-19 07:09:47,064 1448 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2019-05-19 07:09:47,064 1448 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2019-05-19 07:09:47,064 1448 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2019-05-19 07:09:47,064 1448 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2019-05-19 07:09:47,080 1448 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2019-05-19 07:09:47,080 1448 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2019-05-19 07:09:47,080 1448 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2019-05-19 07:09:47,096 1448 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2019-05-19 07:09:47,096 1448 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2019-05-19 07:09:47,096 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2019-05-19 07:09:47,111 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2019-05-19 07:09:47,111 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2019-05-19 07:09:47,111 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2019-05-19 07:09:47,127 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2019-05-19 07:09:47,127 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2019-05-19 07:09:47,127 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2019-05-19 07:09:47,127 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2019-05-19 07:09:47,142 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2019-05-19 07:09:47,142 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2019-05-19 07:09:47,142 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2019-05-19 07:09:47,142 1448 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2019-05-19 07:09:47,158 1448 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2019-05-19 07:09:47,158 1448 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2019-05-19 07:09:47,158 1448 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2019-05-19 07:09:47,174 1448 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2019-05-19 07:09:47,174 1448 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2019-05-19 07:09:47,174 1448 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2019-05-19 07:09:47,174 1448 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-05-19 07:09:47,189 1448 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2019-05-19 07:09:47,189 1448 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2019-05-19 07:09:47,189 1448 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2019-05-19 07:09:47,205 1448 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2019-05-19 07:09:47,205 1448 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2019-05-19 07:09:47,205 1448 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2019-05-19 07:09:47,205 1448 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2019-05-19 07:09:47,221 1448 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2019-05-19 07:09:47,221 1448 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2019-05-19 07:09:47,221 1448 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2019-05-19 07:09:47,221 1448 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2019-05-19 07:09:47,236 1448 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2019-05-19 07:09:47,236 1448 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2019-05-19 07:09:47,236 1448 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2019-05-19 07:09:47,252 1448 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2019-05-19 07:09:47,252 1448 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2019-05-19 07:09:47,252 1448 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2019-05-19 07:09:47,252 1448 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2019-05-19 07:09:47,267 1448 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2019-05-19 07:09:47,267 1448 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2019-05-19 07:09:47,267 1448 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2019-05-19 07:09:47,283 1448 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2019-05-19 07:09:47,283 1448 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2019-05-19 07:09:47,283 1448 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2019-05-19 07:09:47,283 1448 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2019-05-19 07:09:47,299 1448 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2019-05-19 07:09:47,299 1448 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2019-05-19 07:09:47,299 1448 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2019-05-19 07:09:47,314 1448 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2019-05-19 07:09:47,314 1448 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2019-05-19 07:09:47,314 1448 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2019-05-19 07:09:47,314 1448 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2019-05-19 07:09:47,330 1448 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2019-05-19 07:09:47,330 1448 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2019-05-19 07:09:47,330 1448 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2019-05-19 07:09:47,330 1448 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2019-05-19 07:09:47,346 1448 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2019-05-19 07:09:47,346 1448 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2019-05-19 07:09:47,361 1448 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2019-05-19 07:09:47,361 1448 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2019-05-19 07:09:47,361 1448 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2019-05-19 07:09:47,377 1448 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2019-05-19 07:09:47,377 1448 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2019-05-19 07:09:47,377 1448 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2019-05-19 07:09:47,392 1448 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2019-05-19 07:09:47,392 1448 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2019-05-19 07:09:47,392 1448 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2019-05-19 07:09:47,408 1448 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2019-05-19 07:09:47,408 1448 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2019-05-19 07:09:47,408 1448 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2019-05-19 07:09:47,424 1448 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2019-05-19 07:09:47,424 1448 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2019-05-19 07:09:47,424 1448 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-05-19 07:09:47,439 1448 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2019-05-19 07:09:47,439 1448 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2019-05-19 07:09:47,439 1448 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2019-05-19 07:09:47,455 1448 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2019-05-19 07:09:47,455 1448 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2019-05-19 07:09:47,455 1448 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2019-05-19 07:09:47,455 1448 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2019-05-19 07:09:47,471 1448 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2019-05-19 07:09:47,471 1448 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2019-05-19 07:09:47,471 1448 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2019-05-19 07:09:47,486 1448 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2019-05-19 07:09:47,486 1448 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2019-05-19 07:09:47,486 1448 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2019-05-19 07:09:47,486 1448 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2019-05-19 07:09:47,502 1448 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2019-05-19 07:09:47,502 1448 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2019-05-19 07:09:47,642 1448 [DEBUG] - Running 'ChocolateyScriptRunner' for openssh v7.9.0.1 with packageScript 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\openssh', installArguments: '', packageParameters: '',
2019-05-19 07:09:47,689 1448 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1'
2019-05-19 07:09:47,783 1448 [INFO ] - Running on: Windows Server 2012 R2 Datacenter, (ServerDatacenter)
2019-05-19 07:09:47,830 1448 [DEBUG] - No Package Parameters Passed in
2019-05-19 07:09:48,643 1448 [WARN ] - WARNING: Removing all config and server keys as requested by /DeleteConfigAndServerKeys
2019-05-19 07:09:50,736 1448 [INFO ] -
2019-05-19 07:09:50,752 1448 [INFO ] - No rules match the specified criteria.
2019-05-19 07:09:50,752 1448 [INFO ] -
2019-05-19 07:09:50,861 1448 [DEBUG] - The last executable that ran had an exit code of '1'.
2019-05-19 07:09:50,893 1448 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1' -installArguments '' -packageParameters '''] exited with '0'.
2019-05-19 07:09:50,939 1448 [INFO ] - Skipping auto uninstaller - No registry snapshot.
2019-05-19 07:09:50,955 1448 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2019-05-19 07:09:51,002 1448 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2019-05-19 07:09:51,033 1448 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bkp\openssh".
2019-05-19 07:09:51,127 1448 [DEBUG] - [NuGet] Removed file '7z.dll' to folder 'C:\ProgramData\chocolatey\lib\openssh\tools'.
2019-05-19 07:09:51,127 1448 [DEBUG] - [NuGet] Removed file '7z.exe' to folder 'C:\ProgramData\chocolatey\lib\openssh\tools'.
2019-05-19 07:09:51,142 1448 [DEBUG] - [NuGet] Removed file '7z.exe.ignore' to folder 'C:\ProgramData\chocolatey\lib\openssh\tools'.
2019-05-19 07:09:51,142 1448 [DEBUG] - [NuGet] Removed file 'barebonesinstaller.ps1' to folder 'C:\ProgramData\chocolatey\lib\openssh\tools'.
2019-05-19 07:09:51,158 1448 [DEBUG] - [NuGet] Removed file 'chocolateyinstall.ps1' to folder 'C:\ProgramData\chocolatey\lib\openssh\tools'.
2019-05-19 07:09:51,158 1448 [DEBUG] - [NuGet] Removed file 'chocolateyuninstall.ps1' to folder 'C:\ProgramData\chocolatey\lib\openssh\tools'.
2019-05-19 07:09:51,174 1448 [DEBUG] - [NuGet] Removed file 'Get-NetStat.ps1' to folder 'C:\ProgramData\chocolatey\lib\openssh\tools'.
2019-05-19 07:09:51,174 1448 [DEBUG] - [NuGet] Removed file 'LICENSE.txt' to folder 'C:\ProgramData\chocolatey\lib\openssh\tools'.
2019-05-19 07:09:51,189 1448 [DEBUG] - [NuGet] Removed file 'OpenSSH-Win32.zip' to folder 'C:\ProgramData\chocolatey\lib\openssh\tools'.
2019-05-19 07:09:51,221 1448 [DEBUG] - [NuGet] Removed file 'OpenSSH-Win64.zip' to folder 'C:\ProgramData\chocolatey\lib\openssh\tools'.
2019-05-19 07:09:51,236 1448 [DEBUG] - [NuGet] Removed file 'Set-SSHDefaultShell.ps1' to folder 'C:\ProgramData\chocolatey\lib\openssh\tools'.
2019-05-19 07:09:51,236 1448 [DEBUG] - [NuGet] Removed file 'SetSpecialPrivileges.ps1' to folder 'C:\ProgramData\chocolatey\lib\openssh\tools'.
2019-05-19 07:09:51,236 1448 [DEBUG] - [NuGet] Removed file 'VERIFICATION.txt' to folder 'C:\ProgramData\chocolatey\lib\openssh\tools'.
2019-05-19 07:09:51,252 1448 [DEBUG] - [NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\openssh\tools'.
2019-05-19 07:09:51,267 1448 [DEBUG] - [NuGet] Removed file 'openssh.nuspec' to folder 'C:\ProgramData\chocolatey\lib\openssh'.
2019-05-19 07:09:51,267 1448 [DEBUG] - [NuGet] Removed file 'openssh.nupkg' to folder 'C:\ProgramData\chocolatey\lib\openssh'.
2019-05-19 07:09:51,283 1448 [DEBUG] - [NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\openssh'.
2019-05-19 07:09:51,283 1448 [INFO ] - [NuGet] Successfully uninstalled 'openssh 7.9.0.1'.
2019-05-19 07:09:51,299 1448 [INFO ] - openssh has been successfully uninstalled.
2019-05-19 07:09:51,314 1448 [DEBUG] - Removing nupkg if it still exists.
2019-05-19 07:09:51,330 1448 [DEBUG] - Ensuring removal of installation files.
2019-05-19 07:09:51,330 1448 [DEBUG] - Ensuring removal of package cache files.
2019-05-19 07:09:51,361 1448 [WARN ] - Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
2019-05-19 07:09:51,377 1448 [DEBUG] - The following values have been added/changed (may contain sensitive data):
2019-05-19 07:09:51,377 1448 [DEBUG] - * Path='C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\ProgramData\chocolatey\bin' (Machine)
2019-05-19 07:09:51,377 1448 [DEBUG] - The following values have been removed:
2019-05-19 07:09:51,392 1448 [DEBUG] - * TERM='' (Machine)
2019-05-19 07:09:51,424 1448 [WARN ] -
Chocolatey uninstalled 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2019-05-19 07:09:51,439 1448 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2019-05-19 07:09:51,486 1448 [DEBUG] - Exiting with 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.