{"action":"created","issue":{"url":"https://api.github.com/repos/DarwinJS/ChocoPackages/issues/6","repository_url":"https://api.github.com/repos/DarwinJS/ChocoPackages","labels_url":"https://api.github.com/repos/DarwinJS/ChocoPackages/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/DarwinJS/ChocoPackages/issues/6/comments","events_url":"https://api.github.com/repos/DarwinJS/ChocoPackages/issues/6/events","html_url":"https://github.com/DarwinJS/ChocoPackages/issues/6","id":162979643,"number":6,"title":"Choco Uninstall for Win32-OpenSsh Fails","user":{"login":"Abdullah2993","id":5978905,"avatar_url":"https://avatars.githubusercontent.com/u/5978905?v=3","gravatar_id":"","url":"https://api.github.com/users/Abdullah2993","html_url":"https://github.com/Abdullah2993","followers_url":"https://api.github.com/users/Abdullah2993/followers","following_url":"https://api.github.com/users/Abdullah2993/following{/other_user}","gists_url":"https://api.github.com/users/Abdullah2993/gists{/gist_id}","starred_url":"https://api.github.com/users/Abdullah2993/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abdullah2993/subscriptions","organizations_url":"https://api.github.com/users/Abdullah2993/orgs","repos_url":"https://api.github.com/users/Abdullah2993/repos","events_url":"https://api.github.com/users/Abdullah2993/events{/privacy}","received_events_url":"https://api.github.com/users/Abdullah2993/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-29T17:15:15Z","updated_at":"2016-09-02T23:59:19Z","closed_at":null,"body":"**OUTPUT:**\r\n```\r\nC:\\Users\\Abdullah>choco uninstall win32-openssh -params '\"/SSHServerFeature /DeleteConfigAndServerKeys\"' -confirm\r\nUninstalling the following packages:\r\nwin32-openssh\r\n\r\nwin32-openssh v2016.05.30\r\n/SSHServerFeature - Uninstalling SSH Server Feature if Present.\r\n/DeleteConfigAndServerKeys - Removing SSH Config and Server Keys.\r\nWARNING: Removing all config and server keys as requested by /DeleteConfigAndServerKeys\r\n\r\nNo rules match the specified criteria.\r\n\r\nwin32-openssh uninstall not successful.\r\nError while running 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\chocolateyuninstall.ps1'.\r\n See log for details.\r\nwin32-openssh not uninstalled. An error occurred during uninstall:\r\n win32-openssh uninstall not successful.\r\n\r\nChocolatey uninstalled 0/1 packages. 1 packages failed.\r\n See the log for details (C:\\ProgramData\\chocolatey\\logs\\chocolatey.log).\r\n\r\nFailures\r\n - win32-openssh (exited 1) - Error while running 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\chocolateyuninstall.ps1'.\r\n See log for details.\r\n```\r\n\r\n**LOG File:**\r\n```\r\n2016-06-29 22:12:58,262 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.9.10.3, Culture=neutral, PublicKeyToken=79d02ea9cad655eb\r\n2016-06-29 22:12:58,262 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.9.10.3, Culture=neutral, PublicKeyToken=79d02ea9cad655eb\r\n2016-06-29 22:12:58,288 [DEBUG] - XmlConfiguration is now operational\r\n2016-06-29 22:12:58,583 [DEBUG] - Attempting to delete file \"C:\\ProgramData\\chocolatey\\config\\chocolatey.config.update\".\r\n2016-06-29 22:12:58,592 [INFO ] - ============================================================\r\n2016-06-29 22:12:58,595 [INFO ] - Chocolatey v0.9.10.3\r\n2016-06-29 22:12:58,600 [DEBUG] - Chocolatey is running on Windows v 10.0.10586.0\r\n2016-06-29 22:12:58,602 [DEBUG] - Attempting to delete file \"C:/ProgramData/chocolatey/choco.exe.old\".\r\n2016-06-29 22:12:58,603 [DEBUG] - Attempting to delete file \"C:\\ProgramData\\chocolatey\\choco.exe.old\".\r\n2016-06-29 22:12:58,623 [DEBUG] - Command line: \"C:\\ProgramData\\chocolatey\\choco.exe\" uninstall win32-openssh -params '\"/SSHServerFeature /DeleteConfigAndServerKeys\"' -confirm\r\n2016-06-29 22:12:58,625 [DEBUG] - Received arguments: uninstall win32-openssh -params '/SSHServerFeature /DeleteConfigAndServerKeys' -confirm\r\n2016-06-29 22:12:58,697 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.\r\n2016-06-29 22:12:58,705 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...\r\n2016-06-29 22:12:58,711 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...\r\n2016-06-29 22:12:58,785 [DEBUG] - The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type\r\n2016-06-29 22:12:58,787 [DEBUG] - \r\nNOTE: Hiding sensitive configuration data! Please double and triple \r\n check to be sure no sensitive data is shown, especially if copying \r\n output to a gist for review.\r\n2016-06-29 22:12:58,799 [DEBUG] - Configuration: CommandName='uninstall'|\r\nCacheLocation='C:\\Users\\Abdullah\\AppData\\Local\\Temp\\chocolatey'|\r\nContainsLegacyPackageInstalls='True'|\r\nCommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|\r\nSources='https://chocolatey.org/api/v2/'|SourceType='normal'|\r\nDebug='False'|Verbose='False'|Force='False'|Noop='False'|\r\nHelpRequested='False'|RegularOutput='True'|QuietOutput='False'|\r\nPromptForConfirmation='False'|AcceptLicense='True'|\r\nAllowUnofficialBuild='False'|Input='win32-openssh'|AllVersions='False'|\r\nSkipPackageInstallProvider='False'|PackageNames='win32-openssh'|\r\nPrerelease='False'|ForceX86='False'|OverrideArguments='False'|\r\nNotSilent='False'|\r\nPackageParameters='/SSHServerFeature /DeleteConfigAndServerKeys'|\r\nIgnoreDependencies='False'|AllowMultipleVersions='False'|\r\nAllowDowngrade='False'|ForceDependencies='False'|\r\nInformation.PlatformType='Windows'|\r\nInformation.PlatformVersion='10.0.10586.0'|\r\nInformation.PlatformName='Windows'|\r\nInformation.ChocolateyVersion='0.9.10.3'|\r\nInformation.ChocolateyProductVersion='0.9.10.3'|\r\nInformation.FullName='choco, Version=0.9.10.3, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|\r\n\r\nInformation.Is64Bit='True'|Information.IsInteractive='True'|\r\nInformation.IsUserAdministrator='True'|\r\nInformation.IsProcessElevated='True'|\r\nInformation.IsLicensedVersion='False'|Features.AutoUninstaller='True'|\r\nFeatures.CheckSumFiles='True'|Features.FailOnAutoUninstaller='False'|\r\nFeatures.FailOnStandardError='False'|Features.UsePowerShellHost='True'|\r\nFeatures.LogEnvironmentValues='False'|Features.VirusCheck='False'|\r\nFeatures.FailOnInvalidOrMissingLicense='False'|\r\nFeatures.IgnoreInvalidOptionsSwitches='True'|\r\nFeatures.UsePackageExitCodes='True'|\r\nFeatures.UseFipsCompliantChecksums='False'|\r\nListCommand.LocalOnly='False'|\r\nListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'|\r\nListCommand.Exact='False'|ListCommand.ByIdOnly='False'|\r\nListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|\r\nListCommand.ApprovedOnly='False'|\r\nListCommand.DownloadCacheAvailable='False'|\r\nListCommand.NotBroken='False'|UpgradeCommand.FailOnUnfound='False'|\r\nUpgradeCommand.FailOnNotInstalled='False'|\r\nUpgradeCommand.NotifyOnlyAvailableUpgrades='False'|\r\nNewCommand.AutomaticPackage='False'|\r\nNewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|\r\nSourceCommand.Priority='0'|FeatureCommand.Command='unknown'|\r\nConfigCommand.Command='unknown'|PinCommand.Command='unknown'|\r\n2016-06-29 22:12:58,801 [DEBUG] - _ Chocolatey:ChocolateyUninstallCommand - Normal Run Mode _\r\n2016-06-29 22:12:58,808 [INFO ] - Uninstalling the following packages:\r\n2016-06-29 22:12:58,812 [INFO ] - win32-openssh\r\n2016-06-29 22:12:58,886 [DEBUG] - Running list with the following filter = ''\r\n2016-06-29 22:12:58,887 [DEBUG] - --- Start of List ---\r\n2016-06-29 22:12:59,036 [DEBUG] - chocolatey 0.9.10.3\r\n2016-06-29 22:12:59,041 [DEBUG] - ffmpeg 3.0.1\r\n2016-06-29 22:12:59,042 [DEBUG] - win32-openssh 2016.05.30\r\n2016-06-29 22:12:59,043 [DEBUG] - youtube-dl 2016.06.26\r\n2016-06-29 22:12:59,043 [DEBUG] - --- End of List ---\r\n2016-06-29 22:12:59,053 [DEBUG] - Attempting to delete directory \"C:\\ProgramData\\chocolatey\\lib-bkp\\win32-openssh\".\r\n2016-06-29 22:12:59,122 [DEBUG] - Backing up existing win32-openssh prior to upgrade.\r\n2016-06-29 22:12:59,125 [DEBUG] - Moving 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh'\r\n to 'C:\\ProgramData\\chocolatey\\lib-bkp\\win32-openssh'\r\n2016-06-29 22:13:01,130 [DEBUG] - Attempting to create directory \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\".\r\n2016-06-29 22:13:01,134 [DEBUG] - Attempting to copy \"C:\\ProgramData\\chocolatey\\lib-bkp\\win32-openssh\\OpenSSH-Win64.zip.txt\"\r\n to \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\OpenSSH-Win64.zip.txt\".\r\n2016-06-29 22:13:01,141 [DEBUG] - Attempting to copy \"C:\\ProgramData\\chocolatey\\lib-bkp\\win32-openssh\\win32-openssh.nupkg\"\r\n to \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\win32-openssh.nupkg\".\r\n2016-06-29 22:13:01,143 [DEBUG] - Attempting to copy \"C:\\ProgramData\\chocolatey\\lib-bkp\\win32-openssh\\win32-openssh.nuspec\"\r\n to \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\win32-openssh.nuspec\".\r\n2016-06-29 22:13:01,146 [DEBUG] - Attempting to create directory \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\".\r\n2016-06-29 22:13:01,147 [DEBUG] - Attempting to copy \"C:\\ProgramData\\chocolatey\\lib-bkp\\win32-openssh\\tools\\chocolateyinstall.ps1\"\r\n to \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\chocolateyinstall.ps1\".\r\n2016-06-29 22:13:01,149 [DEBUG] - Attempting to copy \"C:\\ProgramData\\chocolatey\\lib-bkp\\win32-openssh\\tools\\chocolateyuninstall.ps1\"\r\n to \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\chocolateyuninstall.ps1\".\r\n2016-06-29 22:13:01,152 [DEBUG] - Attempting to copy \"C:\\ProgramData\\chocolatey\\lib-bkp\\win32-openssh\\tools\\ntrights.exe\"\r\n to \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\ntrights.exe\".\r\n2016-06-29 22:13:01,154 [DEBUG] - Attempting to copy \"C:\\ProgramData\\chocolatey\\lib-bkp\\win32-openssh\\tools\\ntrights.exe.ignore\"\r\n to \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\ntrights.exe.ignore\".\r\n2016-06-29 22:13:01,157 [DEBUG] - Attempting to create directory \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\".\r\n2016-06-29 22:13:01,158 [DEBUG] - Attempting to copy \"C:\\ProgramData\\chocolatey\\lib-bkp\\win32-openssh\\tools\\PoshPrivilege\\PoshPrivilege.psd1\"\r\n to \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\PoshPrivilege.psd1\".\r\n2016-06-29 22:13:01,160 [DEBUG] - Attempting to copy \"C:\\ProgramData\\chocolatey\\lib-bkp\\win32-openssh\\tools\\PoshPrivilege\\PoshPrivilege.psm1\"\r\n to \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\PoshPrivilege.psm1\".\r\n2016-06-29 22:13:01,163 [DEBUG] - Attempting to create directory \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\en-US\".\r\n2016-06-29 22:13:01,165 [DEBUG] - Attempting to copy \"C:\\ProgramData\\chocolatey\\lib-bkp\\win32-openssh\\tools\\PoshPrivilege\\en-US\\about_PoShPrivilege.help.txt\"\r\n to \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\en-US\\about_PoShPrivilege.help.txt\".\r\n2016-06-29 22:13:01,168 [DEBUG] - Attempting to create directory \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\Scripts\".\r\n2016-06-29 22:13:01,169 [DEBUG] - Attempting to copy \"C:\\ProgramData\\chocolatey\\lib-bkp\\win32-openssh\\tools\\PoshPrivilege\\Scripts\\Add-Privilege.ps1\"\r\n to \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\Scripts\\Add-Privilege.ps1\".\r\n2016-06-29 22:13:01,172 [DEBUG] - Attempting to copy \"C:\\ProgramData\\chocolatey\\lib-bkp\\win32-openssh\\tools\\PoshPrivilege\\Scripts\\Disable-Privilege.ps1\"\r\n to \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\Scripts\\Disable-Privilege.ps1\".\r\n2016-06-29 22:13:01,174 [DEBUG] - Attempting to copy \"C:\\ProgramData\\chocolatey\\lib-bkp\\win32-openssh\\tools\\PoshPrivilege\\Scripts\\Enable-Privilege.ps1\"\r\n to \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\Scripts\\Enable-Privilege.ps1\".\r\n2016-06-29 22:13:01,177 [DEBUG] - Attempting to copy \"C:\\ProgramData\\chocolatey\\lib-bkp\\win32-openssh\\tools\\PoshPrivilege\\Scripts\\Get-Privilege.ps1\"\r\n to \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\Scripts\\Get-Privilege.ps1\".\r\n2016-06-29 22:13:01,179 [DEBUG] - Attempting to copy \"C:\\ProgramData\\chocolatey\\lib-bkp\\win32-openssh\\tools\\PoshPrivilege\\Scripts\\Remove-Privilege.ps1\"\r\n to \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\Scripts\\Remove-Privilege.ps1\".\r\n2016-06-29 22:13:01,181 [DEBUG] - Attempting to create directory \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\TypeData\".\r\n2016-06-29 22:13:01,183 [DEBUG] - Attempting to copy \"C:\\ProgramData\\chocolatey\\lib-bkp\\win32-openssh\\tools\\PoshPrivilege\\TypeData\\PoShPrivilege.Format.ps1xml\"\r\n to \"C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\TypeData\\PoShPrivilege.Format.ps1xml\".\r\n2016-06-29 22:13:02,691 [DEBUG] - Capturing package files in 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh'\r\n2016-06-29 22:13:02,693 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\OpenSSH-Win64.zip.txt'\r\n  with checksum 'F736B5FB795A4AA15B36D29AB5DF2953'\r\n2016-06-29 22:13:02,695 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\win32-openssh.nupkg'\r\n  with checksum 'AA2D07F0AF087F688DE88EF9F4AB7BA6'\r\n2016-06-29 22:13:02,696 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\win32-openssh.nuspec'\r\n  with checksum 'F38D37B4E94508B8701170C556367722'\r\n2016-06-29 22:13:02,698 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\chocolateyinstall.ps1'\r\n  with checksum 'A98A26E90A78DBE0769639D1FCE16303'\r\n2016-06-29 22:13:02,700 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\chocolateyuninstall.ps1'\r\n  with checksum '1C9F4AC0D1589DC8121AE6B56AEE6C0E'\r\n2016-06-29 22:13:02,701 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\ntrights.exe'\r\n  with checksum '416C43AEB17252EE33048BD1F277D2A5'\r\n2016-06-29 22:13:02,702 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\ntrights.exe.ignore'\r\n  with checksum 'D41D8CD98F00B204E9800998ECF8427E'\r\n2016-06-29 22:13:02,704 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\PoshPrivilege.psd1'\r\n  with checksum 'EE8EE4C97CEC873293AE163CE81A66AB'\r\n2016-06-29 22:13:02,705 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\PoshPrivilege.psm1'\r\n  with checksum '39312492237090F6F737285CFD9B8E3A'\r\n2016-06-29 22:13:02,707 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\en-US\\about_PoShPrivilege.help.txt'\r\n  with checksum '1F9CF10A7E3690C03B13B9F5392F1080'\r\n2016-06-29 22:13:02,708 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\Scripts\\Add-Privilege.ps1'\r\n  with checksum '806CB0FEB2FB8D6416096FDE6F4E28B4'\r\n2016-06-29 22:13:02,710 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\Scripts\\Disable-Privilege.ps1'\r\n  with checksum 'C2D48E6C4960C96C307D1DBB8046D941'\r\n2016-06-29 22:13:02,711 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\Scripts\\Enable-Privilege.ps1'\r\n  with checksum '3E3D46973AE7D578E22124F8FEE30494'\r\n2016-06-29 22:13:02,712 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\Scripts\\Get-Privilege.ps1'\r\n  with checksum 'C54379334254672449D736F796139AD8'\r\n2016-06-29 22:13:02,713 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\Scripts\\Remove-Privilege.ps1'\r\n  with checksum '69960EBDFD4F078B89DDB2D2108DBB82'\r\n2016-06-29 22:13:02,715 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\PoshPrivilege\\TypeData\\PoShPrivilege.Format.ps1xml'\r\n  with checksum 'ADB878AA86C7AD296C847F132DDD4386'\r\n2016-06-29 22:13:02,829 [INFO ] - \r\nwin32-openssh v2016.05.30\r\n2016-06-29 22:13:02,865 [DEBUG] - Setting installer args and package parameters for win32-openssh\r\n2016-06-29 22:13:02,866 [DEBUG] - Contents of 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\chocolateyuninstall.ps1':\r\n2016-06-29 22:13:02,876 [DEBUG] - \r\n$ErrorActionPreference = 'Stop'; # stop on all errors\r\n\r\n$packageName= 'win32-openssh'\r\n$toolsDir   = \"$(Split-Path -parent $MyInvocation.MyCommand.Definition)\"\r\n\r\n$OSBits = Get-ProcessorBits\r\n\r\n#On 64-bit, always favor 64-bit Program Files no matter what our execution is now (works back past XP / Server 2003)\r\nIf ($env:ProgramFiles.contains('x86'))\r\n{\r\n  $PF = $env:ProgramFiles.replace(' (x86)','')\r\n}\r\nElse\r\n{\r\n  $PF = $env:ProgramFiles\r\n}\r\n\r\n$filename = \"$toolsdir\\OpenSSH-Win$($OSBits).zip\"\r\n$TargetFolder = \"$PF\\OpenSSH-Win$($OSBits)\"\r\n\r\n# Default the values\r\n$SSHServerFeature = $false\r\n$KeyBasedAuthenticationFeature = $false\r\n\r\n$arguments = @{};\r\n$packageParameters = $env:chocolateyPackageParameters;\r\n\r\n# Now parse the packageParameters using good old regular expression\r\nif ($packageParameters) {\r\n    $match_pattern = \"\\/(?<option>([a-zA-Z]+)):(?<value>([`\"'])?([a-zA-Z0-9- _\\\\:\\.]+)([`\"'])?)|\\/(?<option>([a-zA-Z]+))\"\r\n    #\"\r\n    $option_name = 'option'\r\n    $value_name = 'value'\r\n\r\n    if ($packageParameters -match $match_pattern ){\r\n        $results = $packageParameters | Select-String $match_pattern -AllMatches\r\n        $results.matches | % {\r\n          $arguments.Add(\r\n              $_.Groups[$option_name].Value.Trim(),\r\n              $_.Groups[$value_name].Value.Trim())\r\n      }\r\n    }\r\n    else\r\n    {\r\n      throw \"Package Parameters were found but were invalid (REGEX Failure)\"\r\n    }\r\n\r\n    if ($arguments.ContainsKey(\"SSHServerFeature\")) {\r\n        Write-Host \"/SSHServerFeature - Uninstalling SSH Server Feature if Present.\"\r\n        $SSHServerFeature = $true\r\n    }\r\n\r\n    if ($arguments.ContainsKey(\"DeleteConfigAndServerKeys\")) {\r\n        Write-Host \"/DeleteConfigAndServerKeys - Removing SSH Config and Server Keys.\"\r\n        $DeleteConfigAndServerKeys = $true\r\n    }\r\n\r\n} else {\r\n    Write-Debug \"No Package Parameters Passed in\";\r\n}\r\n\r\n$SSHServiceInstanceExistsAndIsOurs = ([bool]((Get-WmiObject win32_service | ?{$_.Name -ilike 'sshd'} | select -expand PathName) -ilike \"*$TargetFolder*\"))\r\n\r\nIf ($SSHServerFeature -AND (!$SSHServiceInstanceExistsAndIsOurs) -AND (Get-Service sshd -ErrorAction SilentlyContinue))\r\n{\r\n  $ExistingSSHDInstancePath = (Get-WmiObject win32_service | ?{$_.Name -ilike 'sshd'} | select -expand PathName)\r\n  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\"\r\n  $SSHServerFeature = $False\r\n}\r\n\r\nIf ((!$SSHServerFeature) -AND $SSHServiceInstanceExistsAndIsOurs)\r\n{\r\n  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.\"\r\n}\r\n\r\n\r\nIf ([bool](get-process ssh -erroraction silentlycontinue | where {$_.Path -ilike \"*$TargetPath*\"}))\r\n{\r\n  Throw \"It appears you have instances of ssh.exe (client) running from the folder this package installs to, please terminate them and try again.\"\r\n}\r\n\r\nIf ($SSHServiceInstanceExistsAndIsOurs -AND ([bool](Get-Service SSHD -ErrorAction SilentlyContinue | where {$_.Status -ieq 'Running'})))\r\n{\r\n#Shutdown and unregister service for upgrade\r\n    Stop-Service SSHD -Force\r\n    Start-Sleep -seconds 3\r\n    If (([bool](Get-Service SSHD | where {$_.Status -ieq 'Running'})))\r\n    {\r\n      Throw \"Could not stop the SSHD service, please stop manually and retry this package.\"\r\n    }\r\n    Stop-Service ssh-agent -Force\r\n    Start-Sleep -seconds 3\r\n    If (([bool](Get-Service ssh-agent | where {$_.Status -ieq 'Running'})))\r\n    {\r\n      Throw \"Could not stop the ssh-agent service, please stop manually and retry this package.\"\r\n    }\r\n}\r\n\r\nIf ((get-item 'Registry::HKLM\\System\\CurrentControlSet\\Control\\Lsa').getvalue(\"authentication packages\") -contains 'msv1_0\\0ssh-lsa.dll')\r\n{\r\n  $KeyBasedAuthenticationFeatureINSTALLED = $True\r\n}\r\n\r\nIf ($SSHServiceInstanceExistsAndIsOurs -AND ([bool](Get-Service SSHD | where {$_.Status -ieq 'Running'})))\r\n{\r\n#Shutdown and unregister service for upgrade\r\n    Stop-Service sshd -Force\r\n    If (([bool](Get-Service SSHD | where {$_.Status -ieq 'Running'})))\r\n    {\r\n      Throw \"Could not stop the SSHD service, please stop manually and retry this package.\"\r\n    }\r\n    Stop-Service ssh-agent -Force\r\n    Start-Sleep -seconds 3\r\n    If (([bool](Get-Service ssh-agent | where {$_.Status -ieq 'Running'})))\r\n    {\r\n      Throw \"Could not stop the ssh-agent service, please stop manually and retry this package.\"\r\n    }\r\n}\r\n\r\nIf ($SSHServiceInstanceExistsAndIsOurs -AND ($SSHServerFeature))\r\n{\r\n  Stop-Service sshd\r\n  sc.exe delete sshd 1> null\r\n  Stop-Service ssh-agent\r\n  sc.exe delete ssh-agent 1> null\r\n}\r\n\r\nIf ($KeyBasedAuthenticationFeatureINSTALLED)\r\n{\r\n  If (Test-Path \"$env:windir\\sysnative\")\r\n  { #We are running in a 32-bit process under 64-bit Windows\r\n    $sys32dir = \"$env:windir\\sysnative\"\r\n  }\r\n  Else\r\n  { #We are on a 32-bit OS, or 64-bit proc on 64-bit OS\r\n    $sys32dir = \"$env:windir\\system32\"\r\n  }\r\n\r\n  $AuthpkgToRemove = 'msv1_0\\0ssh-lsa.dll'\r\n  foreach ($authpackage in (get-item 'Registry::HKLM\\System\\CurrentControlSet\\Control\\Lsa').getvalue(\"authentication packages\"))\r\n  {\r\n    If ($authpackage)\r\n    {\r\n      If ($authpackage -ine \"$AuthpkgToRemove\")\r\n      {\r\n        [string[]]$Newauthpackages += \"$authpackage\"\r\n      }\r\n    }\r\n  }\r\n  Set-ItemProperty \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\\" \"Authentication Packages\" $Newauthpackages\r\n  del \"$sys32dir\\ssh-lsa.dll\" -force\r\n}\r\n\r\n#Don't remove config in case they reinstall.\r\nIf ($DeleteConfigAndServerKeys)\r\n{\r\n    Write-Warning \"Removing all config and server keys as requested by /DeleteConfigAndServerKeys\"\r\n    Remove-Item \"$TargetFolder\\*\" -Recurse -Force\r\n}\r\nElse\r\n{\r\n  Remove-Item \"$TargetFolder\\*.*\" -include *.exe,*.dll,*.cmd -Recurse -Force\r\n  Write-Warning \"NOT REMOVED: Config files and any keys in `\"$TargetFolder`\" were NOT REMOVED - you must remove them manually or use the package uninstall parameter /DeleteConfigAndServerKeys.\"\r\n}\r\nnetsh advfirewall firewall delete rule name='SSHD Port win32-openssh'\r\n\r\n$PathToRemove = \"$TargetFolder\"\r\nforeach ($path in [Environment]::GetEnvironmentVariable(\"PATH\",\"Machine\").split(';'))\r\n{\r\n  If ($Path)\r\n  {\r\n    If (($path -ine \"$PathToRemove\") -AND ($path -ine \"$PathToRemove\\\"))\r\n    {\r\n      [string[]]$Newpath += \"$path\"\r\n    }\r\n  }\r\n}\r\n$AssembledNewPath = ($newpath -join(';')).trimend(';')\r\n\r\n[Environment]::SetEnvironmentVariable(\"PATH\",$AssembledNewPath,\"Machine\")\r\n\r\n2016-06-29 22:13:02,909 [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\\win32-openssh\\tools\\chocolateyuninstall.ps1' -installArguments '' -packageParameters '/SSHServerFeature /DeleteConfigAndServerKeys'']\r\n2016-06-29 22:13:02,914 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''\r\n2016-06-29 22:13:02,918 [DEBUG] - Attempting to load assembly System.Management.Automation.resources failed:\r\n Could not load file or assembly 'System.Management.Automation.resources, Version=5.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.\r\n2016-06-29 22:13:02,921 [DEBUG] - Attempting to load assembly System.Management.Automation.resources failed:\r\n Could not load file or assembly 'System.Management.Automation.resources, Version=4.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.\r\n2016-06-29 22:13:02,922 [DEBUG] - Attempting to load assembly System.Management.Automation.resources failed:\r\n Could not load file or assembly 'System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.\r\n2016-06-29 22:13:02,925 [DEBUG] - Attempting to load assembly System.Management.Automation.resources failed:\r\n Could not load file or assembly 'System.Management.Automation.resources, Version=1.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.\r\n2016-06-29 22:13:03,367 [DEBUG] - Host version is 5.0.10586.0, PowerShell Version is '5.0.10586.122' and CLR Version is '4.0.30319.42000'.\r\n2016-06-29 22:13:03,663 [DEBUG] - Loading community extensions\r\n2016-06-29 22:13:03,676 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.\r\n2016-06-29 22:13:03,678 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.\r\n2016-06-29 22:13:03,680 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.\r\n2016-06-29 22:13:03,681 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.\r\n2016-06-29 22:13:03,683 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.\r\n2016-06-29 22:13:03,684 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.\r\n2016-06-29 22:13:03,685 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.\r\n2016-06-29 22:13:03,687 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.\r\n2016-06-29 22:13:03,688 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.\r\n2016-06-29 22:13:03,690 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.\r\n2016-06-29 22:13:03,691 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.\r\n2016-06-29 22:13:03,693 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.\r\n2016-06-29 22:13:03,694 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.\r\n2016-06-29 22:13:03,696 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.\r\n2016-06-29 22:13:03,697 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.\r\n2016-06-29 22:13:03,698 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.\r\n2016-06-29 22:13:03,700 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.\r\n2016-06-29 22:13:03,701 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.\r\n2016-06-29 22:13:03,703 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.\r\n2016-06-29 22:13:03,704 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.\r\n2016-06-29 22:13:03,706 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.\r\n2016-06-29 22:13:03,707 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.\r\n2016-06-29 22:13:03,709 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.\r\n2016-06-29 22:13:03,710 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.\r\n2016-06-29 22:13:03,712 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.\r\n2016-06-29 22:13:03,713 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.\r\n2016-06-29 22:13:03,715 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.\r\n2016-06-29 22:13:03,716 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.\r\n2016-06-29 22:13:03,718 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.\r\n2016-06-29 22:13:03,719 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.\r\n2016-06-29 22:13:03,721 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.\r\n2016-06-29 22:13:03,723 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.\r\n2016-06-29 22:13:03,724 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.\r\n2016-06-29 22:13:03,726 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.\r\n2016-06-29 22:13:03,728 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.\r\n2016-06-29 22:13:03,729 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.\r\n2016-06-29 22:13:03,730 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.\r\n2016-06-29 22:13:03,732 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.\r\n2016-06-29 22:13:03,733 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.\r\n2016-06-29 22:13:03,735 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.\r\n2016-06-29 22:13:03,736 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.\r\n2016-06-29 22:13:03,738 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.\r\n2016-06-29 22:13:03,740 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.\r\n2016-06-29 22:13:03,742 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.\r\n2016-06-29 22:13:03,743 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.\r\n2016-06-29 22:13:03,745 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.\r\n2016-06-29 22:13:03,746 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.\r\n2016-06-29 22:13:03,748 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.\r\n2016-06-29 22:13:03,750 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.\r\n2016-06-29 22:13:03,752 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.\r\n2016-06-29 22:13:03,753 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.\r\n2016-06-29 22:13:03,755 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.\r\n2016-06-29 22:13:03,756 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.\r\n2016-06-29 22:13:03,758 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.\r\n2016-06-29 22:13:03,759 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.\r\n2016-06-29 22:13:03,761 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.\r\n2016-06-29 22:13:03,762 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.\r\n2016-06-29 22:13:03,764 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.\r\n2016-06-29 22:13:03,765 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.\r\n2016-06-29 22:13:03,766 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.\r\n2016-06-29 22:13:03,768 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.\r\n2016-06-29 22:13:03,769 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.\r\n2016-06-29 22:13:03,771 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.\r\n2016-06-29 22:13:03,772 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.\r\n2016-06-29 22:13:03,774 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.\r\n2016-06-29 22:13:03,775 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.\r\n2016-06-29 22:13:03,776 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.\r\n2016-06-29 22:13:03,777 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.\r\n2016-06-29 22:13:03,779 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.\r\n2016-06-29 22:13:03,780 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.\r\n2016-06-29 22:13:03,782 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.\r\n2016-06-29 22:13:03,783 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.\r\n2016-06-29 22:13:03,785 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.\r\n2016-06-29 22:13:03,787 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.\r\n2016-06-29 22:13:03,788 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.\r\n2016-06-29 22:13:03,790 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.\r\n2016-06-29 22:13:03,791 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.\r\n2016-06-29 22:13:03,793 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.\r\n2016-06-29 22:13:03,794 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.\r\n2016-06-29 22:13:03,795 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.\r\n2016-06-29 22:13:03,797 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.\r\n2016-06-29 22:13:03,798 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.\r\n2016-06-29 22:13:03,800 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.\r\n2016-06-29 22:13:03,801 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.\r\n2016-06-29 22:13:03,803 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.\r\n2016-06-29 22:13:03,804 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.\r\n2016-06-29 22:13:03,806 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.\r\n2016-06-29 22:13:03,807 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.\r\n2016-06-29 22:13:03,809 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.\r\n2016-06-29 22:13:03,810 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.\r\n2016-06-29 22:13:03,811 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.\r\n2016-06-29 22:13:03,813 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.\r\n2016-06-29 22:13:03,814 [INFO ] - VERBOSE: Importing alias 'refreshenv'.\r\n2016-06-29 22:13:03,816 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.\r\n2016-06-29 22:13:03,865 [DEBUG] - Running 'ChocolateyScriptRunner' for win32-openssh v2016.05.30 with packageScript 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\chocolateyuninstall.ps1', packageFolder:'C:\\ProgramData\\chocolatey\\lib\\win32-openssh', installArguments: '', packageParameters: '/SSHServerFeature /DeleteConfigAndServerKeys',\r\n2016-06-29 22:13:03,877 [DEBUG] - Running 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\chocolateyuninstall.ps1'\r\n2016-06-29 22:13:03,901 [DEBUG] - Running 'Get-OSArchitectureWidth'\r\n2016-06-29 22:14:22,792 [INFO ] - /SSHServerFeature - Uninstalling SSH Server Feature if Present.\r\n2016-06-29 22:14:22,798 [INFO ] - /DeleteConfigAndServerKeys - Removing SSH Config and Server Keys.\r\n2016-06-29 22:14:23,231 [WARN ] - WARNING: Removing all config and server keys as requested by /DeleteConfigAndServerKeys\r\n2016-06-29 22:14:23,342 [INFO ] - \r\n2016-06-29 22:14:23,344 [INFO ] - No rules match the specified criteria.\r\n2016-06-29 22:14:23,346 [INFO ] - \r\n2016-06-29 22:14:23,902 [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\\win32-openssh\\tools\\chocolateyuninstall.ps1' -installArguments '' -packageParameters '/SSHServerFeature /DeleteConfigAndServerKeys''] exited with '1'.\r\n2016-06-29 22:14:23,907 [DEBUG] - Calling command ['\"C:\\WINDOWS\\System32\\shutdown.exe\" /a']\r\n2016-06-29 22:14:23,951 [DEBUG] - Command ['\"C:\\WINDOWS\\System32\\shutdown.exe\" /a'] exited with '1116'\r\n2016-06-29 22:14:23,953 [ERROR] - win32-openssh uninstall not successful.\r\n2016-06-29 22:14:23,958 [ERROR] - Error while running 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\chocolateyuninstall.ps1'.\r\n See log for details.\r\n2016-06-29 22:14:23,962 [ERROR] - win32-openssh not uninstalled. An error occurred during uninstall:\r\n win32-openssh uninstall not successful.\r\n2016-06-29 22:14:23,989 [WARN ] - \r\nChocolatey uninstalled 0/1 packages. 1 packages failed.\r\n See the log for details (C:\\ProgramData\\chocolatey\\logs\\chocolatey.log).\r\n2016-06-29 22:14:23,993 [INFO ] - \r\n2016-06-29 22:14:23,995 [ERROR] - Failures\r\n2016-06-29 22:14:23,998 [ERROR] -  - win32-openssh (exited 1) - Error while running 'C:\\ProgramData\\chocolatey\\lib\\win32-openssh\\tools\\chocolateyuninstall.ps1'.\r\n See log for details.\r\n2016-06-29 22:14:24,005 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...\r\n2016-06-29 22:14:24,029 [DEBUG] - Exiting with 1\r\n```"},"comment":{"url":"https://api.github.com/repos/DarwinJS/ChocoPackages/issues/comments/244512749","html_url":"https://github.com/DarwinJS/ChocoPackages/issues/6#issuecomment-244512749","issue_url":"https://api.github.com/repos/DarwinJS/ChocoPackages/issues/6","id":244512749,"user":{"login":"DarwinJS","id":11597190,"avatar_url":"https://avatars.githubusercontent.com/u/11597190?v=3","gravatar_id":"","url":"https://api.github.com/users/DarwinJS","html_url":"https://github.com/DarwinJS","followers_url":"https://api.github.com/users/DarwinJS/followers","following_url":"https://api.github.com/users/DarwinJS/following{/other_user}","gists_url":"https://api.github.com/users/DarwinJS/gists{/gist_id}","starred_url":"https://api.github.com/users/DarwinJS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarwinJS/subscriptions","organizations_url":"https://api.github.com/users/DarwinJS/orgs","repos_url":"https://api.github.com/users/DarwinJS/repos","events_url":"https://api.github.com/users/DarwinJS/events{/privacy}","received_events_url":"https://api.github.com/users/DarwinJS/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T23:59:19Z","updated_at":"2016-09-02T23:59:19Z","body":"This appears to be due to not stopping the ssh-agent which was new since the uninstall was created.\r\n\r\nShould be fixed in the version currently in moderation which you can run using:\r\n\r\n`choco install -y win32-openssh -version 2016.05.30.20160902 --params='/SSHServerFeature /KeyBasedAuthenticationFeature /UseNTRights'`\r\n"}}
{"actor":{"display_login":"DarwinJS"}}