Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PowerShell v5.1.14409.20180811 - Passed - Package Tests Results

PowerShell v5.1.14409.20180811 - Passed - Package Test Results

  • https://chocolatey.org/packages/PowerShell/5.1.14409.20180811
  • Tested 22 Feb 2019 16:39:22 +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\PowerShell\PowerShell.nupkg" checksum="EFEFB5386C6A693490A02BB189EA148D" />
<file path="C:\ProgramData\chocolatey\lib\PowerShell\PowerShell.nuspec" checksum="AF02EA0E1EBDDCA39032A03BA43C52E7" />
<file path="C:\ProgramData\chocolatey\lib\PowerShell\tools\ChocolateyInstall.ps1" checksum="08A23313BC54709344AE618CE6020BE3" />
<file path="C:\ProgramData\chocolatey\lib\PowerShell\tools\chocolateyUninstall.ps1" checksum="06BDEE8254D1120913F843855A88FA5B" />
</files>
</fileSnapshot>
2019-02-22 16:35:31,419 2404 [DEBUG] - XmlConfiguration is now operational
2019-02-22 16:35:31,637 2404 [INFO ] - ============================================================
2019-02-22 16:35:32,231 2404 [INFO ] - Chocolatey v0.10.12-beta-3-gb65f586
2019-02-22 16:35:32,262 2404 [DEBUG] - Chocolatey is running on Windows v 6.3.9600.0
2019-02-22 16:35:32,278 2404 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2019-02-22 16:35:32,278 2404 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2019-02-22 16:35:32,309 2404 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install PowerShell --version 5.1.14409.20180811 -fdvy --execution-timeout=2700 --allow-downgrade
2019-02-22 16:35:32,309 2404 [DEBUG] - Received arguments: install PowerShell --version 5.1.14409.20180811 -fdvy --execution-timeout=2700 --allow-downgrade
2019-02-22 16:35:32,497 2404 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2019-02-22 16:35:32,528 2404 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2019-02-22 16:35:32,559 2404 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2019-02-22 16:35:32,762 2404 [DEBUG] - The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2019-02-22 16:35:32,778 2404 [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-02-22 16:35:32,825 2404 [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='PowerShell'|
Version='5.1.14409.20180811'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='PowerShell'|
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.12.0'|
Information.ChocolateyProductVersion='0.10.12-beta-3-gb65f586'|
Information.FullName='choco, Version=0.10.12.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.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='False'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.RemovePackageInformationOnUninstall='False'|
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'|
PinCommand.Command='unknown'|OutdatedCommand.IgnorePinned='False'|
Proxy.BypassOnLocal='True'|
2019-02-22 16:35:32,840 2404 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
2019-02-22 16:35:32,856 2404 [INFO ] - Installing the following packages:
2019-02-22 16:35:32,872 2404 [INFO ] - PowerShell
2019-02-22 16:35:32,872 2404 [INFO ] - By installing you accept licenses for the packages.
2019-02-22 16:35:32,903 2404 [DEBUG] - Current environment values (may contain sensitive data):
2019-02-22 16:35:32,903 2404 [DEBUG] - * 'TMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
2019-02-22 16:35:32,903 2404 [DEBUG] - * 'TEMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
2019-02-22 16:35:32,918 2404 [DEBUG] - * 'ChocolateyLastPathUpdate'='Fri Feb 22 09:33:47 2019' ('User')
2019-02-22 16:35:32,918 2404 [DEBUG] - * 'FP_NO_HOST_CHECK'='NO' ('Machine')
2019-02-22 16:35:32,918 2404 [DEBUG] - * 'USERNAME'='SYSTEM' ('Machine')
2019-02-22 16:35:32,918 2404 [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-02-22 16:35:32,918 2404 [DEBUG] - * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine')
2019-02-22 16:35:32,934 2404 [DEBUG] - * 'TMP'='C:\Windows\TEMP' ('Machine')
2019-02-22 16:35:32,934 2404 [DEBUG] - * 'OS'='Windows_NT' ('Machine')
2019-02-22 16:35:32,934 2404 [DEBUG] - * 'windir'='C:\Windows' ('Machine')
2019-02-22 16:35:32,934 2404 [DEBUG] - * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine')
2019-02-22 16:35:32,950 2404 [DEBUG] - * 'TEMP'='C:\Windows\TEMP' ('Machine')
2019-02-22 16:35:32,950 2404 [DEBUG] - * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine')
2019-02-22 16:35:32,950 2404 [DEBUG] - * 'PSModulePath'='C:\Windows\system32\WindowsPowerShell\v1.0\Modules\' ('Machine')
2019-02-22 16:35:32,950 2404 [DEBUG] - * 'NUMBER_OF_PROCESSORS'='4' ('Machine')
2019-02-22 16:35:32,965 2404 [DEBUG] - * 'PROCESSOR_LEVEL'='6' ('Machine')
2019-02-22 16:35:32,965 2404 [DEBUG] - * 'PROCESSOR_IDENTIFIER'='Intel64 Family 6 Model 45 Stepping 7, GenuineIntel' ('Machine')
2019-02-22 16:35:32,965 2404 [DEBUG] - * 'PROCESSOR_REVISION'='2d07' ('Machine')
2019-02-22 16:35:32,965 2404 [DEBUG] - * 'HOME'='C:\Users\Administrator' ('Machine')
2019-02-22 16:35:32,981 2404 [DEBUG] - * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine')
2019-02-22 16:35:41,106 2404 [INFO ] - [NuGet] Installing 'PowerShell 5.1.14409.20180811'.
2019-02-22 16:35:41,138 2404 [DEBUG] - [NuGet] Added file 'ChocolateyInstall.ps1' to folder 'PowerShell\tools'.
2019-02-22 16:35:41,153 2404 [DEBUG] - [NuGet] Added file 'chocolateyUninstall.ps1' to folder 'PowerShell\tools'.
2019-02-22 16:35:41,326 2404 [DEBUG] - [NuGet] Added file 'PowerShell.nuspec' to folder 'PowerShell'.
2019-02-22 16:35:41,356 2404 [DEBUG] - [NuGet] Added file 'PowerShell.nupkg' to folder 'PowerShell'.
2019-02-22 16:35:41,356 2404 [INFO ] - [NuGet] Successfully installed 'PowerShell 5.1.14409.20180811'.
2019-02-22 16:35:41,372 2404 [INFO ] -
PowerShell v5.1.14409.20180811 (forced) [Approved]
2019-02-22 16:35:41,419 2404 [INFO ] - powershell package files install completed. Performing other installation steps.
2019-02-22 16:35:41,700 2404 [DEBUG] - Setting installer args for PowerShell
2019-02-22 16:35:41,700 2404 [DEBUG] - Setting package parameters for PowerShell
2019-02-22 16:35:41,700 2404 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\PowerShell\tools\ChocolateyInstall.ps1':
2019-02-22 16:35:41,747 2404 [DEBUG] - <#
See http://technet.microsoft.com/en-us/library/hh847769.aspx and http://technet.microsoft.com/en-us/library/hh847837.aspx
Windows PowerShell 5.0 runs on the following versions of Windows.
Windows 10, installed by default
Windows Server 2012 R2, install Windows Management Framework 5.0 to run Windows PowerShell 5.0
Windows 8.1, install Windows Management Framework 5.0 to run Windows PowerShell 5.0
Windows 7 with Service Pack 1, install Windows Management Framework 4.0 and THEN WMF 5.0 (as of 5.0.10105)
Windows Server 2008 R2 with Service Pack 1, install Windows Management Framework 5.0 (as of 5.0.10105)
Previous Windows versions - 5.0 is not supported.
Windows PowerShell 4.0 runs on the following versions of Windows.
Windows 8.1, installed by default
Windows Server 2012 R2, installed by default
Windows 7 with Service Pack 1, install Windows Management Framework 4.0 (http://go.microsoft.com/fwlink/?LinkId=293881) to run Windows PowerShell 4.0
Windows Server 2008 R2 with Service Pack 1, install Windows Management Framework 4.0 (http://go.microsoft.com/fwlink/?LinkId=293881) to run Windows PowerShell 4.0
Windows PowerShell 3.0 runs on the following versions of Windows.
Windows 8, installed by default
Windows Server 2012, installed by default
Windows 7 with Service Pack 1, install Windows Management Framework 3.0 to run Windows PowerShell 3.0
Windows Server 2008 R2 with Service Pack 1, install Windows Management Framework 3.0 to run Windows PowerShell 3.0
Windows Server 2008 with Service Pack 2, install Windows Management Framework 3.0 to run Windows PowerShell 3.0
#>
[string]$packageName="PowerShell"
[string]$installerType="msu"
[string]$installlogfilename = "$env:TEMP\PowerShell-Install-$(Get-date -format 'yyyyMMddhhmm').evtx"
[string]$ThisPackagePSHVersion = '5.1.14409.1005'
[string]$silentArgs="/quiet /norestart /log:`"$installlogfilename`""
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
[string]$urlWin81x86 = 'https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/Win8.1-KB3191564-x86.msu'
[string]$urlWin81x86checksum = 'F3430A90BE556A77A30BAB3AC36DC9B92A43055D5FCC5869DA3BFDA116DBD817'
[string]$urlWin2k12R2andWin81x64 = 'https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/Win8.1AndW2K12R2-KB3191564-x64.msu'
[string]$urlWin2k12R2andWin81x64checksum = 'A8D788FA31B02A999CC676FB546FC782E86C2A0ACD837976122A1891CEEE42C0'
[string]$urlWin7x86 = 'https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/Win7-KB3191566-x86.zip'
[string]$urlWin7x86checksum = 'EB7E2C4CE2C6CB24206474A6CB8610D9F4BD3A9301F1CD8963B4FF64E529F563'
[string]$urlWin2k8R2andWin7x64 = 'https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/Win7AndW2K8R2-KB3191566-x64.zip'
[string]$urlWin2k8R2andWin7x64checksum = 'F383C34AA65332662A17D95409A2DDEDADCEDA74427E35D05024CD0A6A2FA647'
[string]$urlWin2012 = 'https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/W2K12-KB3191565-x64.msu'
[string]$urlWin2012checksum = '4A1385642C1F08E3BE7BC70F4A9D74954E239317F50D1A7F60AA444D759D4F49'
[string]$ChecksumType = 'sha256'
[string[]] $validExitCodes = @(0, 3010) # 2359302 occurs if the package is already installed
$osversionLookup = @{
"5.1.2600" = "XP";
"5.1.3790" = "2003";
"6.0.6001" = "Vista/2008";
"6.1.7600" = "Win7/2008R2";
"6.1.7601" = "Win7 SP1/2008R2 SP1"; # SP1 or later.
"6.2.9200" = "Win8/2012";
"6.3.9600" = "Win8.1/2012R2";
"10.0.*" = "Windows 10/Server 2016"
}
function Install-PowerShell5([string]$urlx86, [string]$urlx64 = $null, [string]$checksumx86 = $null,[string]$checksumx64 = $null) {
$MinimumNet4Version = 378389
$Net4Version = (get-itemproperty "hklm:software\microsoft\net framework setup\ndp\v4\full" -ea silentlycontinue | Select -Expand Release -ea silentlycontinue)
if ($Net4Version -ge $MinimumNet4Version) {
Install-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" -url $urlx86 -url64 $urlx64 -checksum $checksumx86 -ChecksumType $ChecksumType -checksum64 $checksumx64 -ChecksumType64 $ChecksumType -validExitCodes $validExitCodes
Write-Warning "$packageName requires a reboot to complete the installation."
}
else {
throw ".NET Framework 4.5.2 or later required. Use package named `"dotnet4.5` to upgrade. Your .NET Release is `"$Net4Version`" but needs to be at least `"$MinimumNet4Version`"."
}
}
$os = Get-WmiObject Win32_OperatingSystem
$osVersion = $os.version
$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 will show us if we are running on Nano Server (Kernel version alone won't show this)
Write-Output "Running on: $ProductName, ($EditionId), Windows Kernel: $osVersion"
If ((get-service wuauserv).starttype -ieq 'Disabled')
{
Throw "Windows Update Service is disabled - PowerShell updates are distributed as windows updates and so require the service. Consider temporarily enabling it before calling this package and disabling again afterward."
}
try
{
if ($PSVersionTable -and ($PSVersionTable.PSVersion -ge [Version]$ThisPackagePSHVersion)) {
Write-Warning "PowerShell version, $($PSVersionTable.PSVersion), is already installed."
}
else {
#The following should not occur as PowerShell 5 is already installed
if( ([version]$osVersion).Major -eq "10" ) {
$osVersion = "$(([version]$osVersion).Major).$(([version]$osVersion).Minor).*"
}
Write-Output "Installing for OS: $($osversionLookup[$osVersion])"
switch ($osversionLookup[$osVersion]) {
"Vista/2008" {
Write-Warning "PowerShell 3 is the highest supported on Windows $($osversionLookup[$osVersion])."
Write-Output "You can install PowerShell 3 using these parameters: 'PowerShell -version 3.0.20121027'"
}
"Win7/2008R2" {
Write-Warning "PowerShell $ThisPackagePSHVersion Requires SP1 for Windows $($osversionLookup[$osVersion])."
Write-Warning "Update to SP1 and re-run this package to install WMF/PowerShell 5"
Write-Output "You can install PowerShell 3 using these parameters: 'PowerShell -version 3.0.20121027'"
}
"Win7 SP1/2008R2 SP1" {
#Special Procedures for WMF 5.1
$MinimumNet4Version = 378389
$Net4Version = (get-itemproperty "hklm:software\microsoft\net framework setup\ndp\v4\full" -ea silentlycontinue | Select -Expand Release -ea silentlycontinue)
if ($Net4Version -lt $MinimumNet4Version)
{
throw ".NET Framework 4.5.2 or later required. Use package named `"dotnet4.5` to upgrade. Your .NET Release is `"$MinimumNet4Version`" but needs to be at least `"$MinimumNet4Version`"."
}
Else
{
If ($PSVersionTable.PSVersion.Major -eq 3)
{
Write-Warning "Found WMF 3 On Win 7 or Server 2008 R2"
If (!(test-path env:ChocolateyForce))
{
Throw "This package will not install WMF 5.1 over 3.0 on Windows 7 or Server 2008 R2 Unless you use the -Force switch on the package command line."
}
Else
{
Write-Host " "
Write-Host " ***********************************************************************************************"
Write-Host " * This machine is running Windows or Server 2008 R2 with WMF 3 installed and *"
Write-Host " * -Force was used, Experimental PSModulePath Backup and Attempted Restore Will Be Performed *"
Write-Host " * What will be done: *"
Write-Host " * 1) The custom parts of the PSModulePath backed up to BackupPSModulePath *"
Write-Host " * 2) A fix up script that appends those values to the PSModulePath is written to: *"
Write-Host " * %WINDIR%\Temp\psmodulepathfixup.ps1 *"
Write-Host " * 3) A scheduled task is setup for the next reboot that runs the fix up script *"
Write-Host " * *"
Write-Host " * If you find that #3 does not work correctly, then you can use #1 or #2 with some of your *"
Write-Host " * own automation to recover from the situation *"
Write-Host " ***********************************************************************************************"
Write-Host " "
$StandardPathsToFilterOut = @('%ProgramFiles%\WindowsPowerShell\Modules','%SystemRoot%\System32\WindowsPowerShell\v1.0\Modules','%SystemRoot%\System32\WindowsPowerShell\v1.0\Modules\')
[string[]]$currentpsmodulepath = (get-Item 'hklm:system\CurrentControlSet\Control\Session Manager\Environment').GetValue("PsModulePath","Default",[Microsoft.WIN32.RegistryValueOptions]::DoNotExpandEnvironmentNames).split(';')
$FilteredList = ($CurrentPSModulePath | Where {$StandardPathsToFilterOut -inotcontains $_}) -join ';'
Write-host "PSModulePath contains the following values that are not in the PSH 5 default values: $FilteredList, backing them up to BackupPSModulePath Environment Variable"
If ($FilteredList) {New-Itemproperty 'hklm:system\CurrentControlSet\Control\Session Manager\Environment' -name 'BackupPsModulePath' -PropertyType 'ExpandString' -value "$FilteredList" | out-null}
$WMF5Over3WasForced = $True
}
}
Install-ChocolateyZipPackage -PackageName "$packagename" -unziplocation "$toolsdir" -url "$urlWin7x86" -checksum "$urlWin7x86checksum" -checksumtype "$ChecksumType" -url64bit "$urlWin2k8R2andWin7x64" -checksum64 "$urlWin2k8R2andWin7x64checksum" -checksumtype64 "$ChecksumType"
$x64MSUName = "$toolsdir\$(($urlWin2k8R2andWin7x64.split('/') | select -last 1).replace('.zip','.msu'))"
$x86MSUName = "$toolsdir\$(($urlwin7x86.split('/') | select -last 1).replace('.zip','.msu'))"
Write-Host "64-bit file: $x64MSUName"
Install-ChocolateyPackage "$packageName" 'MSU' "$SilentArgs" -url $x86MSUName -url64 $x64MSUName -validExitCodes $validExitCodes
If ($WMF5Over3WasForced)
{
If (!$FilteredList)
{
Write-Host "PSModulePath does not contain any customized paths that need to be preserved."
}
Else
{
$scriptlocation = "$env:windir\temp\psmodulepathfixup.ps1"
$code = "set-Itemproperty 'hklm:system\CurrentControlSet\Control\Session Manager\Environment' -name 'PsModulePath' -value `$((get-Item 'hklm:system\CurrentControlSet\Control\Session Manager\Environment').GetValue('PsModulePath','Default',[Microsoft.WIN32.RegistryValueOptions]::DoNotExpandEnvironmentNames)" + "+`';$(invoke-expression -command '(get-variable FilteredList).value')`'" + ')'
$code | out-file $scriptlocation
"start-sleep -s 2" | out-file $scriptlocation -append
"schtasks.exe /delete /f /tn `"PSModulePathFixUp`"" | out-file $scriptlocation -append
schtasks.exe /create /tn "PSModulePathFixUp" /ru SYSTEM /Sc ONSTART /tr "powershell.exe -file $scriptlocation"
Write-Host "`"$scriptlocation`" is scheduled to run on reboot."
Write-Warning "ATTENTION: This Computer Must Be Restarted."
}
}
}
}
"Win8/2012" {
if($os.ProductType -gt 1) {
#Windows 2012
Install-PowerShell5 -urlx86 "$urlWin2012" -checksumx86 $urlWin2012checksum
}
else {
#Windows 8
Write-Verbose "Windows 8 (not 8.1) is not supported"
throw "$packageName not supported on Windows 8. You must upgrade to Windows 8.1 to install WMF/PowerShell 5.0."
}
}
"Win8.1/2012R2" {
Install-PowerShell5 -urlx86 "$urlWin81x86" -checksumx86 $urlWin81x86checksum -urlx64 "$urlWin2k12R2andWin81x64" -checksumx64 $urlWin2k12R2andWin81x64checksum -checksumtype "$ChecksumType" -checksumtype64 "$ChecksumType"
}
"Windows 10/Server 2016" {
#Should never be reached.
Write-Warning "Windows 10 / Server 2016 has WMF/PowerShell 5 pre-installed which is maintained by Windows Updates."
}
default {
# Windows XP, Windows 2003, Windows Vista, or unknown?
throw "$packageName $ThisPackagePSHVersion is not supported on $ProductName, ($EditionId), Windows Kernel: $osVersion"
}
}
}
}
catch {
If (Test-Path "$installlogfilename")
{
Write-Host "Opps we had a error."
$logfileerrors = @(Get-WinEvent -Path "$installlogfilename" -oldest | where {($_.level -ge 2) -AND ($_.level -le 3)})
If ($logfileerrors.count -gt 0)
{
Write-Host "Found the following error(s) and warnings in the MSU log `"$installlogfilename`""
$logfileerrors | Format-List ID, Message | out-string | write-host
}
}
Throw $_.Exception
}
2019-02-22 16:35:42,262 2404 [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\PowerShell\tools\ChocolateyInstall.ps1' -installArguments '' -packageParameters ''']
2019-02-22 16:35:42,262 2404 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2019-02-22 16:35:43,793 2404 [DEBUG] - Host version is 4.0, PowerShell Version is '4.0' and CLR Version is '4.0.30319.33440'.
2019-02-22 16:35:44,185 2404 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2019-02-22 16:35:44,185 2404 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2019-02-22 16:35:44,185 2404 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2019-02-22 16:35:44,200 2404 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2019-02-22 16:35:44,200 2404 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2019-02-22 16:35:44,200 2404 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2019-02-22 16:35:44,200 2404 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2019-02-22 16:35:44,215 2404 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2019-02-22 16:35:44,215 2404 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2019-02-22 16:35:44,215 2404 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2019-02-22 16:35:44,215 2404 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2019-02-22 16:35:44,231 2404 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2019-02-22 16:35:44,231 2404 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2019-02-22 16:35:44,231 2404 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2019-02-22 16:35:44,231 2404 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2019-02-22 16:35:44,247 2404 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2019-02-22 16:35:44,247 2404 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2019-02-22 16:35:44,262 2404 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2019-02-22 16:35:44,262 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2019-02-22 16:35:44,278 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2019-02-22 16:35:44,278 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2019-02-22 16:35:44,278 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2019-02-22 16:35:44,278 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2019-02-22 16:35:44,293 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2019-02-22 16:35:44,293 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2019-02-22 16:35:44,293 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2019-02-22 16:35:44,309 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2019-02-22 16:35:44,309 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2019-02-22 16:35:44,309 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2019-02-22 16:35:44,309 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2019-02-22 16:35:44,325 2404 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2019-02-22 16:35:44,325 2404 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2019-02-22 16:35:44,325 2404 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2019-02-22 16:35:44,340 2404 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2019-02-22 16:35:44,340 2404 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2019-02-22 16:35:44,340 2404 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2019-02-22 16:35:44,356 2404 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-02-22 16:35:44,356 2404 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2019-02-22 16:35:44,356 2404 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2019-02-22 16:35:44,356 2404 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2019-02-22 16:35:44,372 2404 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2019-02-22 16:35:44,372 2404 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2019-02-22 16:35:44,372 2404 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2019-02-22 16:35:44,387 2404 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2019-02-22 16:35:44,387 2404 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2019-02-22 16:35:44,387 2404 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2019-02-22 16:35:44,403 2404 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2019-02-22 16:35:44,403 2404 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2019-02-22 16:35:44,403 2404 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2019-02-22 16:35:44,403 2404 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2019-02-22 16:35:44,419 2404 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2019-02-22 16:35:44,419 2404 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2019-02-22 16:35:44,419 2404 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2019-02-22 16:35:44,434 2404 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2019-02-22 16:35:44,450 2404 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2019-02-22 16:35:44,450 2404 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2019-02-22 16:35:44,450 2404 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2019-02-22 16:35:44,465 2404 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2019-02-22 16:35:44,465 2404 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2019-02-22 16:35:44,465 2404 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2019-02-22 16:35:44,465 2404 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2019-02-22 16:35:44,481 2404 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2019-02-22 16:35:44,481 2404 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2019-02-22 16:35:44,481 2404 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2019-02-22 16:35:44,497 2404 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2019-02-22 16:35:44,497 2404 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2019-02-22 16:35:44,497 2404 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2019-02-22 16:35:44,512 2404 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2019-02-22 16:35:44,512 2404 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2019-02-22 16:35:44,512 2404 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2019-02-22 16:35:44,512 2404 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2019-02-22 16:35:44,528 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2019-02-22 16:35:44,528 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2019-02-22 16:35:44,528 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2019-02-22 16:35:44,543 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2019-02-22 16:35:44,543 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2019-02-22 16:35:44,543 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2019-02-22 16:35:44,543 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2019-02-22 16:35:44,559 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2019-02-22 16:35:44,559 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2019-02-22 16:35:44,559 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2019-02-22 16:35:44,575 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2019-02-22 16:35:44,575 2404 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2019-02-22 16:35:44,575 2404 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2019-02-22 16:35:44,590 2404 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2019-02-22 16:35:44,590 2404 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2019-02-22 16:35:44,590 2404 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2019-02-22 16:35:44,590 2404 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2019-02-22 16:35:44,606 2404 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2019-02-22 16:35:44,606 2404 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-02-22 16:35:44,606 2404 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2019-02-22 16:35:44,622 2404 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2019-02-22 16:35:44,622 2404 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2019-02-22 16:35:44,622 2404 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2019-02-22 16:35:44,637 2404 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2019-02-22 16:35:44,637 2404 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2019-02-22 16:35:44,637 2404 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2019-02-22 16:35:44,653 2404 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2019-02-22 16:35:44,653 2404 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2019-02-22 16:35:44,653 2404 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2019-02-22 16:35:44,653 2404 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2019-02-22 16:35:44,668 2404 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2019-02-22 16:35:44,668 2404 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2019-02-22 16:35:44,668 2404 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2019-02-22 16:35:44,684 2404 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2019-02-22 16:35:44,684 2404 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2019-02-22 16:35:44,684 2404 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2019-02-22 16:35:44,700 2404 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2019-02-22 16:35:44,700 2404 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2019-02-22 16:35:44,700 2404 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2019-02-22 16:35:44,700 2404 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2019-02-22 16:35:44,715 2404 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2019-02-22 16:35:44,715 2404 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2019-02-22 16:35:44,715 2404 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2019-02-22 16:35:44,715 2404 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2019-02-22 16:35:44,731 2404 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2019-02-22 16:35:44,731 2404 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2019-02-22 16:35:44,747 2404 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2019-02-22 16:35:44,747 2404 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2019-02-22 16:35:44,747 2404 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2019-02-22 16:35:44,747 2404 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2019-02-22 16:35:44,762 2404 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2019-02-22 16:35:44,762 2404 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2019-02-22 16:35:44,762 2404 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2019-02-22 16:35:44,778 2404 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2019-02-22 16:35:44,778 2404 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2019-02-22 16:35:44,778 2404 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2019-02-22 16:35:44,793 2404 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2019-02-22 16:35:44,793 2404 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2019-02-22 16:35:44,793 2404 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2019-02-22 16:35:44,809 2404 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2019-02-22 16:35:44,809 2404 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2019-02-22 16:35:44,809 2404 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2019-02-22 16:35:44,809 2404 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2019-02-22 16:35:44,825 2404 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2019-02-22 16:35:44,825 2404 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2019-02-22 16:35:44,825 2404 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2019-02-22 16:35:44,825 2404 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2019-02-22 16:35:44,840 2404 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2019-02-22 16:35:44,840 2404 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2019-02-22 16:35:44,840 2404 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2019-02-22 16:35:44,840 2404 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2019-02-22 16:35:44,856 2404 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-02-22 16:35:44,856 2404 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2019-02-22 16:35:44,856 2404 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2019-02-22 16:35:44,872 2404 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2019-02-22 16:35:44,872 2404 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2019-02-22 16:35:44,872 2404 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2019-02-22 16:35:44,887 2404 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2019-02-22 16:35:44,887 2404 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2019-02-22 16:35:44,887 2404 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2019-02-22 16:35:44,887 2404 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2019-02-22 16:35:44,903 2404 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2019-02-22 16:35:44,903 2404 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2019-02-22 16:35:44,903 2404 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2019-02-22 16:35:44,918 2404 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2019-02-22 16:35:44,918 2404 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2019-02-22 16:35:44,918 2404 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2019-02-22 16:35:44,934 2404 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2019-02-22 16:35:45,122 2404 [DEBUG] - Running 'ChocolateyScriptRunner' for PowerShell v5.1.14409.20180811 with packageScript 'C:\ProgramData\chocolatey\lib\PowerShell\tools\ChocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\PowerShell', installArguments: '', packageParameters: '',
2019-02-22 16:35:45,168 2404 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\PowerShell\tools\ChocolateyInstall.ps1'
2019-02-22 16:35:46,012 2404 [INFO ] - Running on: Windows Server 2012 R2 Datacenter, (ServerDatacenter), Windows Kernel: 6.3.9600
2019-02-22 16:35:46,107 2404 [INFO ] - Installing for OS: Win8.1/2012R2
2019-02-22 16:35:46,356 2404 [DEBUG] - Running Install-ChocolateyPackage -url 'https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/Win8.1-KB3191564-x86.msu' -url64bit 'https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/Win8.1AndW2K12R2-KB3191564-x64.msu' -checksum 'F3430A90BE556A77A30BAB3AC36DC9B92A43055D5FCC5869DA3BFDA116DBD817' -checksumType 'sha256' -checksum64 'A8D788FA31B02A999CC676FB546FC782E86C2A0ACD837976122A1891CEEE42C0' -checksumType64 'sha256' -validExitCodes '0 3010' -packageName 'PowerShell' -fileType 'msu' -silentArgs '/quiet /norestart /log:"C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell-Install-201902220435.evtx"'
2019-02-22 16:35:46,544 2404 [DEBUG] - Running Get-ChocolateyWebFile -packageName 'PowerShell' -fileFullPath 'C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell\5.1.14409.20180811\PowerShellInstall.msu' -url 'https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/Win8.1-KB3191564-x86.msu' -url64bit 'https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/Win8.1AndW2K12R2-KB3191564-x64.msu' -checksum 'F3430A90BE556A77A30BAB3AC36DC9B92A43055D5FCC5869DA3BFDA116DBD817' -checksumType 'sha256' -checksum64 'A8D788FA31B02A999CC676FB546FC782E86C2A0ACD837976122A1891CEEE42C0' -checksumType64 'sha256' -options 'System.Collections.Hashtable' -getOriginalFileName 'True'
2019-02-22 16:35:46,590 2404 [DEBUG] - Running Get-ProcessorBits -compare '64'
2019-02-22 16:35:46,637 2404 [DEBUG] - CPU is 64 bit
2019-02-22 16:35:46,637 2404 [DEBUG] - Setting url to 'https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/Win8.1AndW2K12R2-KB3191564-x64.msu' and bitPackage to 64
2019-02-22 16:35:46,793 2404 [DEBUG] - Running Get-WebFileName -url 'https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/Win8.1AndW2K12R2-KB3191564-x64.msu' -defaultName 'PowerShellInstall.msu'
2019-02-22 16:35:47,340 2404 [DEBUG] - Using response url to determine file name. 'https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/Win8.1AndW2K12R2-KB3191564-x64.msu'
2019-02-22 16:35:47,373 2404 [DEBUG] - File name determined from url is 'Win8.1AndW2K12R2-KB3191564-x64.msu'
2019-02-22 16:35:47,418 2404 [DEBUG] - Running Get-WebHeaders -url 'https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/Win8.1AndW2K12R2-KB3191564-x64.msu' -ErrorAction 'Stop'
2019-02-22 16:35:47,435 2404 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2019-02-22 16:35:47,435 2404 [DEBUG] - Request Headers:
2019-02-22 16:35:47,512 2404 [DEBUG] - 'Accept':'*/*'
2019-02-22 16:35:47,512 2404 [DEBUG] - 'User-Agent':'chocolatey command line'
2019-02-22 16:35:47,544 2404 [DEBUG] - Response Headers:
2019-02-22 16:35:47,559 2404 [DEBUG] - 'Content-Disposition':'attachment'
2019-02-22 16:35:47,559 2404 [DEBUG] - 'Connection':'keep-alive'
2019-02-22 16:35:47,559 2404 [DEBUG] - 'Accept-Ranges':'bytes'
2019-02-22 16:35:47,575 2404 [DEBUG] - 'Content-Length':'19878906'
2019-02-22 16:35:47,575 2404 [DEBUG] - 'Content-Type':'application/octet-stream'
2019-02-22 16:35:47,575 2404 [DEBUG] - 'Date':'Fri, 22 Feb 2019 16:35:47 GMT'
2019-02-22 16:35:47,575 2404 [DEBUG] - 'ETag':'"525c43fbdb52d21:0"'
2019-02-22 16:35:47,590 2404 [DEBUG] - 'Last-Modified':'Sat, 10 Dec 2016 11:53:11 GMT'
2019-02-22 16:35:47,590 2404 [DEBUG] - 'Server':'Microsoft-IIS/8.5'
2019-02-22 16:35:47,637 2404 [INFO ] - Downloading PowerShell 64 bit
from 'https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/Win8.1AndW2K12R2-KB3191564-x64.msu'
2019-02-22 16:35:47,637 2404 [INFO ] -
2019-02-22 16:35:47,684 2404 [DEBUG] - Running Get-WebFile -url 'https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/Win8.1AndW2K12R2-KB3191564-x64.msu' -fileName 'C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell\5.1.14409.20180811\Win8.1AndW2K12R2-KB3191564-x64.msu' -options 'System.Collections.Hashtable'
2019-02-22 16:35:47,684 2404 [DEBUG] - Setting request timeout to 30000
2019-02-22 16:35:47,700 2404 [DEBUG] - Setting read/write timeout to 2700000
2019-02-22 16:35:47,700 2404 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2019-02-22 16:35:48,200 2404 [DEBUG] - Downloading https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/Win8.1AndW2K12R2-KB3191564-x64.msu to C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell\5.1.14409.20180811\Win8.1AndW2K12R2-KB3191564-x64.msu
2019-02-22 16:35:50,278 2404 [INFO ] -
2019-02-22 16:35:50,278 2404 [INFO ] - Download of Win8.1AndW2K12R2-KB3191564-x64.msu (18.96 MB) completed.
2019-02-22 16:35:50,294 2404 [INFO ] -
2019-02-22 16:35:54,965 2404 [DEBUG] - No runtime virus checking built into FOSS Chocolatey. Check out Pro/Business - https://chocolatey.org/compare
2019-02-22 16:35:54,981 2404 [DEBUG] - Verifying package provided checksum of 'A8D788FA31B02A999CC676FB546FC782E86C2A0ACD837976122A1891CEEE42C0' for 'C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell\5.1.14409.20180811\Win8.1AndW2K12R2-KB3191564-x64.msu'.
2019-02-22 16:35:54,998 2404 [DEBUG] - Running Get-ChecksumValid -file 'C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell\5.1.14409.20180811\Win8.1AndW2K12R2-KB3191564-x64.msu' -checksum 'A8D788FA31B02A999CC676FB546FC782E86C2A0ACD837976122A1891CEEE42C0' -checksumType 'sha256' -originalUrl 'https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/Win8.1AndW2K12R2-KB3191564-x64.msu'
2019-02-22 16:35:55,028 2404 [DEBUG] - checksum.exe found at 'C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe'
2019-02-22 16:35:55,028 2404 [DEBUG] - Executing command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="A8D788FA31B02A999CC676FB546FC782E86C2A0ACD837976122A1891CEEE42C0" -t="sha256" -f="C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell\5.1.14409.20180811\Win8.1AndW2K12R2-KB3191564-x64.msu"]
2019-02-22 16:35:55,747 2404 [DEBUG] - Command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="A8D788FA31B02A999CC676FB546FC782E86C2A0ACD837976122A1891CEEE42C0" -t="sha256" -f="C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell\5.1.14409.20180811\Win8.1AndW2K12R2-KB3191564-x64.msu"] exited with '0'.
2019-02-22 16:35:55,825 2404 [DEBUG] - Running Install-ChocolateyInstallPackage -packageName 'PowerShell' -fileType 'msu' -silentArgs '/quiet /norestart /log:"C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell-Install-201902220435.evtx"' -file 'C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell\5.1.14409.20180811\Win8.1AndW2K12R2-KB3191564-x64.msu' -validExitCodes '0 3010' -useOnlyPackageSilentArguments 'False'
2019-02-22 16:35:55,840 2404 [DEBUG] - Running Get-ProcessorBits -compare '32'
2019-02-22 16:35:55,856 2404 [INFO ] - Installing PowerShell...
2019-02-22 16:35:55,856 2404 [INFO ] -
2019-02-22 16:35:56,043 2404 [DEBUG] - Ensuring 'C:\Users\Administrator\AppData\Local\Temp\chocolatey' exists
2019-02-22 16:35:56,137 2404 [DEBUG] - Running Start-ChocolateyProcessAsAdmin -validExitCodes '0 3010' -workingDirectory 'C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell\5.1.14409.20180811' -statements '"C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell\5.1.14409.20180811\Win8.1AndW2K12R2-KB3191564-x64.msu" /quiet /norestart /log:"C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell-Install-201902220435.evtx" ' -exeToRun 'C:\Windows\System32\wusa.exe'
2019-02-22 16:35:56,232 2404 [DEBUG] - Test-ProcessAdminRights: returning True
2019-02-22 16:35:56,262 2404 [DEBUG] - Elevating permissions and running ["C:\Windows\System32\wusa.exe" "C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell\5.1.14409.20180811\Win8.1AndW2K12R2-KB3191564-x64.msu" /quiet /norestart /log:"C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell-Install-201902220435.evtx" ]. This may take a while, depending on the statements.
2019-02-22 16:38:36,637 2404 [DEBUG] - Command ["C:\Windows\System32\wusa.exe" "C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell\5.1.14409.20180811\Win8.1AndW2K12R2-KB3191564-x64.msu" /quiet /norestart /log:"C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell-Install-201902220435.evtx" ] exited with '3010'.
2019-02-22 16:38:36,701 2404 [DEBUG] - Finishing 'Start-ChocolateyProcessAsAdmin'
2019-02-22 16:38:36,715 2404 [INFO ] - PowerShell has been installed.
2019-02-22 16:38:36,715 2404 [INFO ] -
2019-02-22 16:38:36,731 2404 [WARN ] - WARNING: PowerShell requires a reboot to complete the installation.
2019-02-22 16:38:36,903 2404 [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\PowerShell\tools\ChocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '3010'.
2019-02-22 16:38:36,919 2404 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2019-02-22 16:38:36,965 2404 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2019-02-22 16:38:37,309 2404 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\PowerShell'
2019-02-22 16:38:37,309 2404 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\PowerShell\PowerShell.nupkg'
with checksum 'EFEFB5386C6A693490A02BB189EA148D'
2019-02-22 16:38:37,325 2404 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\PowerShell\PowerShell.nuspec'
with checksum 'AF02EA0E1EBDDCA39032A03BA43C52E7'
2019-02-22 16:38:37,325 2404 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\PowerShell\tools\ChocolateyInstall.ps1'
with checksum '08A23313BC54709344AE618CE6020BE3'
2019-02-22 16:38:37,325 2404 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\PowerShell\tools\chocolateyUninstall.ps1'
with checksum '06BDEE8254D1120913F843855A88FA5B'
2019-02-22 16:38:37,559 2404 [DEBUG] - Adding 'Hidden' attribute(s) to 'C:\ProgramData\chocolatey\.chocolatey'.
2019-02-22 16:38:37,669 2404 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\PowerShell.5.1.14409.20180811".
2019-02-22 16:38:37,700 2404 [DEBUG] - There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\PowerShell.5.1.14409.20180811\.files'
2019-02-22 16:38:37,731 2404 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\PowerShell.5.1.14409.20180811\.extra".
2019-02-22 16:38:37,731 2404 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\PowerShell.5.1.14409.20180811\.version".
2019-02-22 16:38:37,747 2404 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\PowerShell.5.1.14409.20180811\.sxs".
2019-02-22 16:38:37,747 2404 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\PowerShell.5.1.14409.20180811\.pin".
2019-02-22 16:38:37,762 2404 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2019-02-22 16:38:37,778 2404 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\PowerShell\.chocolateyPending".
2019-02-22 16:38:37,794 2404 [INFO ] - The install of powershell was successful.
2019-02-22 16:38:37,794 2404 [INFO ] - Software installed as 'msu', install location is likely default.
2019-02-22 16:38:37,809 2404 [DEBUG] - Attempting to delete file "C:\Users\Administrator\AppData\Local\NuGet\Cache\PowerShell.5.1.14409.20180811.nupkg".
2019-02-22 16:38:37,934 2404 [WARN ] -
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2019-02-22 16:38:37,934 2404 [INFO ] -
2019-02-22 16:38:37,934 2404 [WARN ] - Packages requiring reboot:
2019-02-22 16:38:37,950 2404 [WARN ] - - powershell (exit code 3010)
2019-02-22 16:38:37,950 2404 [WARN ] -
The recent package changes indicate a reboot is necessary.
Please reboot at your earliest convenience.
2019-02-22 16:38:37,965 2404 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2019-02-22 16:38:38,028 2404 [DEBUG] - Exiting with 3010
2019-02-22 16:39:11,637 2672 [DEBUG] - XmlConfiguration is now operational
2019-02-22 16:39:11,809 2672 [INFO ] - ============================================================
2019-02-22 16:39:12,559 2672 [INFO ] - Chocolatey v0.10.12-beta-3-gb65f586
2019-02-22 16:39:12,606 2672 [DEBUG] - Chocolatey is running on Windows v 6.3.9600.0
2019-02-22 16:39:12,622 2672 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2019-02-22 16:39:12,622 2672 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2019-02-22 16:39:12,669 2672 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" uninstall PowerShell --version 5.1.14409.20180811 -dvy --execution-timeout=2700
2019-02-22 16:39:12,669 2672 [DEBUG] - Received arguments: uninstall PowerShell --version 5.1.14409.20180811 -dvy --execution-timeout=2700
2019-02-22 16:39:12,857 2672 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2019-02-22 16:39:12,887 2672 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2019-02-22 16:39:12,919 2672 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2019-02-22 16:39:13,122 2672 [DEBUG] - The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2019-02-22 16:39:13,122 2672 [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-02-22 16:39:13,184 2672 [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='PowerShell'|
Version='5.1.14409.20180811'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='PowerShell'|
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.12.0'|
Information.ChocolateyProductVersion='0.10.12-beta-3-gb65f586'|
Information.FullName='choco, Version=0.10.12.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.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='False'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.RemovePackageInformationOnUninstall='False'|
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'|
PinCommand.Command='unknown'|OutdatedCommand.IgnorePinned='False'|
Proxy.BypassOnLocal='True'|
2019-02-22 16:39:13,200 2672 [DEBUG] - _ Chocolatey:ChocolateyUninstallCommand - Normal Run Mode _
2019-02-22 16:39:13,216 2672 [INFO ] - Uninstalling the following packages:
2019-02-22 16:39:13,216 2672 [INFO ] - PowerShell
2019-02-22 16:39:13,231 2672 [DEBUG] - Current environment values (may contain sensitive data):
2019-02-22 16:39:13,231 2672 [DEBUG] - * 'TMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
2019-02-22 16:39:13,247 2672 [DEBUG] - * 'TEMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
2019-02-22 16:39:13,247 2672 [DEBUG] - * 'ChocolateyLastPathUpdate'='Fri Feb 22 09:33:47 2019' ('User')
2019-02-22 16:39:13,247 2672 [DEBUG] - * 'FP_NO_HOST_CHECK'='NO' ('Machine')
2019-02-22 16:39:13,247 2672 [DEBUG] - * 'USERNAME'='SYSTEM' ('Machine')
2019-02-22 16:39:13,247 2672 [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-02-22 16:39:13,262 2672 [DEBUG] - * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine')
2019-02-22 16:39:13,262 2672 [DEBUG] - * 'TMP'='C:\Windows\TEMP' ('Machine')
2019-02-22 16:39:13,262 2672 [DEBUG] - * 'OS'='Windows_NT' ('Machine')
2019-02-22 16:39:13,262 2672 [DEBUG] - * 'windir'='C:\Windows' ('Machine')
2019-02-22 16:39:13,262 2672 [DEBUG] - * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine')
2019-02-22 16:39:13,262 2672 [DEBUG] - * 'TEMP'='C:\Windows\TEMP' ('Machine')
2019-02-22 16:39:13,278 2672 [DEBUG] - * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine')
2019-02-22 16:39:13,278 2672 [DEBUG] - * 'PSModulePath'='C:\Windows\system32\WindowsPowerShell\v1.0\Modules\' ('Machine')
2019-02-22 16:39:13,278 2672 [DEBUG] - * 'NUMBER_OF_PROCESSORS'='4' ('Machine')
2019-02-22 16:39:13,278 2672 [DEBUG] - * 'PROCESSOR_LEVEL'='6' ('Machine')
2019-02-22 16:39:13,278 2672 [DEBUG] - * 'PROCESSOR_IDENTIFIER'='Intel64 Family 6 Model 45 Stepping 7, GenuineIntel' ('Machine')
2019-02-22 16:39:13,293 2672 [DEBUG] - * 'PROCESSOR_REVISION'='2d07' ('Machine')
2019-02-22 16:39:13,293 2672 [DEBUG] - * 'HOME'='C:\Users\Administrator' ('Machine')
2019-02-22 16:39:13,293 2672 [DEBUG] - * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine')
2019-02-22 16:39:13,497 2672 [DEBUG] - Running list with the following filter = ''
2019-02-22 16:39:13,512 2672 [DEBUG] - --- Start of List ---
2019-02-22 16:39:13,825 2672 [DEBUG] - PowerShell 5.1.14409.20180811
2019-02-22 16:39:13,840 2672 [DEBUG] - --- End of List ---
2019-02-22 16:39:14,075 2672 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bkp".
2019-02-22 16:39:14,075 2672 [DEBUG] - Backing up existing PowerShell prior to operation.
2019-02-22 16:39:14,091 2672 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\PowerShell'
to 'C:\ProgramData\chocolatey\lib-bkp\PowerShell'
2019-02-22 16:39:16,106 2672 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\PowerShell".
2019-02-22 16:39:16,106 2672 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\PowerShell\PowerShell.nupkg"
to "C:\ProgramData\chocolatey\lib\PowerShell\PowerShell.nupkg".
2019-02-22 16:39:16,122 2672 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\PowerShell\PowerShell.nuspec"
to "C:\ProgramData\chocolatey\lib\PowerShell\PowerShell.nuspec".
2019-02-22 16:39:16,122 2672 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\PowerShell\tools".
2019-02-22 16:39:16,137 2672 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\PowerShell\tools\ChocolateyInstall.ps1"
to "C:\ProgramData\chocolatey\lib\PowerShell\tools\ChocolateyInstall.ps1".
2019-02-22 16:39:16,137 2672 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\PowerShell\tools\chocolateyUninstall.ps1"
to "C:\ProgramData\chocolatey\lib\PowerShell\tools\chocolateyUninstall.ps1".
2019-02-22 16:39:17,670 2672 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\PowerShell'
2019-02-22 16:39:17,670 2672 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\PowerShell\PowerShell.nupkg'
with checksum 'EFEFB5386C6A693490A02BB189EA148D'
2019-02-22 16:39:17,684 2672 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\PowerShell\PowerShell.nuspec'
with checksum 'AF02EA0E1EBDDCA39032A03BA43C52E7'
2019-02-22 16:39:17,684 2672 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\PowerShell\tools\ChocolateyInstall.ps1'
with checksum '08A23313BC54709344AE618CE6020BE3'
2019-02-22 16:39:17,684 2672 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\PowerShell\tools\chocolateyUninstall.ps1'
with checksum '06BDEE8254D1120913F843855A88FA5B'
2019-02-22 16:39:17,887 2672 [INFO ] - [NuGet] Uninstalling 'PowerShell 5.1.14409.20180811'.
2019-02-22 16:39:17,903 2672 [INFO ] -
PowerShell v5.1.14409.20180811
2019-02-22 16:39:17,997 2672 [DEBUG] - Setting installer args for PowerShell
2019-02-22 16:39:17,997 2672 [DEBUG] - Setting package parameters for PowerShell
2019-02-22 16:39:17,997 2672 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\PowerShell\tools\chocolateyUninstall.ps1':
2019-02-22 16:39:18,028 2672 [DEBUG] - Write-Debug ("Starting " + $MyInvocation.MyCommand.Definition)
[string]$packageName="PowerShell.5.0"
<#
Exit Codes:
3010: WSUSA executed the uninstall successfully.
2359303: The update was not found.
#>
#5.0.10586
$osVersion = (Get-WmiObject Win32_OperatingSystem).Version
if(-not (($osVersion -ge [version]"6.4") -or ($osVersion -ge [version]"10.0"))) {
Start-ChocolateyProcessAsAdmin "/uninstall /KB:3191566 /quiet /norestart /log:`"$env:TEMP\PowerShellUninstall5.evtx`"" -exeToRun "WUSA.exe" -validExitCodes @(3010,2359303)
Start-ChocolateyProcessAsAdmin "/uninstall /KB:3191565 /quiet /norestart /log:`"$env:TEMP\PowerShellUninstall5.evtx`"" -exeToRun "WUSA.exe" -validExitCodes @(3010,2359303)
Start-ChocolateyProcessAsAdmin "/uninstall /KB:3191564 /quiet /norestart /log:`"$env:TEMP\PowerShellUninstall5.evtx`"" -exeToRun "WUSA.exe" -validExitCodes @(3010,2359303)
}
Write-Warning "$packageName may require a reboot to complete the uninstallation."
2019-02-22 16:39:18,106 2672 [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\PowerShell\tools\chocolateyUninstall.ps1' -installArguments '' -packageParameters ''']
2019-02-22 16:39:18,122 2672 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2019-02-22 16:39:18,794 2672 [DEBUG] - Host version is 4.0, PowerShell Version is '4.0' and CLR Version is '4.0.30319.33440'.
2019-02-22 16:39:19,184 2672 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2019-02-22 16:39:19,184 2672 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2019-02-22 16:39:19,184 2672 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2019-02-22 16:39:19,200 2672 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2019-02-22 16:39:19,200 2672 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2019-02-22 16:39:19,200 2672 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2019-02-22 16:39:19,200 2672 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2019-02-22 16:39:19,215 2672 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2019-02-22 16:39:19,215 2672 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2019-02-22 16:39:19,215 2672 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2019-02-22 16:39:19,231 2672 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2019-02-22 16:39:19,231 2672 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2019-02-22 16:39:19,231 2672 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2019-02-22 16:39:19,247 2672 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2019-02-22 16:39:19,247 2672 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2019-02-22 16:39:19,247 2672 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2019-02-22 16:39:19,262 2672 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2019-02-22 16:39:19,262 2672 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2019-02-22 16:39:19,262 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2019-02-22 16:39:19,278 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2019-02-22 16:39:19,278 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2019-02-22 16:39:19,278 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2019-02-22 16:39:19,293 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2019-02-22 16:39:19,293 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2019-02-22 16:39:19,293 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2019-02-22 16:39:19,309 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2019-02-22 16:39:19,309 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2019-02-22 16:39:19,309 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2019-02-22 16:39:19,325 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2019-02-22 16:39:19,325 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2019-02-22 16:39:19,325 2672 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2019-02-22 16:39:19,325 2672 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2019-02-22 16:39:19,340 2672 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2019-02-22 16:39:19,340 2672 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2019-02-22 16:39:19,340 2672 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2019-02-22 16:39:19,356 2672 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2019-02-22 16:39:19,356 2672 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-02-22 16:39:19,356 2672 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2019-02-22 16:39:19,372 2672 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2019-02-22 16:39:19,372 2672 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2019-02-22 16:39:19,372 2672 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2019-02-22 16:39:19,372 2672 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2019-02-22 16:39:19,387 2672 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2019-02-22 16:39:19,387 2672 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2019-02-22 16:39:19,387 2672 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2019-02-22 16:39:19,403 2672 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2019-02-22 16:39:19,403 2672 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2019-02-22 16:39:19,403 2672 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2019-02-22 16:39:19,418 2672 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2019-02-22 16:39:19,418 2672 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2019-02-22 16:39:19,418 2672 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2019-02-22 16:39:19,434 2672 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2019-02-22 16:39:19,434 2672 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2019-02-22 16:39:19,450 2672 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2019-02-22 16:39:19,450 2672 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2019-02-22 16:39:19,465 2672 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2019-02-22 16:39:19,465 2672 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2019-02-22 16:39:19,465 2672 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2019-02-22 16:39:19,465 2672 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2019-02-22 16:39:19,481 2672 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2019-02-22 16:39:19,481 2672 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2019-02-22 16:39:19,481 2672 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2019-02-22 16:39:19,481 2672 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2019-02-22 16:39:19,497 2672 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2019-02-22 16:39:19,497 2672 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2019-02-22 16:39:19,497 2672 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2019-02-22 16:39:19,497 2672 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2019-02-22 16:39:19,512 2672 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2019-02-22 16:39:19,512 2672 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2019-02-22 16:39:19,512 2672 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2019-02-22 16:39:19,512 2672 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2019-02-22 16:39:19,528 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2019-02-22 16:39:19,528 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2019-02-22 16:39:19,528 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2019-02-22 16:39:19,543 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2019-02-22 16:39:19,543 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2019-02-22 16:39:19,543 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2019-02-22 16:39:19,543 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2019-02-22 16:39:19,559 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2019-02-22 16:39:19,559 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2019-02-22 16:39:19,559 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2019-02-22 16:39:19,559 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2019-02-22 16:39:19,575 2672 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2019-02-22 16:39:19,575 2672 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2019-02-22 16:39:19,575 2672 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2019-02-22 16:39:19,575 2672 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2019-02-22 16:39:19,590 2672 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2019-02-22 16:39:19,590 2672 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2019-02-22 16:39:19,590 2672 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2019-02-22 16:39:19,606 2672 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-02-22 16:39:19,606 2672 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2019-02-22 16:39:19,606 2672 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2019-02-22 16:39:19,622 2672 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2019-02-22 16:39:19,622 2672 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2019-02-22 16:39:19,622 2672 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2019-02-22 16:39:19,622 2672 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2019-02-22 16:39:19,637 2672 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2019-02-22 16:39:19,637 2672 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2019-02-22 16:39:19,637 2672 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2019-02-22 16:39:19,653 2672 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2019-02-22 16:39:19,653 2672 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2019-02-22 16:39:19,653 2672 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2019-02-22 16:39:19,669 2672 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2019-02-22 16:39:19,669 2672 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2019-02-22 16:39:19,669 2672 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2019-02-22 16:39:19,669 2672 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2019-02-22 16:39:19,684 2672 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2019-02-22 16:39:19,684 2672 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2019-02-22 16:39:19,684 2672 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2019-02-22 16:39:19,700 2672 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2019-02-22 16:39:19,700 2672 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2019-02-22 16:39:19,700 2672 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2019-02-22 16:39:19,715 2672 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2019-02-22 16:39:19,715 2672 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2019-02-22 16:39:19,715 2672 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2019-02-22 16:39:19,731 2672 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2019-02-22 16:39:19,731 2672 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2019-02-22 16:39:19,731 2672 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2019-02-22 16:39:19,747 2672 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2019-02-22 16:39:19,747 2672 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2019-02-22 16:39:19,747 2672 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2019-02-22 16:39:19,763 2672 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2019-02-22 16:39:19,763 2672 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2019-02-22 16:39:19,763 2672 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2019-02-22 16:39:19,778 2672 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2019-02-22 16:39:19,778 2672 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2019-02-22 16:39:19,778 2672 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2019-02-22 16:39:19,778 2672 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2019-02-22 16:39:19,793 2672 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2019-02-22 16:39:19,793 2672 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2019-02-22 16:39:19,793 2672 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2019-02-22 16:39:19,809 2672 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2019-02-22 16:39:19,809 2672 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2019-02-22 16:39:19,809 2672 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2019-02-22 16:39:19,825 2672 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2019-02-22 16:39:19,825 2672 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2019-02-22 16:39:19,825 2672 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2019-02-22 16:39:19,825 2672 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2019-02-22 16:39:19,840 2672 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2019-02-22 16:39:19,840 2672 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2019-02-22 16:39:19,840 2672 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2019-02-22 16:39:19,856 2672 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2019-02-22 16:39:19,856 2672 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-02-22 16:39:19,856 2672 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2019-02-22 16:39:19,872 2672 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2019-02-22 16:39:19,872 2672 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2019-02-22 16:39:19,872 2672 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2019-02-22 16:39:19,887 2672 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2019-02-22 16:39:19,887 2672 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2019-02-22 16:39:19,887 2672 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2019-02-22 16:39:19,887 2672 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2019-02-22 16:39:19,903 2672 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2019-02-22 16:39:19,903 2672 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2019-02-22 16:39:19,903 2672 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2019-02-22 16:39:19,918 2672 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2019-02-22 16:39:19,918 2672 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2019-02-22 16:39:19,918 2672 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2019-02-22 16:39:19,934 2672 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2019-02-22 16:39:19,934 2672 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2019-02-22 16:39:20,059 2672 [DEBUG] - Running 'ChocolateyScriptRunner' for PowerShell v5.1.14409.20180811 with packageScript 'C:\ProgramData\chocolatey\lib\PowerShell\tools\chocolateyUninstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\PowerShell', installArguments: '', packageParameters: '',
2019-02-22 16:39:20,106 2672 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\PowerShell\tools\chocolateyUninstall.ps1'
2019-02-22 16:39:20,138 2672 [DEBUG] - Starting C:\ProgramData\chocolatey\lib\PowerShell\tools\chocolateyUninstall.ps1
2019-02-22 16:39:20,435 2672 [WARN ] - WARNING: PowerShell.5.0 may require a reboot to complete the uninstallation.
2019-02-22 16:39:20,481 2672 [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\PowerShell\tools\chocolateyUninstall.ps1' -installArguments '' -packageParameters '''] exited with '0'.
2019-02-22 16:39:20,528 2672 [INFO ] - Skipping auto uninstaller - No registry snapshot.
2019-02-22 16:39:20,544 2672 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2019-02-22 16:39:20,591 2672 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2019-02-22 16:39:20,622 2672 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bkp\powershell".
2019-02-22 16:39:20,700 2672 [DEBUG] - [NuGet] Removed file 'ChocolateyInstall.ps1' to folder 'C:\ProgramData\chocolatey\lib\PowerShell\tools'.
2019-02-22 16:39:20,715 2672 [DEBUG] - [NuGet] Removed file 'chocolateyUninstall.ps1' to folder 'C:\ProgramData\chocolatey\lib\PowerShell\tools'.
2019-02-22 16:39:20,715 2672 [DEBUG] - [NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\PowerShell\tools'.
2019-02-22 16:39:20,731 2672 [DEBUG] - [NuGet] Removed file 'PowerShell.nuspec' to folder 'C:\ProgramData\chocolatey\lib\PowerShell'.
2019-02-22 16:39:20,731 2672 [DEBUG] - [NuGet] Removed file 'PowerShell.nupkg' to folder 'C:\ProgramData\chocolatey\lib\PowerShell'.
2019-02-22 16:39:20,731 2672 [DEBUG] - [NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\PowerShell'.
2019-02-22 16:39:20,747 2672 [INFO ] - [NuGet] Successfully uninstalled 'PowerShell 5.1.14409.20180811'.
2019-02-22 16:39:20,747 2672 [INFO ] - PowerShell has been successfully uninstalled.
2019-02-22 16:39:20,762 2672 [DEBUG] - Removing nupkg if it still exists.
2019-02-22 16:39:20,778 2672 [DEBUG] - Ensuring removal of installation files.
2019-02-22 16:39:20,778 2672 [DEBUG] - Ensuring removal of package cache files.
2019-02-22 16:39:20,794 2672 [DEBUG] - Attempting to delete directory "C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell\5.1.14409.20180811".
2019-02-22 16:39:20,856 2672 [WARN ] -
Chocolatey uninstalled 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2019-02-22 16:39:20,872 2672 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2019-02-22 16:39:20,904 2672 [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.