Skip to content

Instantly share code, notes, and snippets.

@choco-bot
Created August 15, 2021 17:59
Embed
What would you like to do?
RSAT v2.1809.0.20210815 - Passed - Package Tests Results

RSAT v2.1809.0.20210815 - Passed - Package Test Results

  • https://community.chocolatey.org/packages/RSAT/2.1809.0.20210815
  • Tested 15 Aug 2021 17:59:10 +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.5.0-44-g6af96fb
  • 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\RSAT\RSAT.nupkg" checksum="F816F1640D0AFA4BC87407C509384210" />
<file path="C:\ProgramData\chocolatey\lib\RSAT\RSAT.nuspec" checksum="D25F60C7E93060705F03ABF230CC564A" />
<file path="C:\ProgramData\chocolatey\lib\RSAT\tools\chocolateyinstall.ps1" checksum="4DC6D36513DF39888B8C3F9468AB9D05" />
<file path="C:\ProgramData\chocolatey\lib\RSAT\tools\chocolateyuninstall.ps1" checksum="A87770C9F0B0566F5B7AE1F25EE6F92D" />
</files>
</fileSnapshot>
2021-08-15 17:58:50,340 2400 [DEBUG] - XmlConfiguration is now operational
2021-08-15 17:58:50,403 2400 [INFO ] - ============================================================
2021-08-15 17:58:50,715 2400 [INFO ] - Chocolatey v0.10.16-beta
2021-08-15 17:58:50,715 2400 [DEBUG] - Chocolatey is running on Windows v 6.3.9600.0
2021-08-15 17:58:50,732 2400 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2021-08-15 17:58:50,732 2400 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2021-08-15 17:58:50,732 2400 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install RSAT --version 2.1809.0.20210815 -fdvy --execution-timeout=2700 --allow-downgrade
2021-08-15 17:58:50,746 2400 [DEBUG] - Received arguments: install RSAT --version 2.1809.0.20210815 -fdvy --execution-timeout=2700 --allow-downgrade
2021-08-15 17:58:50,778 2400 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2021-08-15 17:58:50,794 2400 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2021-08-15 17:58:50,794 2400 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2021-08-15 17:58:50,856 2400 [DEBUG] - Performing validation checks.
2021-08-15 17:58:50,856 2400 [DEBUG] - Global Configuration Validation Checks:
2021-08-15 17:58:50,856 2400 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked
2021-08-15 17:58:50,856 2400 [DEBUG] - System State Validation Checks:
2021-08-15 17:58:50,856 2400 [DEBUG] - Reboot Requirement Checks:
2021-08-15 17:58:50,871 2400 [DEBUG] - - Pending Computer Rename = Checked
2021-08-15 17:58:50,871 2400 [DEBUG] - - Pending Component Based Servicing = Checked
2021-08-15 17:58:50,871 2400 [DEBUG] - - Pending Windows Auto Update = Checked
2021-08-15 17:58:50,871 2400 [DEBUG] - - Pending File Rename Operations = Ignored
2021-08-15 17:58:50,871 2400 [DEBUG] - - Pending Windows Package Installer = Checked
2021-08-15 17:58:50,871 2400 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked
2021-08-15 17:58:50,871 2400 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s).
2021-08-15 17:58:50,871 2400 [DEBUG] - The source 'c:\cached-packages;https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2021-08-15 17:58:50,871 2400 [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.
2021-08-15 17:58:50,903 2400 [DEBUG] - Configuration: CommandName='install'|
CacheLocation='C:\Users\Administrator\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='c:\cached-packages;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='RSAT'|Version='2.1809.0.20210815'|
AllVersions='False'|SkipPackageInstallProvider='False'|
PackageNames='RSAT'|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.16.0'|
Information.ChocolateyProductVersion='0.10.16-beta'|
Information.FullName='choco, Version=0.10.16.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'|
Information.CurrentDirectory='C:\Windows\system32'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='True'|Features.LogWithoutColor='False'|
Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseEnhancedExitCodes='False'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='False'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.SkipPackageUpgradesWhenNotInstalled='False'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ExitOnRebootDetected='False'|
Features.LogValidationResultsOnWarnings='True'|
Features.UsePackageRepositoryOptimizations='True'|
Features.ScriptsCheckLastExitCode='False'|
ListCommand.LocalOnly='False'|
ListCommand.IdOnly='False'|ListCommand.IncludeRegistryPrograms='False'|
ListCommand.PageSize='25'|ListCommand.Exact='False'|
ListCommand.ByIdOnly='False'|ListCommand.ByTagOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
SourceCommand.VisibleToAdminsOnly='False'|
FeatureCommand.Command='unknown'|ConfigCommand.Command='unknown'|
ApiKeyCommand.Remove='False'|PinCommand.Command='unknown'|
OutdatedCommand.IgnorePinned='False'|Proxy.BypassOnLocal='True'|
2021-08-15 17:58:50,903 2400 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
2021-08-15 17:58:50,903 2400 [INFO ] - Installing the following packages:
2021-08-15 17:58:50,903 2400 [INFO ] - RSAT
2021-08-15 17:58:50,903 2400 [INFO ] - By installing you accept licenses for the packages.
2021-08-15 17:58:50,919 2400 [DEBUG] - Current environment values (may contain sensitive data):
2021-08-15 17:58:50,919 2400 [DEBUG] - * 'TMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
2021-08-15 17:58:50,919 2400 [DEBUG] - * 'TEMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
2021-08-15 17:58:50,919 2400 [DEBUG] - * 'ChocolateyLastPathUpdate'='132684005215077751' ('User')
2021-08-15 17:58:50,919 2400 [DEBUG] - * 'FP_NO_HOST_CHECK'='NO' ('Machine')
2021-08-15 17:58:50,919 2400 [DEBUG] - * 'USERNAME'='SYSTEM' ('Machine')
2021-08-15 17:58:50,919 2400 [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')
2021-08-15 17:58:50,919 2400 [DEBUG] - * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine')
2021-08-15 17:58:50,919 2400 [DEBUG] - * 'TMP'='C:\Windows\TEMP' ('Machine')
2021-08-15 17:58:50,919 2400 [DEBUG] - * 'OS'='Windows_NT' ('Machine')
2021-08-15 17:58:50,919 2400 [DEBUG] - * 'windir'='C:\Windows' ('Machine')
2021-08-15 17:58:50,919 2400 [DEBUG] - * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine')
2021-08-15 17:58:50,919 2400 [DEBUG] - * 'TEMP'='C:\Windows\TEMP' ('Machine')
2021-08-15 17:58:50,919 2400 [DEBUG] - * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine')
2021-08-15 17:58:50,919 2400 [DEBUG] - * 'PSModulePath'='C:\Windows\system32\WindowsPowerShell\v1.0\Modules\' ('Machine')
2021-08-15 17:58:50,919 2400 [DEBUG] - * 'NUMBER_OF_PROCESSORS'='1' ('Machine')
2021-08-15 17:58:50,919 2400 [DEBUG] - * 'PROCESSOR_LEVEL'='6' ('Machine')
2021-08-15 17:58:50,919 2400 [DEBUG] - * 'PROCESSOR_IDENTIFIER'='Intel64 Family 6 Model 60 Stepping 3, GenuineIntel' ('Machine')
2021-08-15 17:58:50,919 2400 [DEBUG] - * 'PROCESSOR_REVISION'='3c03' ('Machine')
2021-08-15 17:58:50,919 2400 [DEBUG] - * 'HOME'='C:\Users\Administrator' ('Machine')
2021-08-15 17:58:50,919 2400 [DEBUG] - * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine')
2021-08-15 17:58:53,091 2400 [INFO ] - [NuGet] Installing 'RSAT 2.1809.0.20210815'.
2021-08-15 17:58:53,091 2400 [DEBUG] - [NuGet] Added file 'chocolateyinstall.ps1' to folder 'RSAT\tools'.
2021-08-15 17:58:53,091 2400 [DEBUG] - [NuGet] Added file 'chocolateyuninstall.ps1' to folder 'RSAT\tools'.
2021-08-15 17:58:53,091 2400 [DEBUG] - [NuGet] Added file 'RSAT.nupkg' to folder 'RSAT'.
2021-08-15 17:58:53,341 2400 [DEBUG] - [NuGet] Added file 'RSAT.nuspec' to folder 'RSAT'.
2021-08-15 17:58:53,341 2400 [INFO ] - [NuGet] Successfully installed 'RSAT 2.1809.0.20210815'.
2021-08-15 17:58:53,341 2400 [INFO ] -
RSAT v2.1809.0.20210815 (forced)
2021-08-15 17:58:53,356 2400 [INFO ] - rsat package files install completed. Performing other installation steps.
2021-08-15 17:58:53,403 2400 [DEBUG] - Setting installer args for RSAT
2021-08-15 17:58:53,403 2400 [DEBUG] - Setting package parameters for RSAT
2021-08-15 17:58:53,403 2400 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\RSAT\tools\chocolateyinstall.ps1':
2021-08-15 17:58:53,419 2400 [DEBUG] - $ErrorActionPreference = 'Stop'
$1809Build = 17763
$osInfo = Get-WmiObject Win32_OperatingSystem | Select-Object Version, ProductType, Caption, OperatingSystemSKU, BuildNumber
Write-host "Detected: $($osInfo.Caption)" -ForegroundColor Cyan
$osInfo.Version = [version]$osInfo.Version
if ($osInfo.Version -lt [version]'6.0') {
Throw 'The Remote System Administration Toolkit (RSAT) requires Windows Vista or later.'
}
# OperatingSystemSKU = 175 Windows 10 Enterprise multi-session, see also:
# https://docs.microsoft.com/en-us/azure/virtual-desktop/configure-automatic-updates#create-a-query-based-collection
elseif ($osInfo.ProductType -ne 1 -and $osInfo.OperatingSystemSKU -ne 175) {
Write-Warning 'The Remote System Administration Toolkit (RSAT) is built into Windows Server, so no need for an actual install.'
Return
}
# See here for determining the edition of Windows via SKU:
# https://superuser.com/questions/1328506/windows-edition-on-non-english-systems
# The list below are the valid SKUs for Windows editions that can have RSAT
elseif ((1,4,6,16,27,28,48,49,70,72,84,103,121,122,125,126,129,130,133,161,162,175) -notcontains ($osInfo.OperatingSystemSKU)) {
Throw 'The Remote System Administration Toolkit (RSAT) can only install on Professional, Enterprise, or Education editions of Windows.'
}
$web = New-Object Net.WebClient
if ($osInfo.Version.Major -eq 6) {
switch ($osInfo.Version.Minor) {
0 { # Vista
Throw "$($osInfo.Caption) is not supported."}
1 { # Win7
Throw "$($osInfo.Caption) is not supported."}
2 { # Win8
$html = $web.DownloadString('https://www.microsoft.com/download/confirmation.aspx?id=28972')
$Checksum = '050aefe2568de7e9e28d75c6752a8287cbbb0f2a0f2be5dd0e0c75ba29aff941'
$Checksum64 = '9799352c104d56a3bb7e5f931dadb4aa3361fce3d41be23699787a23347f207a' }
3 { # Win8.1
$html = $web.DownloadString('https://www.microsoft.com/download/confirmation.aspx?id=39296')
$Checksum = 'eb62cfabdc0c3231a1ba2d5310f4ff1daf6294b89b143cc10b255becb1da5b75'
$Checksum64 = 'dea5540a59e018e04e088afb2aa326fb690d27a983fd3cbffefbfcfdde20a47d' }
}
} elseif ($osInfo.Version.Major -eq 10) { # Windows 10
$pp = Get-PackageParameters
if ($osInfo.BuildNumber -lt $1809Build) {
switch ($pp.Server) {
'2016' { $WS = '2016'
$Checksum = '6d46ef85cb63cf5c949706b7890bc1bb56a8c30506700262fe5ef4999b7380f3'
$Checksum64 = '4aeb716f301783e56739f9b0a361e2aa4f1e1d6b947b76c1d61af70b0ff0b4c7' }
'1709' { $WS = '1709'
$Checksum = 'b62f131993908e24f093c8d630b84d49a829d9f7922dab17aa2f42867b096c43'
$Checksum64 = '72b34e1bef5c790081ffda24e18a5eb3cbe26944baee604aae0deddd8bfe6ebc' }
default { $WS = '1803'
$Checksum = '968c20e6492b89fe72fe1cf496b90b7106492258a02d1333a6aa810be7cf5b49'
$Checksum64 = '3908b653c8bc5567684ab2779ee110dc2c0d56d2a33a329fe5460ecce55aaebe' }
}
$html = $web.DownloadString('https://www.microsoft.com/download/confirmation.aspx?id=45520')
Write-Host "Installing tools for managing Windows Server $WS." -ForegroundColor Cyan
}
}
If (($osInfo.Version.Major -ne 10) -or ($osInfo.BuildNumber -lt $1809Build)) {
$urls = select-string '"https[^"]*msu"' -input $html -AllMatches |
ForEach-Object {$_.matches} |
ForEach-Object {$_.value.trim('"')} |
Select-Object -unique |
Where-Object {$_ -match "WS_?$WS"}
$url = $urls | where-Object {$_ -match 'x86' }
$url64 = $urls | where-Object {$_ -match 'x64' }
$packageArgs = @{
PackageName = $env:ChocolateyPackageName
FileType = 'msu'
Url = $url
Url64bit = $url64
Checksum = $Checksum
Checksum64 = $Checksum64
ChecksumType = 'sha256'
SilentArgs = '/quiet /norestart'
ValidExitCodes= @(0,3010,-2146233087,2359302)
}
Install-ChocolateyPackage @packageArgs
} else {
# Based on https://github.com/imabdk/Powershell/blob/master/Install-RSATv1809v1903v1909v2004v20H2.ps1
$WSUSKey = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU'
if (Test-Path $WSUSKey) {
Write-Verbose 'Saving UseWUServer value and temporarily disabling WSUS.'
$Save = (Get-ItemProperty -Path $WSUSKey -Name 'UseWUServer' -ErrorAction SilentlyContinue).UseWUServer
Set-ItemProperty -Path $WSUSKey -Name 'UseWUServer' -Value 0
Restart-Service wuauserv
}
$WhereArray = @()
if ($pp.AD) {$WhereArray += '($_.Name -like "Rsat.ActiveDirectory*")'}
if ($pp.GP) {$WhereArray += '($_.Name -like "Rsat.GroupPolicy*")'}
if ($pp.SM) {$WhereArray += '($_.Name -like "Rsat.ServerManager*")'}
if ($pp.CS) {$WhereArray += '($_.Name -like "Rsat.CertificateServices*")'}
if ($pp.RD) {$WhereArray += '($_.Name -like "Rsat.RemoteDesktop*")'}
if ($pp.FS) {$WhereArray += '($_.Name -like "Rsat.FileServices*")'}
if ($pp.DNS) {$WhereArray += '($_.Name -like "Rsat.DNS*")'}
if ($pp.DHCP) {$WhereArray += '($_.Name -like "Rsat.DHCP*")'}
if ($pp.WSUS) {$WhereArray += '($_.Name -like "Rsat.WSUS*")'}
if ($pp.BL) {$WhereArray += '($_.Name -like "Rsat.BitLocker*")'}
if ($WhereArray.count -eq 0) {
$WhereArray += '$_.Name -like "Rsat*"'
}
$WhereString = '$_.State -eq "NotPresent" -AND (' + ($WhereArray -join ' -OR ') + ')'
$Tools = Get-WindowsCapability -Online | Where-Object $([scriptblock]::Create($WhereString))
foreach ($Item in $Tools) {
try {
Write-Host "`nAdding $($Item.Name) to Windows"
$DISMobject = Add-WindowsCapability -Online -Name $Item.Name
if ($DISMobject.RestartNeeded) {
Write-Warning 'A reboot is required.'
}
}
catch { Write-Warning -Message $_.Exception.Message; break }
}
Write-Host "`n"
Write-Verbose "Windows Feature install log is at $($DISMobject.LogPath)"
if (Test-Path $WSUSKey) {
If ($Save -ne $null) {
Write-Verbose 'Restoring UseWUServer value and re-enabling WSUS.'
Set-ItemProperty -Path $WSUSKey -Name 'UseWUServer' -Value $Save
} else {
Remove-ItemProperty -Path $WSUSKey -Name 'UseWUServer' -Force
}
Restart-Service wuauserv
}
}
2021-08-15 17:58:53,434 2400 [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\RSAT\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters ''']
2021-08-15 17:58:53,434 2400 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2021-08-15 17:58:53,622 2400 [DEBUG] - Host version is 4.0, PowerShell Version is '4.0' and CLR Version is '4.0.30319.34014'.
2021-08-15 17:58:53,732 2400 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2021-08-15 17:58:53,732 2400 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2021-08-15 17:58:53,732 2400 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2021-08-15 17:58:53,732 2400 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2021-08-15 17:58:53,732 2400 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2021-08-15 17:58:53,732 2400 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2021-08-15 17:58:53,732 2400 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2021-08-15 17:58:53,732 2400 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2021-08-15 17:58:53,732 2400 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2021-08-15 17:58:53,732 2400 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2021-08-15 17:58:53,732 2400 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2021-08-15 17:58:53,732 2400 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2021-08-15 17:58:53,732 2400 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2021-08-15 17:58:53,746 2400 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2021-08-15 17:58:53,762 2400 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2021-08-15 17:58:53,762 2400 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2021-08-15 17:58:53,762 2400 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2021-08-15 17:58:53,762 2400 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2021-08-15 17:58:53,762 2400 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2021-08-15 17:58:53,762 2400 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2021-08-15 17:58:53,762 2400 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2021-08-15 17:58:53,762 2400 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2021-08-15 17:58:53,762 2400 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2021-08-15 17:58:53,762 2400 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2021-08-15 17:58:53,762 2400 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2021-08-15 17:58:53,762 2400 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2021-08-15 17:58:53,762 2400 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2021-08-15 17:58:53,762 2400 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2021-08-15 17:58:53,762 2400 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2021-08-15 17:58:53,794 2400 [DEBUG] - Loading community extensions
2021-08-15 17:58:53,794 2400 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
2021-08-15 17:58:53,794 2400 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
2021-08-15 17:58:53,825 2400 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2021-08-15 17:58:53,825 2400 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2021-08-15 17:58:53,825 2400 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2021-08-15 17:58:53,825 2400 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2021-08-15 17:58:53,825 2400 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2021-08-15 17:58:53,825 2400 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2021-08-15 17:58:53,825 2400 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2021-08-15 17:58:53,825 2400 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2021-08-15 17:58:53,841 2400 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2021-08-15 17:58:53,856 2400 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2021-08-15 17:58:53,856 2400 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2021-08-15 17:58:53,856 2400 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2021-08-15 17:58:53,856 2400 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2021-08-15 17:58:53,856 2400 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2021-08-15 17:58:53,856 2400 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2021-08-15 17:58:53,856 2400 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2021-08-15 17:58:53,856 2400 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2021-08-15 17:58:53,856 2400 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2021-08-15 17:58:53,856 2400 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2021-08-15 17:58:53,856 2400 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2021-08-15 17:58:53,856 2400 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2021-08-15 17:58:53,856 2400 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2021-08-15 17:58:53,856 2400 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2021-08-15 17:58:53,856 2400 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2021-08-15 17:58:53,856 2400 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2021-08-15 17:58:53,856 2400 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2021-08-15 17:58:53,856 2400 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2021-08-15 17:58:53,856 2400 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2021-08-15 17:58:53,856 2400 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2021-08-15 17:58:53,871 2400 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2021-08-15 17:58:53,887 2400 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2021-08-15 17:58:53,935 2400 [DEBUG] - ---------------------------Script Execution---------------------------
2021-08-15 17:58:53,935 2400 [DEBUG] - Running 'ChocolateyScriptRunner' for RSAT v2.1809.0.20210815 with packageScript 'C:\ProgramData\chocolatey\lib\RSAT\tools\chocolateyinstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\RSAT', installArguments: '', packageParameters: '',
2021-08-15 17:58:53,950 2400 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\RSAT\tools\chocolateyinstall.ps1'
2021-08-15 17:58:54,076 2400 [INFO ] - Detected: Microsoft Windows Server 2012 R2 Datacenter
2021-08-15 17:58:54,076 2400 [INFO ] -
2021-08-15 17:58:54,090 2400 [WARN ] - WARNING: The Remote System Administration Toolkit (RSAT) is built into Windows Server, so no need for an actual install.
2021-08-15 17:58:54,106 2400 [DEBUG] - ----------------------------------------------------------------------
2021-08-15 17:58:54,106 2400 [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\RSAT\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '''] exited with '0'.
2021-08-15 17:58:54,122 2400 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2021-08-15 17:58:54,122 2400 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2021-08-15 17:58:54,200 2400 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\RSAT'
2021-08-15 17:58:54,200 2400 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\RSAT\RSAT.nupkg'
with checksum 'F816F1640D0AFA4BC87407C509384210'
2021-08-15 17:58:54,200 2400 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\RSAT\RSAT.nuspec'
with checksum 'D25F60C7E93060705F03ABF230CC564A'
2021-08-15 17:58:54,200 2400 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\RSAT\tools\chocolateyinstall.ps1'
with checksum '4DC6D36513DF39888B8C3F9468AB9D05'
2021-08-15 17:58:54,200 2400 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\RSAT\tools\chocolateyuninstall.ps1'
with checksum 'A87770C9F0B0566F5B7AE1F25EE6F92D'
2021-08-15 17:58:54,231 2400 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\RSAT.2.1809.0.20210815".
2021-08-15 17:58:54,231 2400 [DEBUG] - There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\RSAT.2.1809.0.20210815\.files'
2021-08-15 17:58:54,247 2400 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\RSAT.2.1809.0.20210815\.extra".
2021-08-15 17:58:54,247 2400 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\RSAT.2.1809.0.20210815\.version".
2021-08-15 17:58:54,247 2400 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\RSAT.2.1809.0.20210815\.sxs".
2021-08-15 17:58:54,247 2400 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\RSAT.2.1809.0.20210815\.pin".
2021-08-15 17:58:54,247 2400 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2021-08-15 17:58:54,247 2400 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\RSAT\.chocolateyPending".
2021-08-15 17:58:54,247 2400 [INFO ] - The install of rsat was successful.
2021-08-15 17:58:54,247 2400 [INFO ] - Software install location not explicitly set, could be in package or
default install location if installer.
2021-08-15 17:58:54,247 2400 [DEBUG] - Attempting to delete file "C:\Users\Administrator\AppData\Local\NuGet\Cache\RSAT.2.1809.0.20210815.nupkg".
2021-08-15 17:58:54,263 2400 [WARN ] -
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2021-08-15 17:58:54,263 2400 [WARN ] -
Enjoy using Chocolatey? Explore more amazing features to take your
experience to the next level at
https://chocolatey.org/compare
2021-08-15 17:58:54,263 2400 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2021-08-15 17:58:54,278 2400 [DEBUG] - Exiting with 0
2021-08-15 17:59:04,247 2112 [DEBUG] - XmlConfiguration is now operational
2021-08-15 17:59:04,310 2112 [INFO ] - ============================================================
2021-08-15 17:59:04,528 2112 [INFO ] - Chocolatey v0.10.16-beta
2021-08-15 17:59:04,544 2112 [DEBUG] - Chocolatey is running on Windows v 6.3.9600.0
2021-08-15 17:59:04,559 2112 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2021-08-15 17:59:04,559 2112 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2021-08-15 17:59:04,559 2112 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" uninstall RSAT --version 2.1809.0.20210815 -dvy --execution-timeout=2700
2021-08-15 17:59:04,559 2112 [DEBUG] - Received arguments: uninstall RSAT --version 2.1809.0.20210815 -dvy --execution-timeout=2700
2021-08-15 17:59:04,606 2112 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2021-08-15 17:59:04,622 2112 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2021-08-15 17:59:04,622 2112 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2021-08-15 17:59:04,732 2112 [DEBUG] - Performing validation checks.
2021-08-15 17:59:04,732 2112 [DEBUG] - Global Configuration Validation Checks:
2021-08-15 17:59:04,732 2112 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked
2021-08-15 17:59:04,732 2112 [DEBUG] - System State Validation Checks:
2021-08-15 17:59:04,746 2112 [DEBUG] - Reboot Requirement Checks:
2021-08-15 17:59:04,746 2112 [DEBUG] - - Pending Computer Rename = Checked
2021-08-15 17:59:04,746 2112 [DEBUG] - - Pending Component Based Servicing = Checked
2021-08-15 17:59:04,746 2112 [DEBUG] - - Pending Windows Auto Update = Checked
2021-08-15 17:59:04,746 2112 [DEBUG] - - Pending File Rename Operations = Ignored
2021-08-15 17:59:04,746 2112 [DEBUG] - - Pending Windows Package Installer = Checked
2021-08-15 17:59:04,746 2112 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked
2021-08-15 17:59:04,746 2112 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s).
2021-08-15 17:59:04,763 2112 [DEBUG] - The source 'c:\cached-packages;https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2021-08-15 17:59:04,763 2112 [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.
2021-08-15 17:59:04,763 2112 [DEBUG] - Configuration: CommandName='uninstall'|
CacheLocation='C:\Users\Administrator\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='c:\cached-packages;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='RSAT'|Version='2.1809.0.20210815'|
AllVersions='False'|SkipPackageInstallProvider='False'|
PackageNames='RSAT'|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.16.0'|
Information.ChocolateyProductVersion='0.10.16-beta'|
Information.FullName='choco, Version=0.10.16.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'|
Information.CurrentDirectory='C:\Windows\system32'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='True'|Features.LogWithoutColor='False'|
Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseEnhancedExitCodes='False'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='False'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.SkipPackageUpgradesWhenNotInstalled='False'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ExitOnRebootDetected='False'|
Features.LogValidationResultsOnWarnings='True'|
Features.UsePackageRepositoryOptimizations='True'|
Features.ScriptsCheckLastExitCode='False'|
ListCommand.LocalOnly='False'|
ListCommand.IdOnly='False'|ListCommand.IncludeRegistryPrograms='False'|
ListCommand.PageSize='25'|ListCommand.Exact='False'|
ListCommand.ByIdOnly='False'|ListCommand.ByTagOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
SourceCommand.VisibleToAdminsOnly='False'|
FeatureCommand.Command='unknown'|ConfigCommand.Command='unknown'|
ApiKeyCommand.Remove='False'|PinCommand.Command='unknown'|
OutdatedCommand.IgnorePinned='False'|Proxy.BypassOnLocal='True'|
2021-08-15 17:59:04,779 2112 [DEBUG] - _ Chocolatey:ChocolateyUninstallCommand - Normal Run Mode _
2021-08-15 17:59:04,779 2112 [INFO ] - Uninstalling the following packages:
2021-08-15 17:59:04,779 2112 [INFO ] - RSAT
2021-08-15 17:59:04,779 2112 [DEBUG] - Current environment values (may contain sensitive data):
2021-08-15 17:59:04,779 2112 [DEBUG] - * 'TMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
2021-08-15 17:59:04,779 2112 [DEBUG] - * 'TEMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
2021-08-15 17:59:04,779 2112 [DEBUG] - * 'ChocolateyLastPathUpdate'='132684005215077751' ('User')
2021-08-15 17:59:04,779 2112 [DEBUG] - * 'FP_NO_HOST_CHECK'='NO' ('Machine')
2021-08-15 17:59:04,779 2112 [DEBUG] - * 'USERNAME'='SYSTEM' ('Machine')
2021-08-15 17:59:04,793 2112 [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')
2021-08-15 17:59:04,793 2112 [DEBUG] - * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine')
2021-08-15 17:59:04,793 2112 [DEBUG] - * 'TMP'='C:\Windows\TEMP' ('Machine')
2021-08-15 17:59:04,793 2112 [DEBUG] - * 'OS'='Windows_NT' ('Machine')
2021-08-15 17:59:04,793 2112 [DEBUG] - * 'windir'='C:\Windows' ('Machine')
2021-08-15 17:59:04,793 2112 [DEBUG] - * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine')
2021-08-15 17:59:04,793 2112 [DEBUG] - * 'TEMP'='C:\Windows\TEMP' ('Machine')
2021-08-15 17:59:04,793 2112 [DEBUG] - * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine')
2021-08-15 17:59:04,793 2112 [DEBUG] - * 'PSModulePath'='C:\Windows\system32\WindowsPowerShell\v1.0\Modules\' ('Machine')
2021-08-15 17:59:04,793 2112 [DEBUG] - * 'NUMBER_OF_PROCESSORS'='1' ('Machine')
2021-08-15 17:59:04,793 2112 [DEBUG] - * 'PROCESSOR_LEVEL'='6' ('Machine')
2021-08-15 17:59:04,793 2112 [DEBUG] - * 'PROCESSOR_IDENTIFIER'='Intel64 Family 6 Model 60 Stepping 3, GenuineIntel' ('Machine')
2021-08-15 17:59:04,793 2112 [DEBUG] - * 'PROCESSOR_REVISION'='3c03' ('Machine')
2021-08-15 17:59:04,793 2112 [DEBUG] - * 'HOME'='C:\Users\Administrator' ('Machine')
2021-08-15 17:59:04,793 2112 [DEBUG] - * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine')
2021-08-15 17:59:04,888 2112 [DEBUG] - Running list with the following filter = ''
2021-08-15 17:59:04,888 2112 [DEBUG] - --- Start of List ---
2021-08-15 17:59:05,028 2112 [DEBUG] - rsat 2.1809.0.20210815
2021-08-15 17:59:05,028 2112 [DEBUG] - --- End of List ---
2021-08-15 17:59:05,106 2112 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bkp".
2021-08-15 17:59:05,122 2112 [DEBUG] - Backing up existing rsat prior to operation.
2021-08-15 17:59:05,122 2112 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\rsat'
to 'C:\ProgramData\chocolatey\lib-bkp\rsat'
2021-08-15 17:59:07,137 2112 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\rsat".
2021-08-15 17:59:07,137 2112 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\rsat\RSAT.nupkg"
to "C:\ProgramData\chocolatey\lib\rsat\RSAT.nupkg".
2021-08-15 17:59:07,153 2112 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\rsat\RSAT.nuspec"
to "C:\ProgramData\chocolatey\lib\rsat\RSAT.nuspec".
2021-08-15 17:59:07,153 2112 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\rsat\tools".
2021-08-15 17:59:07,153 2112 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\rsat\tools\chocolateyinstall.ps1"
to "C:\ProgramData\chocolatey\lib\rsat\tools\chocolateyinstall.ps1".
2021-08-15 17:59:07,153 2112 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\rsat\tools\chocolateyuninstall.ps1"
to "C:\ProgramData\chocolatey\lib\rsat\tools\chocolateyuninstall.ps1".
2021-08-15 17:59:08,685 2112 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\rsat'
2021-08-15 17:59:08,700 2112 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\rsat\RSAT.nupkg'
with checksum 'F816F1640D0AFA4BC87407C509384210'
2021-08-15 17:59:08,700 2112 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\rsat\RSAT.nuspec'
with checksum 'D25F60C7E93060705F03ABF230CC564A'
2021-08-15 17:59:08,700 2112 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\rsat\tools\chocolateyinstall.ps1'
with checksum '4DC6D36513DF39888B8C3F9468AB9D05'
2021-08-15 17:59:08,700 2112 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\rsat\tools\chocolateyuninstall.ps1'
with checksum 'A87770C9F0B0566F5B7AE1F25EE6F92D'
2021-08-15 17:59:08,794 2112 [INFO ] - [NuGet] Uninstalling 'rsat 2.1809.0.20210815'.
2021-08-15 17:59:08,794 2112 [INFO ] -
rsat v2.1809.0.20210815
2021-08-15 17:59:08,809 2112 [DEBUG] - Setting installer args for rsat
2021-08-15 17:59:08,809 2112 [DEBUG] - Setting package parameters for rsat
2021-08-15 17:59:08,825 2112 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\rsat\tools\chocolateyuninstall.ps1':
2021-08-15 17:59:08,825 2112 [DEBUG] - $ErrorActionPreference = 'Stop'
$osInfo = Get-WmiObject Win32_OperatingSystem | Select-Object Version, ProductType, Caption, OperatingSystemSKU, BuildNumber
$osInfo.Version = [version]$osInfo.Version
if ($osInfo.ProductType -ne 1) {
Write-Warning 'The Remote System Administration Toolkit (RSAT) is built into Windows Server, so it cannot be uninstalled.'
Return
}
If (($osInfo.Version.Major -ne 10) -or ($osInfo.BuildNumber -lt 17763)) {
$packages = & "$env:windir\system32\dism.exe" /online /get-packages |
Select-String -Pattern 'rsat|RemoteServerAdministrationTools' -AllMatches |
ForEach-Object {$_.line.split(':')[-1].trim()}
foreach ($package in $packages) {
& "$env:windir\system32\dism.exe" /Online /Remove-Package /NoRestart /PackageName:$package
if ($LASTEXITCODE) {
throw "Error $LASTEXITCODE trying to remove $package`nYou may need to reboot first."
}
}
} else {
# Apparently, some features must be removed after others.
$WhereArray = @()
$WhereArray += '($_.Name -notlike "Rsat.ActiveDirectory*")'
$WhereArray += '($_.Name -notlike "Rsat.GroupPolicy*")'
$WhereArray += '($_.Name -notlike "Rsat.ServerManager*")'
$WhereString = '($_.Name -like "Rsat*") -AND ($_.State -eq "Installed") -AND ' + ($WhereArray -join ' -AND ')
$Installed = Get-WindowsCapability -Online | Where-Object $([scriptblock]::Create($WhereString))
foreach ($Item in $Installed) {
try {
Write-Host "`nRemoving $($Item.Name) from Windows"
$DISMobject = Remove-WindowsCapability -Online -Name $Item.Name
if ($DISMobject.RestartNeeded) {
Write-Warning "A reboot is required."
}
} catch {
Write-Warning -Message $_.Exception.Message; break
}
}
# Go back and remove the rest.
$Installed = Get-WindowsCapability -Online | Where-Object {$_.Name -like 'Rsat*' -AND $_.State -eq 'Installed'}
foreach ($Item in $Installed) {
try {
Write-Host "`nRemoving $($Item.Name) from Windows"
$DISMobject = Remove-WindowsCapability -Online -Name $Item.Name
if ($DISMobject.RestartNeeded) {
Write-Warning "A reboot is required."
}
} catch {
Write-Warning -Message $_.Exception.Message; break
}
}
}
Write-Warning 'It is recommended that you restart the computer.'
2021-08-15 17:59:08,841 2112 [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\rsat\tools\chocolateyuninstall.ps1' -installArguments '' -packageParameters ''']
2021-08-15 17:59:08,841 2112 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2021-08-15 17:59:09,028 2112 [DEBUG] - Host version is 4.0, PowerShell Version is '4.0' and CLR Version is '4.0.30319.34014'.
2021-08-15 17:59:09,121 2112 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2021-08-15 17:59:09,121 2112 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2021-08-15 17:59:09,121 2112 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2021-08-15 17:59:09,121 2112 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2021-08-15 17:59:09,121 2112 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2021-08-15 17:59:09,121 2112 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2021-08-15 17:59:09,121 2112 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2021-08-15 17:59:09,121 2112 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2021-08-15 17:59:09,121 2112 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2021-08-15 17:59:09,137 2112 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2021-08-15 17:59:09,153 2112 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2021-08-15 17:59:09,153 2112 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2021-08-15 17:59:09,153 2112 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2021-08-15 17:59:09,153 2112 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2021-08-15 17:59:09,153 2112 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2021-08-15 17:59:09,153 2112 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2021-08-15 17:59:09,153 2112 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2021-08-15 17:59:09,153 2112 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2021-08-15 17:59:09,153 2112 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2021-08-15 17:59:09,153 2112 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2021-08-15 17:59:09,153 2112 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2021-08-15 17:59:09,153 2112 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2021-08-15 17:59:09,153 2112 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2021-08-15 17:59:09,169 2112 [DEBUG] - Loading community extensions
2021-08-15 17:59:09,169 2112 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
2021-08-15 17:59:09,169 2112 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
2021-08-15 17:59:09,199 2112 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2021-08-15 17:59:09,199 2112 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2021-08-15 17:59:09,215 2112 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2021-08-15 17:59:09,215 2112 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2021-08-15 17:59:09,215 2112 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2021-08-15 17:59:09,215 2112 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2021-08-15 17:59:09,215 2112 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2021-08-15 17:59:09,215 2112 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2021-08-15 17:59:09,215 2112 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2021-08-15 17:59:09,215 2112 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2021-08-15 17:59:09,215 2112 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2021-08-15 17:59:09,215 2112 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2021-08-15 17:59:09,215 2112 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2021-08-15 17:59:09,231 2112 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2021-08-15 17:59:09,231 2112 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2021-08-15 17:59:09,231 2112 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2021-08-15 17:59:09,231 2112 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2021-08-15 17:59:09,231 2112 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2021-08-15 17:59:09,231 2112 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2021-08-15 17:59:09,231 2112 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2021-08-15 17:59:09,231 2112 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2021-08-15 17:59:09,231 2112 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2021-08-15 17:59:09,231 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2021-08-15 17:59:09,231 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2021-08-15 17:59:09,231 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2021-08-15 17:59:09,231 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2021-08-15 17:59:09,231 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2021-08-15 17:59:09,231 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2021-08-15 17:59:09,231 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2021-08-15 17:59:09,231 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2021-08-15 17:59:09,231 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2021-08-15 17:59:09,246 2112 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2021-08-15 17:59:09,262 2112 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2021-08-15 17:59:09,278 2112 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2021-08-15 17:59:09,278 2112 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2021-08-15 17:59:09,278 2112 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2021-08-15 17:59:09,278 2112 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2021-08-15 17:59:09,278 2112 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2021-08-15 17:59:09,294 2112 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2021-08-15 17:59:09,325 2112 [DEBUG] - ---------------------------Script Execution---------------------------
2021-08-15 17:59:09,340 2112 [DEBUG] - Running 'ChocolateyScriptRunner' for rsat v2.1809.0.20210815 with packageScript 'C:\ProgramData\chocolatey\lib\rsat\tools\chocolateyuninstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\rsat', installArguments: '', packageParameters: '',
2021-08-15 17:59:09,340 2112 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\rsat\tools\chocolateyuninstall.ps1'
2021-08-15 17:59:09,419 2112 [WARN ] - WARNING: The Remote System Administration Toolkit (RSAT) is built into Windows Server, so it cannot be uninstalled.
2021-08-15 17:59:09,419 2112 [DEBUG] - ----------------------------------------------------------------------
2021-08-15 17:59:09,419 2112 [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\rsat\tools\chocolateyuninstall.ps1' -installArguments '' -packageParameters '''] exited with '0'.
2021-08-15 17:59:09,434 2112 [INFO ] - Skipping auto uninstaller - No registry snapshot.
2021-08-15 17:59:09,450 2112 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2021-08-15 17:59:09,466 2112 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2021-08-15 17:59:09,466 2112 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bkp\rsat".
2021-08-15 17:59:09,481 2112 [DEBUG] - [NuGet] Removed file 'chocolateyinstall.ps1' to folder 'C:\ProgramData\chocolatey\lib\rsat\tools'.
2021-08-15 17:59:09,497 2112 [DEBUG] - [NuGet] Removed file 'chocolateyuninstall.ps1' to folder 'C:\ProgramData\chocolatey\lib\rsat\tools'.
2021-08-15 17:59:09,497 2112 [DEBUG] - [NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\rsat\tools'.
2021-08-15 17:59:09,497 2112 [DEBUG] - [NuGet] Removed file 'rsat.nuspec' to folder 'C:\ProgramData\chocolatey\lib\rsat'.
2021-08-15 17:59:09,497 2112 [DEBUG] - [NuGet] Removed file 'rsat.nupkg' to folder 'C:\ProgramData\chocolatey\lib\rsat'.
2021-08-15 17:59:09,497 2112 [DEBUG] - [NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\rsat'.
2021-08-15 17:59:09,497 2112 [INFO ] - [NuGet] Successfully uninstalled 'rsat 2.1809.0.20210815'.
2021-08-15 17:59:09,497 2112 [INFO ] - rsat has been successfully uninstalled.
2021-08-15 17:59:09,497 2112 [DEBUG] - Removing nupkg if it still exists.
2021-08-15 17:59:09,513 2112 [DEBUG] - Ensuring removal of installation files.
2021-08-15 17:59:09,513 2112 [DEBUG] - Ensuring removal of package cache files.
2021-08-15 17:59:09,528 2112 [WARN ] -
Chocolatey uninstalled 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2021-08-15 17:59:09,528 2112 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2021-08-15 17:59:09,528 2112 [DEBUG] - Exiting with 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment