Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ad-acl-scanner v5.9 - Failed - Package Tests Results

ad-acl-scanner v5.9 - Failed - Package Test Results

  • https://chocolatey.org/packages/ad-acl-scanner/5.9
  • Tested 07 Feb 2020 00:50:31 +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 failed. Note that the process may have hung, indicating a not completely silent install. This is usually seen when the last entry in the log is calling the install. This can also happen when a window pops up and needs to be closed to continue.
<?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\ad-acl-scanner\ad-acl-scanner.nupkg" checksum="C560AE7143DC4788B6B3DB2FA3E3F7F9" />
<file path="C:\ProgramData\chocolatey\lib\ad-acl-scanner\ad-acl-scanner.nuspec" checksum="F662C439A42B5625A388EB7710F9E5E5" />
<file path="C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\ADACLScan.ps1" checksum="F723F83BBB5FFEBFE7A1ED15C0833249" />
<file path="C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\ADACLScan.ps1.istext" checksum="72F06AA3C13880ABFAAC0E6A1064A9AF" />
<file path="C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\chocolateyinstall.ps1" checksum="913B65554A9A3C347540C08CB307AF30" />
<file path="C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\chocolateyuninstall.ps1" checksum="6D732539CB2BD47D86DE30DA631CDE35" />
</files>
</fileSnapshot>
2020-02-07 00:46:31,591 2684 [DEBUG] - XmlConfiguration is now operational
2020-02-07 00:46:31,810 2684 [INFO ] - ============================================================
2020-02-07 00:46:32,654 2684 [INFO ] - Chocolatey v0.10.15
2020-02-07 00:46:32,700 2684 [DEBUG] - Chocolatey is running on Windows v 6.3.9600.0
2020-02-07 00:46:32,716 2684 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2020-02-07 00:46:32,716 2684 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2020-02-07 00:46:32,748 2684 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install ad-acl-scanner --version 5.9 -fdvy --execution-timeout=2700 --allow-downgrade
2020-02-07 00:46:32,748 2684 [DEBUG] - Received arguments: install ad-acl-scanner --version 5.9 -fdvy --execution-timeout=2700 --allow-downgrade
2020-02-07 00:46:32,934 2684 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2020-02-07 00:46:32,951 2684 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2020-02-07 00:46:32,982 2684 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2020-02-07 00:46:33,200 2684 [DEBUG] - Performing validation checks.
2020-02-07 00:46:33,231 2684 [DEBUG] - Global Configuration Validation Checks:
2020-02-07 00:46:33,231 2684 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked
2020-02-07 00:46:33,247 2684 [DEBUG] - System State Validation Checks:
2020-02-07 00:46:33,247 2684 [DEBUG] - Reboot Requirement Checks:
2020-02-07 00:46:33,263 2684 [DEBUG] - - Pending Computer Rename = Checked
2020-02-07 00:46:33,278 2684 [DEBUG] - - Pending Component Based Servicing = Checked
2020-02-07 00:46:33,278 2684 [DEBUG] - - Pending Windows Auto Update = Checked
2020-02-07 00:46:33,295 2684 [DEBUG] - - Pending File Rename Operations = Checked
2020-02-07 00:46:33,295 2684 [DEBUG] - - Pending Windows Package Installer = Checked
2020-02-07 00:46:33,295 2684 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked
2020-02-07 00:46:33,326 2684 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s).
2020-02-07 00:46:33,326 2684 [DEBUG] - The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2020-02-07 00:46:33,341 2684 [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.
2020-02-07 00:46:33,403 2684 [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='ad-acl-scanner'|Version='5.9'|
AllVersions='False'|SkipPackageInstallProvider='False'|
PackageNames='ad-acl-scanner'|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.15.0'|
Information.ChocolateyProductVersion='0.10.15'|
Information.FullName='choco, Version=0.10.15.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'|
2020-02-07 00:46:33,419 2684 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
2020-02-07 00:46:33,434 2684 [INFO ] - Installing the following packages:
2020-02-07 00:46:33,451 2684 [INFO ] - ad-acl-scanner
2020-02-07 00:46:33,451 2684 [INFO ] - By installing you accept licenses for the packages.
2020-02-07 00:46:33,466 2684 [DEBUG] - Current environment values (may contain sensitive data):
2020-02-07 00:46:33,481 2684 [DEBUG] - * 'TMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
2020-02-07 00:46:33,481 2684 [DEBUG] - * 'TEMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
2020-02-07 00:46:33,497 2684 [DEBUG] - * 'ChocolateyLastPathUpdate'='132254551572392215' ('User')
2020-02-07 00:46:33,497 2684 [DEBUG] - * 'FP_NO_HOST_CHECK'='NO' ('Machine')
2020-02-07 00:46:33,497 2684 [DEBUG] - * 'USERNAME'='SYSTEM' ('Machine')
2020-02-07 00:46:33,497 2684 [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')
2020-02-07 00:46:33,512 2684 [DEBUG] - * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine')
2020-02-07 00:46:33,512 2684 [DEBUG] - * 'TMP'='C:\Windows\TEMP' ('Machine')
2020-02-07 00:46:33,512 2684 [DEBUG] - * 'OS'='Windows_NT' ('Machine')
2020-02-07 00:46:33,512 2684 [DEBUG] - * 'windir'='C:\Windows' ('Machine')
2020-02-07 00:46:33,528 2684 [DEBUG] - * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine')
2020-02-07 00:46:33,528 2684 [DEBUG] - * 'TEMP'='C:\Windows\TEMP' ('Machine')
2020-02-07 00:46:33,528 2684 [DEBUG] - * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine')
2020-02-07 00:46:33,528 2684 [DEBUG] - * 'PSModulePath'='C:\Windows\system32\WindowsPowerShell\v1.0\Modules\' ('Machine')
2020-02-07 00:46:33,544 2684 [DEBUG] - * 'NUMBER_OF_PROCESSORS'='4' ('Machine')
2020-02-07 00:46:33,544 2684 [DEBUG] - * 'PROCESSOR_LEVEL'='6' ('Machine')
2020-02-07 00:46:33,544 2684 [DEBUG] - * 'PROCESSOR_IDENTIFIER'='Intel64 Family 6 Model 45 Stepping 7, GenuineIntel' ('Machine')
2020-02-07 00:46:33,544 2684 [DEBUG] - * 'PROCESSOR_REVISION'='2d07' ('Machine')
2020-02-07 00:46:33,559 2684 [DEBUG] - * 'HOME'='C:\Users\Administrator' ('Machine')
2020-02-07 00:46:33,559 2684 [DEBUG] - * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine')
2020-02-07 00:46:37,701 2684 [INFO ] - [NuGet] Attempting to resolve dependency 'dotnet4.0 (= 4.0)'.
2020-02-07 00:46:41,169 2684 [INFO ] - [NuGet] Attempting to resolve dependency 'powershell (= 2.0)'.
2020-02-07 00:46:41,936 2684 [INFO ] - [NuGet] Installing 'DotNet4.0 4.0.30319.20141222'.
2020-02-07 00:46:41,966 2684 [DEBUG] - [NuGet] Added file 'chocolateyInstall.ps1' to folder 'DotNet4.0\tools'.
2020-02-07 00:46:41,966 2684 [DEBUG] - [NuGet] Added file 'DotNet4.0.nupkg' to folder 'DotNet4.0'.
2020-02-07 00:46:42,294 2684 [DEBUG] - [NuGet] Added file 'DotNet4.0.nuspec' to folder 'DotNet4.0'.
2020-02-07 00:46:42,309 2684 [INFO ] - [NuGet] Successfully installed 'DotNet4.0 4.0.30319.20141222'.
2020-02-07 00:46:42,309 2684 [INFO ] -
DotNet4.0 v4.0.30319.20141222 (forced) [Approved]
2020-02-07 00:46:42,372 2684 [INFO ] - dotnet4.0 package files install completed. Performing other installation steps.
2020-02-07 00:46:42,575 2684 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\DotNet4.0\tools\chocolateyInstall.ps1':
2020-02-07 00:46:42,622 2684 [DEBUG] - if(!(Test-Path "hklm:\SOFTWARE\Microsoft\.NETFramework\v4.0.30319\SKUs\.NETFramework,Version=v4.0")) {
$env:chocolateyPackageFolder="$env:temp\chocolatey\webcmd"
Install-ChocolateyZipPackage 'webcmd' 'http://www.iis.net/community/files/webpi/webpicmdline_anycpu.zip' $env:temp
.$env:temp\WebpiCmdLine.exe /products: NetFramework4 /accepteula
}
else {
Write-Host "Microsoft .Net 4.0 Framework is already installed on your machine."
}
2020-02-07 00:46:42,809 2684 [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\DotNet4.0\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters ''']
2020-02-07 00:46:42,825 2684 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2020-02-07 00:46:43,903 2684 [DEBUG] - Host version is 4.0, PowerShell Version is '4.0' and CLR Version is '4.0.30319.33440'.
2020-02-07 00:46:44,356 2684 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2020-02-07 00:46:44,356 2684 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2020-02-07 00:46:44,372 2684 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2020-02-07 00:46:44,372 2684 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2020-02-07 00:46:44,372 2684 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2020-02-07 00:46:44,387 2684 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2020-02-07 00:46:44,387 2684 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2020-02-07 00:46:44,387 2684 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2020-02-07 00:46:44,403 2684 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2020-02-07 00:46:44,403 2684 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2020-02-07 00:46:44,403 2684 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2020-02-07 00:46:44,419 2684 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2020-02-07 00:46:44,419 2684 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2020-02-07 00:46:44,419 2684 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2020-02-07 00:46:44,434 2684 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2020-02-07 00:46:44,434 2684 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2020-02-07 00:46:44,434 2684 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2020-02-07 00:46:44,450 2684 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2020-02-07 00:46:44,450 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2020-02-07 00:46:44,450 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2020-02-07 00:46:44,466 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2020-02-07 00:46:44,466 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2020-02-07 00:46:44,466 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2020-02-07 00:46:44,481 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2020-02-07 00:46:44,481 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2020-02-07 00:46:44,481 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2020-02-07 00:46:44,497 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2020-02-07 00:46:44,497 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2020-02-07 00:46:44,497 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2020-02-07 00:46:44,512 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2020-02-07 00:46:44,512 2684 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2020-02-07 00:46:44,512 2684 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2020-02-07 00:46:44,512 2684 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2020-02-07 00:46:44,528 2684 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2020-02-07 00:46:44,528 2684 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2020-02-07 00:46:44,528 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2020-02-07 00:46:44,544 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2020-02-07 00:46:44,544 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2020-02-07 00:46:44,544 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2020-02-07 00:46:44,544 2684 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2020-02-07 00:46:44,559 2684 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2020-02-07 00:46:44,559 2684 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2020-02-07 00:46:44,559 2684 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2020-02-07 00:46:44,575 2684 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2020-02-07 00:46:44,575 2684 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2020-02-07 00:46:44,575 2684 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2020-02-07 00:46:44,575 2684 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2020-02-07 00:46:44,591 2684 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2020-02-07 00:46:44,591 2684 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2020-02-07 00:46:44,591 2684 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2020-02-07 00:46:44,606 2684 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2020-02-07 00:46:44,606 2684 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2020-02-07 00:46:44,606 2684 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2020-02-07 00:46:44,653 2684 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2020-02-07 00:46:44,669 2684 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2020-02-07 00:46:44,669 2684 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2020-02-07 00:46:44,669 2684 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2020-02-07 00:46:44,684 2684 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2020-02-07 00:46:44,684 2684 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2020-02-07 00:46:44,684 2684 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2020-02-07 00:46:44,700 2684 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2020-02-07 00:46:44,700 2684 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2020-02-07 00:46:44,700 2684 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2020-02-07 00:46:44,716 2684 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2020-02-07 00:46:44,716 2684 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2020-02-07 00:46:44,716 2684 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2020-02-07 00:46:44,716 2684 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2020-02-07 00:46:44,731 2684 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2020-02-07 00:46:44,731 2684 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2020-02-07 00:46:44,731 2684 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2020-02-07 00:46:44,747 2684 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2020-02-07 00:46:44,747 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2020-02-07 00:46:44,747 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2020-02-07 00:46:44,763 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2020-02-07 00:46:44,763 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2020-02-07 00:46:44,763 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2020-02-07 00:46:44,778 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2020-02-07 00:46:44,778 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2020-02-07 00:46:44,778 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2020-02-07 00:46:44,794 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2020-02-07 00:46:44,794 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2020-02-07 00:46:44,794 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2020-02-07 00:46:44,794 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2020-02-07 00:46:44,809 2684 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2020-02-07 00:46:44,809 2684 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2020-02-07 00:46:44,809 2684 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2020-02-07 00:46:44,825 2684 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2020-02-07 00:46:44,825 2684 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2020-02-07 00:46:44,825 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2020-02-07 00:46:44,841 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2020-02-07 00:46:44,841 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2020-02-07 00:46:44,841 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2020-02-07 00:46:44,856 2684 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2020-02-07 00:46:44,856 2684 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2020-02-07 00:46:44,856 2684 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2020-02-07 00:46:44,872 2684 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2020-02-07 00:46:44,872 2684 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2020-02-07 00:46:44,872 2684 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2020-02-07 00:46:44,888 2684 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2020-02-07 00:46:44,888 2684 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2020-02-07 00:46:44,888 2684 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2020-02-07 00:46:44,888 2684 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2020-02-07 00:46:44,903 2684 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2020-02-07 00:46:44,903 2684 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2020-02-07 00:46:44,903 2684 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2020-02-07 00:46:44,919 2684 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2020-02-07 00:46:44,919 2684 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2020-02-07 00:46:44,919 2684 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2020-02-07 00:46:44,934 2684 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2020-02-07 00:46:44,934 2684 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2020-02-07 00:46:44,934 2684 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2020-02-07 00:46:44,950 2684 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2020-02-07 00:46:44,950 2684 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2020-02-07 00:46:44,950 2684 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2020-02-07 00:46:44,966 2684 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2020-02-07 00:46:44,966 2684 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2020-02-07 00:46:44,966 2684 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2020-02-07 00:46:44,966 2684 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2020-02-07 00:46:44,981 2684 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2020-02-07 00:46:44,981 2684 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2020-02-07 00:46:44,981 2684 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2020-02-07 00:46:44,997 2684 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2020-02-07 00:46:44,997 2684 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2020-02-07 00:46:44,997 2684 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2020-02-07 00:46:45,013 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2020-02-07 00:46:45,013 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2020-02-07 00:46:45,013 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2020-02-07 00:46:45,028 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2020-02-07 00:46:45,028 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2020-02-07 00:46:45,028 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2020-02-07 00:46:45,028 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2020-02-07 00:46:45,044 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2020-02-07 00:46:45,044 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2020-02-07 00:46:45,044 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2020-02-07 00:46:45,059 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2020-02-07 00:46:45,059 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2020-02-07 00:46:45,059 2684 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2020-02-07 00:46:45,075 2684 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2020-02-07 00:46:45,075 2684 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2020-02-07 00:46:45,075 2684 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2020-02-07 00:46:45,075 2684 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2020-02-07 00:46:45,091 2684 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2020-02-07 00:46:45,091 2684 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2020-02-07 00:46:45,091 2684 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2020-02-07 00:46:45,106 2684 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2020-02-07 00:46:45,106 2684 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2020-02-07 00:46:45,106 2684 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2020-02-07 00:46:45,122 2684 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2020-02-07 00:46:45,122 2684 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2020-02-07 00:46:45,122 2684 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2020-02-07 00:46:45,137 2684 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2020-02-07 00:46:45,137 2684 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2020-02-07 00:46:45,137 2684 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2020-02-07 00:46:45,137 2684 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2020-02-07 00:46:45,153 2684 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2020-02-07 00:46:45,153 2684 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2020-02-07 00:46:45,153 2684 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2020-02-07 00:46:45,169 2684 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2020-02-07 00:46:45,169 2684 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2020-02-07 00:46:45,388 2684 [DEBUG] - ---------------------------Script Execution---------------------------
2020-02-07 00:46:45,403 2684 [DEBUG] - Running 'ChocolateyScriptRunner' for DotNet4.0 v4.0.30319.20141222 with packageScript 'C:\ProgramData\chocolatey\lib\DotNet4.0\tools\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\DotNet4.0', installArguments: '', packageParameters: '',
2020-02-07 00:46:45,466 2684 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\DotNet4.0\tools\chocolateyInstall.ps1'
2020-02-07 00:46:45,497 2684 [INFO ] - Microsoft .Net 4.0 Framework is already installed on your machine.
2020-02-07 00:46:45,497 2684 [INFO ] -
2020-02-07 00:46:45,559 2684 [DEBUG] - ----------------------------------------------------------------------
2020-02-07 00:46:45,575 2684 [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\DotNet4.0\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '0'.
2020-02-07 00:46:45,591 2684 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2020-02-07 00:46:45,638 2684 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2020-02-07 00:46:45,935 2684 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\DotNet4.0'
2020-02-07 00:46:45,950 2684 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\DotNet4.0\DotNet4.0.nupkg'
with checksum 'D6E5CFB004A4C36245BF4AF8E87A663C'
2020-02-07 00:46:45,950 2684 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\DotNet4.0\DotNet4.0.nuspec'
with checksum 'D492A196F6544CDA421190C2DC70B18B'
2020-02-07 00:46:45,950 2684 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\DotNet4.0\tools\chocolateyInstall.ps1'
with checksum 'F01736001E2B1BEEAB926B5FC410616B'
2020-02-07 00:46:46,091 2684 [DEBUG] - Adding 'Hidden' attribute(s) to 'C:\ProgramData\chocolatey\.chocolatey'.
2020-02-07 00:46:46,123 2684 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\DotNet4.0.4.0.30319.20141222".
2020-02-07 00:46:46,169 2684 [DEBUG] - There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\DotNet4.0.4.0.30319.20141222\.files'
2020-02-07 00:46:46,169 2684 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\DotNet4.0.4.0.30319.20141222\.extra".
2020-02-07 00:46:46,184 2684 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\DotNet4.0.4.0.30319.20141222\.version".
2020-02-07 00:46:46,184 2684 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\DotNet4.0.4.0.30319.20141222\.sxs".
2020-02-07 00:46:46,184 2684 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\DotNet4.0.4.0.30319.20141222\.pin".
2020-02-07 00:46:46,200 2684 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2020-02-07 00:46:46,216 2684 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\DotNet4.0\.chocolateyPending".
2020-02-07 00:46:46,231 2684 [INFO ] - The install of dotnet4.0 was successful.
2020-02-07 00:46:46,231 2684 [INFO ] - Software install location not explicitly set, could be in package or
default install location if installer.
2020-02-07 00:46:46,231 2684 [INFO ] - [NuGet] Installing 'PowerShell 5.1.14409.20180811'.
2020-02-07 00:46:46,295 2684 [DEBUG] - [NuGet] Added file 'ChocolateyInstall.ps1' to folder 'PowerShell\tools'.
2020-02-07 00:46:46,295 2684 [DEBUG] - [NuGet] Added file 'chocolateyUninstall.ps1' to folder 'PowerShell\tools'.
2020-02-07 00:46:46,295 2684 [DEBUG] - [NuGet] Added file 'PowerShell.nupkg' to folder 'PowerShell'.
2020-02-07 00:46:46,607 2684 [DEBUG] - [NuGet] Added file 'PowerShell.nuspec' to folder 'PowerShell'.
2020-02-07 00:46:46,622 2684 [INFO ] - [NuGet] Successfully installed 'PowerShell 5.1.14409.20180811'.
2020-02-07 00:46:46,622 2684 [INFO ] -
PowerShell v5.1.14409.20180811 (forced) [Approved]
2020-02-07 00:46:46,622 2684 [INFO ] - powershell package files install completed. Performing other installation steps.
2020-02-07 00:46:46,638 2684 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\PowerShell\tools\ChocolateyInstall.ps1':
2020-02-07 00:46:46,654 2684 [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
}
2020-02-07 00:46:46,654 2684 [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 ''']
2020-02-07 00:46:46,670 2684 [DEBUG] - Redirecting Microsoft.PowerShell.Security, requested by ''
2020-02-07 00:46:46,670 2684 [DEBUG] - Attempting to load assembly Microsoft.PowerShell.Security failed:
Could not load file or assembly 'Microsoft.PowerShell.Security, Version=5.0.0.0' or one of its dependencies. The system cannot find the file specified.
2020-02-07 00:46:46,684 2684 [DEBUG] - Attempting to load assembly Microsoft.PowerShell.Security failed:
Could not load file or assembly 'Microsoft.PowerShell.Security, Version=4.0.0.0' or one of its dependencies. The system cannot find the file specified.
2020-02-07 00:46:46,684 2684 [DEBUG] - Attempting to load assembly Microsoft.PowerShell.Security failed:
Could not load file or assembly 'Microsoft.PowerShell.Security, Version=3.0.0.0' or one of its dependencies. The system cannot find the file specified.
2020-02-07 00:46:46,684 2684 [DEBUG] - Attempting to load assembly Microsoft.PowerShell.Security failed:
Could not load file or assembly 'Microsoft.PowerShell.Security, Version=1.0.0.0' or one of its dependencies. The system cannot find the file specified.
2020-02-07 00:46:46,919 2684 [DEBUG] - Host version is 4.0, PowerShell Version is '4.0' and CLR Version is '4.0.30319.33440'.
2020-02-07 00:46:47,028 2684 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2020-02-07 00:46:47,028 2684 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2020-02-07 00:46:47,044 2684 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2020-02-07 00:46:47,044 2684 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2020-02-07 00:46:47,044 2684 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2020-02-07 00:46:47,059 2684 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2020-02-07 00:46:47,059 2684 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2020-02-07 00:46:47,059 2684 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2020-02-07 00:46:47,059 2684 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2020-02-07 00:46:47,075 2684 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2020-02-07 00:46:47,075 2684 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2020-02-07 00:46:47,075 2684 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2020-02-07 00:46:47,091 2684 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2020-02-07 00:46:47,091 2684 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2020-02-07 00:46:47,091 2684 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2020-02-07 00:46:47,091 2684 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2020-02-07 00:46:47,106 2684 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2020-02-07 00:46:47,106 2684 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2020-02-07 00:46:47,106 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2020-02-07 00:46:47,122 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2020-02-07 00:46:47,122 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2020-02-07 00:46:47,122 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2020-02-07 00:46:47,137 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2020-02-07 00:46:47,137 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2020-02-07 00:46:47,137 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2020-02-07 00:46:47,137 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2020-02-07 00:46:47,153 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2020-02-07 00:46:47,153 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2020-02-07 00:46:47,153 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2020-02-07 00:46:47,169 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2020-02-07 00:46:47,169 2684 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2020-02-07 00:46:47,169 2684 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2020-02-07 00:46:47,184 2684 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2020-02-07 00:46:47,184 2684 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2020-02-07 00:46:47,184 2684 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2020-02-07 00:46:47,184 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2020-02-07 00:46:47,200 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2020-02-07 00:46:47,200 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2020-02-07 00:46:47,200 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2020-02-07 00:46:47,216 2684 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2020-02-07 00:46:47,216 2684 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2020-02-07 00:46:47,216 2684 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2020-02-07 00:46:47,216 2684 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2020-02-07 00:46:47,231 2684 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2020-02-07 00:46:47,231 2684 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2020-02-07 00:46:47,231 2684 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2020-02-07 00:46:47,247 2684 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2020-02-07 00:46:47,247 2684 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2020-02-07 00:46:47,247 2684 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2020-02-07 00:46:47,263 2684 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2020-02-07 00:46:47,263 2684 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2020-02-07 00:46:47,263 2684 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2020-02-07 00:46:47,278 2684 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2020-02-07 00:46:47,278 2684 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2020-02-07 00:46:47,278 2684 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2020-02-07 00:46:47,294 2684 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2020-02-07 00:46:47,294 2684 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2020-02-07 00:46:47,294 2684 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2020-02-07 00:46:47,294 2684 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2020-02-07 00:46:47,309 2684 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2020-02-07 00:46:47,309 2684 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2020-02-07 00:46:47,309 2684 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2020-02-07 00:46:47,325 2684 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2020-02-07 00:46:47,325 2684 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2020-02-07 00:46:47,325 2684 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2020-02-07 00:46:47,341 2684 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2020-02-07 00:46:47,341 2684 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2020-02-07 00:46:47,341 2684 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2020-02-07 00:46:47,341 2684 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2020-02-07 00:46:47,356 2684 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2020-02-07 00:46:47,356 2684 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2020-02-07 00:46:47,356 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2020-02-07 00:46:47,372 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2020-02-07 00:46:47,372 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2020-02-07 00:46:47,372 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2020-02-07 00:46:47,387 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2020-02-07 00:46:47,387 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2020-02-07 00:46:47,387 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2020-02-07 00:46:47,387 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2020-02-07 00:46:47,403 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2020-02-07 00:46:47,403 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2020-02-07 00:46:47,403 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2020-02-07 00:46:47,419 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2020-02-07 00:46:47,419 2684 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2020-02-07 00:46:47,419 2684 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2020-02-07 00:46:47,434 2684 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2020-02-07 00:46:47,434 2684 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2020-02-07 00:46:47,434 2684 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2020-02-07 00:46:47,434 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2020-02-07 00:46:47,450 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2020-02-07 00:46:47,450 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2020-02-07 00:46:47,450 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2020-02-07 00:46:47,466 2684 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2020-02-07 00:46:47,466 2684 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2020-02-07 00:46:47,466 2684 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2020-02-07 00:46:47,466 2684 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2020-02-07 00:46:47,481 2684 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2020-02-07 00:46:47,481 2684 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2020-02-07 00:46:47,481 2684 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2020-02-07 00:46:47,497 2684 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2020-02-07 00:46:47,497 2684 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2020-02-07 00:46:47,497 2684 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2020-02-07 00:46:47,512 2684 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2020-02-07 00:46:47,512 2684 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2020-02-07 00:46:47,512 2684 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2020-02-07 00:46:47,528 2684 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2020-02-07 00:46:47,528 2684 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2020-02-07 00:46:47,528 2684 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2020-02-07 00:46:47,528 2684 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2020-02-07 00:46:47,544 2684 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2020-02-07 00:46:47,544 2684 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2020-02-07 00:46:47,544 2684 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2020-02-07 00:46:47,559 2684 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2020-02-07 00:46:47,559 2684 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2020-02-07 00:46:47,559 2684 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2020-02-07 00:46:47,575 2684 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2020-02-07 00:46:47,575 2684 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2020-02-07 00:46:47,575 2684 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2020-02-07 00:46:47,591 2684 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2020-02-07 00:46:47,591 2684 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2020-02-07 00:46:47,591 2684 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2020-02-07 00:46:47,606 2684 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2020-02-07 00:46:47,606 2684 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2020-02-07 00:46:47,606 2684 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2020-02-07 00:46:47,622 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2020-02-07 00:46:47,622 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2020-02-07 00:46:47,622 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2020-02-07 00:46:47,638 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2020-02-07 00:46:47,638 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2020-02-07 00:46:47,638 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2020-02-07 00:46:47,638 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2020-02-07 00:46:47,653 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2020-02-07 00:46:47,653 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2020-02-07 00:46:47,653 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2020-02-07 00:46:47,669 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2020-02-07 00:46:47,669 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2020-02-07 00:46:47,669 2684 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2020-02-07 00:46:47,669 2684 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2020-02-07 00:46:47,684 2684 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2020-02-07 00:46:47,684 2684 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2020-02-07 00:46:47,684 2684 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2020-02-07 00:46:47,700 2684 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2020-02-07 00:46:47,700 2684 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2020-02-07 00:46:47,700 2684 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2020-02-07 00:46:47,716 2684 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2020-02-07 00:46:47,716 2684 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2020-02-07 00:46:47,716 2684 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2020-02-07 00:46:47,716 2684 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2020-02-07 00:46:47,731 2684 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2020-02-07 00:46:47,731 2684 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2020-02-07 00:46:47,731 2684 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2020-02-07 00:46:47,747 2684 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2020-02-07 00:46:47,747 2684 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2020-02-07 00:46:47,747 2684 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2020-02-07 00:46:47,762 2684 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2020-02-07 00:46:47,762 2684 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2020-02-07 00:46:47,762 2684 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2020-02-07 00:46:47,778 2684 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2020-02-07 00:46:47,778 2684 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2020-02-07 00:46:47,778 2684 [DEBUG] - ---------------------------Script Execution---------------------------
2020-02-07 00:46:47,794 2684 [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: '',
2020-02-07 00:46:47,810 2684 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\PowerShell\tools\ChocolateyInstall.ps1'
2020-02-07 00:46:48,528 2684 [INFO ] - Running on: Windows Server 2012 R2 Datacenter, (ServerDatacenter), Windows Kernel: 6.3.9600
2020-02-07 00:46:48,731 2684 [INFO ] - Installing for OS: Win8.1/2012R2
2020-02-07 00:46:48,950 2684 [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-202002071246.evtx"'
2020-02-07 00:46:49,091 2684 [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'
2020-02-07 00:46:49,153 2684 [DEBUG] - Running Get-ProcessorBits -compare '64'
2020-02-07 00:46:49,184 2684 [DEBUG] - CPU is 64 bit
2020-02-07 00:46:49,184 2684 [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
2020-02-07 00:46:49,341 2684 [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'
2020-02-07 00:46:49,747 2684 [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'
2020-02-07 00:46:49,763 2684 [DEBUG] - File name determined from url is 'Win8.1AndW2K12R2-KB3191564-x64.msu'
2020-02-07 00:46:49,825 2684 [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'
2020-02-07 00:46:49,825 2684 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2020-02-07 00:46:49,841 2684 [DEBUG] - Request Headers:
2020-02-07 00:46:49,856 2684 [DEBUG] - 'Accept':'*/*'
2020-02-07 00:46:49,856 2684 [DEBUG] - 'User-Agent':'chocolatey command line'
2020-02-07 00:46:49,889 2684 [DEBUG] - Response Headers:
2020-02-07 00:46:49,903 2684 [DEBUG] - 'Connection':'keep-alive'
2020-02-07 00:46:49,903 2684 [DEBUG] - 'Accept-Ranges':'bytes'
2020-02-07 00:46:49,903 2684 [DEBUG] - 'Content-Length':'19878906'
2020-02-07 00:46:49,919 2684 [DEBUG] - 'Content-Type':'application/octet-stream'
2020-02-07 00:46:49,919 2684 [DEBUG] - 'Date':'Fri, 07 Feb 2020 00:47:31 GMT'
2020-02-07 00:46:49,919 2684 [DEBUG] - 'ETag':'"0x8D632CAFF2AE41B"'
2020-02-07 00:46:49,934 2684 [DEBUG] - 'Last-Modified':'Mon, 15 Oct 2018 18:21:16 GMT'
2020-02-07 00:46:49,934 2684 [DEBUG] - 'Server':'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0'
2020-02-07 00:46:49,966 2684 [INFO ] - Downloading PowerShell 64 bit
from 'https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/Win8.1AndW2K12R2-KB3191564-x64.msu'
2020-02-07 00:46:49,981 2684 [INFO ] -
2020-02-07 00:46:50,013 2684 [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'
2020-02-07 00:46:50,028 2684 [DEBUG] - Setting request timeout to 30000
2020-02-07 00:46:50,028 2684 [DEBUG] - Setting read/write timeout to 2700000
2020-02-07 00:46:50,028 2684 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2020-02-07 00:46:50,559 2684 [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
2020-02-07 00:46:52,512 2684 [INFO ] -
2020-02-07 00:46:52,512 2684 [INFO ] - Download of Win8.1AndW2K12R2-KB3191564-x64.msu (18.96 MB) completed.
2020-02-07 00:46:52,528 2684 [INFO ] -
2020-02-07 00:46:56,309 2684 [DEBUG] - No runtime virus checking built into FOSS Chocolatey. Check out Pro/Business - https://chocolatey.org/compare
2020-02-07 00:46:56,325 2684 [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'.
2020-02-07 00:46:56,341 2684 [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'
2020-02-07 00:46:56,372 2684 [DEBUG] - checksum.exe found at 'C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe'
2020-02-07 00:46:56,372 2684 [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"]
2020-02-07 00:46:57,513 2684 [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'.
2020-02-07 00:46:57,591 2684 [DEBUG] - Running Install-ChocolateyInstallPackage -packageName 'PowerShell' -fileType 'msu' -silentArgs '/quiet /norestart /log:"C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell-Install-202002071246.evtx"' -file 'C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell\5.1.14409.20180811\Win8.1AndW2K12R2-KB3191564-x64.msu' -validExitCodes '0 3010' -useOnlyPackageSilentArguments 'False'
2020-02-07 00:46:57,591 2684 [DEBUG] - Running Get-ProcessorBits -compare '32'
2020-02-07 00:46:57,606 2684 [INFO ] - Installing PowerShell...
2020-02-07 00:46:57,622 2684 [INFO ] -
2020-02-07 00:46:57,841 2684 [DEBUG] - Ensuring 'C:\Users\Administrator\AppData\Local\Temp\chocolatey' exists
2020-02-07 00:46:57,934 2684 [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-202002071246.evtx" ' -exeToRun 'C:\Windows\System32\wusa.exe'
2020-02-07 00:46:57,950 2684 [DEBUG] - Unable to use current location for Working Directory. Using Cache Location instead.
2020-02-07 00:46:58,028 2684 [DEBUG] - Test-ProcessAdminRights: returning True
2020-02-07 00:46:58,059 2684 [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-202002071246.evtx" ]. This may take a while, depending on the statements.
2020-02-07 00:50:22,044 2684 [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-202002071246.evtx" ] exited with '3010'.
2020-02-07 00:50:22,091 2684 [DEBUG] - Finishing 'Start-ChocolateyProcessAsAdmin'
2020-02-07 00:50:22,107 2684 [INFO ] - PowerShell has been installed.
2020-02-07 00:50:22,122 2684 [INFO ] -
2020-02-07 00:50:22,138 2684 [WARN ] - WARNING: PowerShell requires a reboot to complete the installation.
2020-02-07 00:50:22,247 2684 [DEBUG] - ----------------------------------------------------------------------
2020-02-07 00:50:22,294 2684 [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'.
2020-02-07 00:50:22,309 2684 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2020-02-07 00:50:22,341 2684 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2020-02-07 00:50:22,356 2684 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\PowerShell'
2020-02-07 00:50:22,404 2684 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\PowerShell\PowerShell.nupkg'
with checksum 'EFEFB5386C6A693490A02BB189EA148D'
2020-02-07 00:50:22,404 2684 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\PowerShell\PowerShell.nuspec'
with checksum 'EE595452035C1EDB3CD1FC4B3FC3AF27'
2020-02-07 00:50:22,419 2684 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\PowerShell\tools\ChocolateyInstall.ps1'
with checksum '08A23313BC54709344AE618CE6020BE3'
2020-02-07 00:50:22,419 2684 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\PowerShell\tools\chocolateyUninstall.ps1'
with checksum '06BDEE8254D1120913F843855A88FA5B'
2020-02-07 00:50:22,419 2684 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\PowerShell.5.1.14409.20180811".
2020-02-07 00:50:22,434 2684 [DEBUG] - There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\PowerShell.5.1.14409.20180811\.files'
2020-02-07 00:50:22,434 2684 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\PowerShell.5.1.14409.20180811\.extra".
2020-02-07 00:50:22,450 2684 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\PowerShell.5.1.14409.20180811\.version".
2020-02-07 00:50:22,450 2684 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\PowerShell.5.1.14409.20180811\.sxs".
2020-02-07 00:50:22,450 2684 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\PowerShell.5.1.14409.20180811\.pin".
2020-02-07 00:50:22,466 2684 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2020-02-07 00:50:22,466 2684 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\PowerShell\.chocolateyPending".
2020-02-07 00:50:22,466 2684 [INFO ] - The install of powershell was successful.
2020-02-07 00:50:22,466 2684 [INFO ] - Software installed as 'msu', install location is likely default.
2020-02-07 00:50:22,481 2684 [INFO ] - [NuGet] Installing 'ad-acl-scanner 5.9'.
2020-02-07 00:50:22,481 2684 [DEBUG] - [NuGet] Added file 'chocolateyinstall.ps1' to folder 'ad-acl-scanner\tools'.
2020-02-07 00:50:22,481 2684 [DEBUG] - [NuGet] Added file 'chocolateyuninstall.ps1' to folder 'ad-acl-scanner\tools'.
2020-02-07 00:50:22,497 2684 [DEBUG] - [NuGet] Added file 'ad-acl-scanner.nupkg' to folder 'ad-acl-scanner'.
2020-02-07 00:50:22,731 2684 [DEBUG] - [NuGet] Added file 'ad-acl-scanner.nuspec' to folder 'ad-acl-scanner'.
2020-02-07 00:50:22,731 2684 [INFO ] - [NuGet] Successfully installed 'ad-acl-scanner 5.9'.
2020-02-07 00:50:22,747 2684 [INFO ] -
ad-acl-scanner v5.9 (forced) [Approved]
2020-02-07 00:50:22,747 2684 [INFO ] - ad-acl-scanner package files install completed. Performing other installation steps.
2020-02-07 00:50:22,764 2684 [DEBUG] - Setting installer args for ad-acl-scanner
2020-02-07 00:50:22,764 2684 [DEBUG] - Setting package parameters for ad-acl-scanner
2020-02-07 00:50:22,779 2684 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\chocolateyinstall.ps1':
2020-02-07 00:50:22,779 2684 [DEBUG] - $ErrorActionPreference = 'Stop'
$packageName = 'ad-acl-scanner'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url = 'https://raw.githubusercontent.com/canix1/ADACLScanner/master/ADACLScan.ps1'
$checksum = 'C276923318ED324EA213B4F7DEF36799CB1800294B39148E2804BFB0D315EE95'
$fileName = 'ADACLScan.ps1'
$shortcutName = 'AD ACL Scanner'
$FileFullpath = "$toolsDir\$fileName"
$packageArgs = @{
packageName = $packageName
fileType = ''
url = $url
FileFullPath = $FileFullpath
checksum = $checksum
checksumType = 'sha256'
}
Get-ChocolateyWebFile @packageArgs
Install-ChocolateyShortcut -shortcutFilePath "$ENV:USERPROFILE\Desktop\$shortcutName.lnk" -targetPath $FileFullpath -WorkingDirectory "$toolsDir"
2020-02-07 00:50:22,779 2684 [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\ad-acl-scanner\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters ''']
2020-02-07 00:50:22,794 2684 [DEBUG] - Redirecting Microsoft.PowerShell.Security, requested by ''
2020-02-07 00:50:22,794 2684 [DEBUG] - Attempting to load assembly Microsoft.PowerShell.Security failed:
Could not load file or assembly 'Microsoft.PowerShell.Security, Version=5.0.0.0' or one of its dependencies. The system cannot find the file specified.
2020-02-07 00:50:22,809 2684 [DEBUG] - Attempting to load assembly Microsoft.PowerShell.Security failed:
Could not load file or assembly 'Microsoft.PowerShell.Security, Version=4.0.0.0' or one of its dependencies. The system cannot find the file specified.
2020-02-07 00:50:22,809 2684 [DEBUG] - Attempting to load assembly Microsoft.PowerShell.Security failed:
Could not load file or assembly 'Microsoft.PowerShell.Security, Version=3.0.0.0' or one of its dependencies. The system cannot find the file specified.
2020-02-07 00:50:22,809 2684 [DEBUG] - Attempting to load assembly Microsoft.PowerShell.Security failed:
Could not load file or assembly 'Microsoft.PowerShell.Security, Version=1.0.0.0' or one of its dependencies. The system cannot find the file specified.
2020-02-07 00:50:23,013 2684 [DEBUG] - Host version is 4.0, PowerShell Version is '4.0' and CLR Version is '4.0.30319.33440'.
2020-02-07 00:50:23,138 2684 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2020-02-07 00:50:23,138 2684 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2020-02-07 00:50:23,153 2684 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2020-02-07 00:50:23,153 2684 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2020-02-07 00:50:23,153 2684 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2020-02-07 00:50:23,169 2684 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2020-02-07 00:50:23,169 2684 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2020-02-07 00:50:23,169 2684 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2020-02-07 00:50:23,169 2684 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2020-02-07 00:50:23,184 2684 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2020-02-07 00:50:23,184 2684 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2020-02-07 00:50:23,184 2684 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2020-02-07 00:50:23,200 2684 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2020-02-07 00:50:23,200 2684 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2020-02-07 00:50:23,200 2684 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2020-02-07 00:50:23,200 2684 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2020-02-07 00:50:23,216 2684 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2020-02-07 00:50:23,216 2684 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2020-02-07 00:50:23,216 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2020-02-07 00:50:23,231 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2020-02-07 00:50:23,231 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2020-02-07 00:50:23,231 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2020-02-07 00:50:23,231 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2020-02-07 00:50:23,247 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2020-02-07 00:50:23,247 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2020-02-07 00:50:23,247 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2020-02-07 00:50:23,247 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2020-02-07 00:50:23,263 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2020-02-07 00:50:23,263 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2020-02-07 00:50:23,263 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2020-02-07 00:50:23,278 2684 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2020-02-07 00:50:23,278 2684 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2020-02-07 00:50:23,278 2684 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2020-02-07 00:50:23,294 2684 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2020-02-07 00:50:23,294 2684 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2020-02-07 00:50:23,294 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2020-02-07 00:50:23,294 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2020-02-07 00:50:23,309 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2020-02-07 00:50:23,309 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2020-02-07 00:50:23,309 2684 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2020-02-07 00:50:23,325 2684 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2020-02-07 00:50:23,325 2684 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2020-02-07 00:50:23,325 2684 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2020-02-07 00:50:23,341 2684 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2020-02-07 00:50:23,341 2684 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2020-02-07 00:50:23,341 2684 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2020-02-07 00:50:23,341 2684 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2020-02-07 00:50:23,356 2684 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2020-02-07 00:50:23,356 2684 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2020-02-07 00:50:23,356 2684 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2020-02-07 00:50:23,372 2684 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2020-02-07 00:50:23,372 2684 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2020-02-07 00:50:23,372 2684 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2020-02-07 00:50:23,372 2684 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2020-02-07 00:50:23,387 2684 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2020-02-07 00:50:23,387 2684 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2020-02-07 00:50:23,387 2684 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2020-02-07 00:50:23,403 2684 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2020-02-07 00:50:23,403 2684 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2020-02-07 00:50:23,403 2684 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2020-02-07 00:50:23,419 2684 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2020-02-07 00:50:23,419 2684 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2020-02-07 00:50:23,419 2684 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2020-02-07 00:50:23,419 2684 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2020-02-07 00:50:23,434 2684 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2020-02-07 00:50:23,434 2684 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2020-02-07 00:50:23,434 2684 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2020-02-07 00:50:23,450 2684 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2020-02-07 00:50:23,450 2684 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2020-02-07 00:50:23,450 2684 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2020-02-07 00:50:23,450 2684 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2020-02-07 00:50:23,466 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2020-02-07 00:50:23,466 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2020-02-07 00:50:23,466 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2020-02-07 00:50:23,481 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2020-02-07 00:50:23,481 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2020-02-07 00:50:23,481 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2020-02-07 00:50:23,481 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2020-02-07 00:50:23,497 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2020-02-07 00:50:23,497 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2020-02-07 00:50:23,497 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2020-02-07 00:50:23,513 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2020-02-07 00:50:23,513 2684 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2020-02-07 00:50:23,513 2684 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2020-02-07 00:50:23,513 2684 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2020-02-07 00:50:23,528 2684 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2020-02-07 00:50:23,528 2684 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2020-02-07 00:50:23,528 2684 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2020-02-07 00:50:23,544 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2020-02-07 00:50:23,544 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2020-02-07 00:50:23,544 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2020-02-07 00:50:23,559 2684 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2020-02-07 00:50:23,559 2684 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2020-02-07 00:50:23,559 2684 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2020-02-07 00:50:23,559 2684 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2020-02-07 00:50:23,575 2684 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2020-02-07 00:50:23,575 2684 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2020-02-07 00:50:23,575 2684 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2020-02-07 00:50:23,591 2684 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2020-02-07 00:50:23,591 2684 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2020-02-07 00:50:23,591 2684 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2020-02-07 00:50:23,606 2684 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2020-02-07 00:50:23,606 2684 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2020-02-07 00:50:23,606 2684 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2020-02-07 00:50:23,622 2684 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2020-02-07 00:50:23,622 2684 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2020-02-07 00:50:23,622 2684 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2020-02-07 00:50:23,622 2684 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2020-02-07 00:50:23,638 2684 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2020-02-07 00:50:23,638 2684 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2020-02-07 00:50:23,638 2684 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2020-02-07 00:50:23,653 2684 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2020-02-07 00:50:23,653 2684 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2020-02-07 00:50:23,653 2684 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2020-02-07 00:50:23,669 2684 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2020-02-07 00:50:23,669 2684 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2020-02-07 00:50:23,669 2684 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2020-02-07 00:50:23,669 2684 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2020-02-07 00:50:23,684 2684 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2020-02-07 00:50:23,684 2684 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2020-02-07 00:50:23,684 2684 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2020-02-07 00:50:23,700 2684 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2020-02-07 00:50:23,700 2684 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2020-02-07 00:50:23,700 2684 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2020-02-07 00:50:23,716 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2020-02-07 00:50:23,716 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2020-02-07 00:50:23,716 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2020-02-07 00:50:23,731 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2020-02-07 00:50:23,731 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2020-02-07 00:50:23,731 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2020-02-07 00:50:23,747 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2020-02-07 00:50:23,747 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2020-02-07 00:50:23,747 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2020-02-07 00:50:23,747 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2020-02-07 00:50:23,763 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2020-02-07 00:50:23,763 2684 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2020-02-07 00:50:23,763 2684 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2020-02-07 00:50:23,778 2684 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2020-02-07 00:50:23,778 2684 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2020-02-07 00:50:23,778 2684 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2020-02-07 00:50:23,794 2684 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2020-02-07 00:50:23,794 2684 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2020-02-07 00:50:23,794 2684 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2020-02-07 00:50:23,809 2684 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2020-02-07 00:50:23,809 2684 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2020-02-07 00:50:23,809 2684 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2020-02-07 00:50:23,825 2684 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2020-02-07 00:50:23,825 2684 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2020-02-07 00:50:23,825 2684 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2020-02-07 00:50:23,841 2684 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2020-02-07 00:50:23,841 2684 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2020-02-07 00:50:23,841 2684 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2020-02-07 00:50:23,856 2684 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2020-02-07 00:50:23,856 2684 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2020-02-07 00:50:23,856 2684 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2020-02-07 00:50:23,872 2684 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2020-02-07 00:50:23,872 2684 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2020-02-07 00:50:23,872 2684 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2020-02-07 00:50:23,872 2684 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2020-02-07 00:50:23,888 2684 [DEBUG] - ---------------------------Script Execution---------------------------
2020-02-07 00:50:23,888 2684 [DEBUG] - Running 'ChocolateyScriptRunner' for ad-acl-scanner v5.9 with packageScript 'C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\chocolateyinstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\ad-acl-scanner', installArguments: '', packageParameters: '',
2020-02-07 00:50:23,903 2684 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\chocolateyinstall.ps1'
2020-02-07 00:50:23,934 2684 [DEBUG] - Running Get-ChocolateyWebFile -checksum 'C276923318ED324EA213B4F7DEF36799CB1800294B39148E2804BFB0D315EE95' -checksumType 'sha256' -fileFullPath 'C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\ADACLScan.ps1' -url 'https://raw.githubusercontent.com/canix1/ADACLScanner/master/ADACLScan.ps1' -packageName 'ad-acl-scanner'
2020-02-07 00:50:23,950 2684 [DEBUG] - Running Get-ProcessorBits -compare '64'
2020-02-07 00:50:23,950 2684 [DEBUG] - CPU is 64 bit
2020-02-07 00:50:23,966 2684 [DEBUG] - Running Get-WebHeaders -url 'https://raw.githubusercontent.com/canix1/ADACLScanner/master/ADACLScan.ps1' -ErrorAction 'Stop'
2020-02-07 00:50:23,966 2684 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2020-02-07 00:50:23,981 2684 [DEBUG] - Request Headers:
2020-02-07 00:50:23,981 2684 [DEBUG] - 'Accept':'*/*'
2020-02-07 00:50:23,981 2684 [DEBUG] - 'User-Agent':'chocolatey command line'
2020-02-07 00:50:24,264 2684 [DEBUG] - Response Headers:
2020-02-07 00:50:24,278 2684 [DEBUG] - 'Content-Security-Policy':'default-src 'none'; style-src 'unsafe-inline'; sandbox'
2020-02-07 00:50:24,278 2684 [DEBUG] - 'Strict-Transport-Security':'max-age=31536000'
2020-02-07 00:50:24,278 2684 [DEBUG] - 'X-Content-Type-Options':'nosniff'
2020-02-07 00:50:24,278 2684 [DEBUG] - 'X-Frame-Options':'deny'
2020-02-07 00:50:24,294 2684 [DEBUG] - 'X-XSS-Protection':'1; mode=block'
2020-02-07 00:50:24,294 2684 [DEBUG] - 'X-GitHub-Request-Id':'F640:63C6:58A8B:6D1C7:5E3CB477'
2020-02-07 00:50:24,294 2684 [DEBUG] - 'Accept-Ranges':'bytes'
2020-02-07 00:50:24,294 2684 [DEBUG] - 'Content-Length':'88956'
2020-02-07 00:50:24,309 2684 [DEBUG] - 'Cache-Control':'max-age=300'
2020-02-07 00:50:24,309 2684 [DEBUG] - 'Content-Type':'text/plain; charset=utf-8'
2020-02-07 00:50:24,309 2684 [DEBUG] - 'Date':'Fri, 07 Feb 2020 00:51:05 GMT'
2020-02-07 00:50:24,325 2684 [DEBUG] - 'ETag':'W/"3688804e28e1cc411ba1c7179cb6a1113a97c9795503aab0a3795b6d2af5be10"'
2020-02-07 00:50:24,325 2684 [DEBUG] - 'Via':'1.1 varnish (Varnish/6.0),1.1 varnish'
2020-02-07 00:50:24,325 2684 [DEBUG] - 'Connection':'keep-alive'
2020-02-07 00:50:24,325 2684 [DEBUG] - 'X-Served-By':'cache-sea4477-SEA'
2020-02-07 00:50:24,341 2684 [DEBUG] - 'X-Cache':'MISS'
2020-02-07 00:50:24,341 2684 [DEBUG] - 'X-Cache-Hits':'0'
2020-02-07 00:50:24,341 2684 [DEBUG] - 'X-Timer':'S1581036665.445507,VS0,VE177'
2020-02-07 00:50:24,341 2684 [DEBUG] - 'Vary':'Authorization,Accept-Encoding'
2020-02-07 00:50:24,356 2684 [DEBUG] - 'Access-Control-Allow-Origin':'*'
2020-02-07 00:50:24,356 2684 [DEBUG] - 'X-Fastly-Request-ID':'f58852fa0b0be4fc790770e53d7f2a787ed0a28d'
2020-02-07 00:50:24,356 2684 [DEBUG] - 'Expires':'Fri, 07 Feb 2020 00:56:05 GMT'
2020-02-07 00:50:24,372 2684 [DEBUG] - 'Source-Age':'0'
2020-02-07 00:50:24,372 2684 [INFO ] - Downloading ad-acl-scanner
from 'https://raw.githubusercontent.com/canix1/ADACLScanner/master/ADACLScan.ps1'
2020-02-07 00:50:24,372 2684 [INFO ] -
2020-02-07 00:50:24,387 2684 [DEBUG] - Running Get-WebFile -url 'https://raw.githubusercontent.com/canix1/ADACLScanner/master/ADACLScan.ps1' -fileName 'C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\ADACLScan.ps1' -options 'System.Collections.Hashtable'
2020-02-07 00:50:24,387 2684 [DEBUG] - Setting request timeout to 30000
2020-02-07 00:50:24,403 2684 [DEBUG] - Setting read/write timeout to 2700000
2020-02-07 00:50:24,403 2684 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2020-02-07 00:50:24,434 2684 [WARN ] - WARNING: C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\ADACLScan.ps1 is of content type text/plain; charset=utf-8
2020-02-07 00:50:24,559 2684 [INFO ] -
2020-02-07 00:50:24,575 2684 [INFO ] - Download of ADACLScan.ps1 (-1 B) completed.
2020-02-07 00:50:24,575 2684 [INFO ] -
2020-02-07 00:50:27,606 2684 [DEBUG] - No runtime virus checking built into FOSS Chocolatey. Check out Pro/Business - https://chocolatey.org/compare
2020-02-07 00:50:27,606 2684 [DEBUG] - Verifying package provided checksum of 'C276923318ED324EA213B4F7DEF36799CB1800294B39148E2804BFB0D315EE95' for 'C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\ADACLScan.ps1'.
2020-02-07 00:50:27,622 2684 [DEBUG] - Running Get-ChecksumValid -file 'C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\ADACLScan.ps1' -checksum 'C276923318ED324EA213B4F7DEF36799CB1800294B39148E2804BFB0D315EE95' -checksumType 'sha256' -originalUrl 'https://raw.githubusercontent.com/canix1/ADACLScanner/master/ADACLScan.ps1'
2020-02-07 00:50:27,622 2684 [DEBUG] - checksum.exe found at 'C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe'
2020-02-07 00:50:27,637 2684 [DEBUG] - Executing command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="C276923318ED324EA213B4F7DEF36799CB1800294B39148E2804BFB0D315EE95" -t="sha256" -f="C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\ADACLScan.ps1"]
2020-02-07 00:50:27,778 2684 [DEBUG] - Command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="C276923318ED324EA213B4F7DEF36799CB1800294B39148E2804BFB0D315EE95" -t="sha256" -f="C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\ADACLScan.ps1"] exited with '1'.
2020-02-07 00:50:27,856 2684 [ERROR] - ERROR: Checksum for 'C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\ADACLScan.ps1' did not meet 'C276923318ED324EA213B4F7DEF36799CB1800294B39148E2804BFB0D315EE95' for checksum type 'sha256'. Consider passing the actual checksums through with --checksum --checksum64 once you validate the checksums are appropriate. A less secure option is to pass --ignore-checksums if necessary.
at Get-ChecksumValid, C:\ProgramData\chocolatey\helpers\functions\Get-CheckSumValid.ps1: line 210
at Get-ChocolateyWebFile, C:\ProgramData\chocolatey\helpers\functions\Get-ChocolateyWebFile.ps1: line 385
at <ScriptBlock>, C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\chocolateyinstall.ps1: line 20
at <ScriptBlock>, C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1: line 49
at <ScriptBlock>, <No file>: line 1
2020-02-07 00:50:27,872 2684 [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\ad-acl-scanner\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '''] exited with '-1'.
2020-02-07 00:50:27,872 2684 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2020-02-07 00:50:27,903 2684 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2020-02-07 00:50:27,919 2684 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\ad-acl-scanner'
2020-02-07 00:50:27,919 2684 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\ad-acl-scanner\ad-acl-scanner.nupkg'
with checksum 'C560AE7143DC4788B6B3DB2FA3E3F7F9'
2020-02-07 00:50:27,919 2684 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\ad-acl-scanner\ad-acl-scanner.nuspec'
with checksum 'F662C439A42B5625A388EB7710F9E5E5'
2020-02-07 00:50:27,934 2684 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\ADACLScan.ps1'
with checksum 'F723F83BBB5FFEBFE7A1ED15C0833249'
2020-02-07 00:50:27,934 2684 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\ADACLScan.ps1.istext'
with checksum '72F06AA3C13880ABFAAC0E6A1064A9AF'
2020-02-07 00:50:27,934 2684 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\chocolateyinstall.ps1'
with checksum '913B65554A9A3C347540C08CB307AF30'
2020-02-07 00:50:27,950 2684 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\chocolateyuninstall.ps1'
with checksum '6D732539CB2BD47D86DE30DA631CDE35'
2020-02-07 00:50:27,950 2684 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\ad-acl-scanner.5.9".
2020-02-07 00:50:27,950 2684 [DEBUG] - There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\ad-acl-scanner.5.9\.files'
2020-02-07 00:50:27,966 2684 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\ad-acl-scanner.5.9\.arguments".
2020-02-07 00:50:27,966 2684 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\ad-acl-scanner.5.9\.extra".
2020-02-07 00:50:27,966 2684 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\ad-acl-scanner.5.9\.version".
2020-02-07 00:50:27,981 2684 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\ad-acl-scanner.5.9\.sxs".
2020-02-07 00:50:27,981 2684 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\ad-acl-scanner.5.9\.pin".
2020-02-07 00:50:27,981 2684 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2020-02-07 00:50:27,997 2684 [ERROR] - The install of ad-acl-scanner was NOT successful.
2020-02-07 00:50:27,997 2684 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\chocolateyinstall.ps1'.
See log for details.
2020-02-07 00:50:28,013 2684 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bad".
2020-02-07 00:50:28,028 2684 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\ad-acl-scanner'
to 'C:\ProgramData\chocolatey\lib-bad\ad-acl-scanner'
2020-02-07 00:50:30,044 2684 [DEBUG] - Attempting to delete file "C:\Users\Administrator\AppData\Local\NuGet\Cache\ad-acl-scanner.5.9.nupkg".
2020-02-07 00:50:30,153 2684 [WARN ] -
Chocolatey installed 2/3 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2020-02-07 00:50:30,169 2684 [INFO ] -
2020-02-07 00:50:30,169 2684 [WARN ] - Packages requiring reboot:
2020-02-07 00:50:30,169 2684 [WARN ] - - powershell (exit code 3010)
2020-02-07 00:50:30,184 2684 [WARN ] -
The recent package changes indicate a reboot is necessary.
Please reboot at your earliest convenience.
2020-02-07 00:50:30,184 2684 [INFO ] -
2020-02-07 00:50:30,184 2684 [ERROR] - Failures
2020-02-07 00:50:30,200 2684 [ERROR] - - ad-acl-scanner (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\ad-acl-scanner\tools\chocolateyinstall.ps1'.
See log for details.
2020-02-07 00:50:30,200 2684 [WARN ] -
Enjoy using Chocolatey? Explore more amazing features to take your
experience to the next level at
https://chocolatey.org/compare
2020-02-07 00:50:30,216 2684 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2020-02-07 00:50:30,278 2684 [DEBUG] - Exiting with -1
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.