Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jberezanski/cb4853e24430bd1a4ecfbbaab2b760ad to your computer and use it in GitHub Desktop.
Save jberezanski/cb4853e24430bd1a4ecfbbaab2b760ad to your computer and use it in GitHub Desktop.
Choco 0.9.10-rc1 security tests
C:\>whoami /all | findstr BUILTIN\Administrators
BUILTIN\Administrators Alias S
-1-5-32-544 Mandatory group, Enabled by default
, Enabled group, Group owner
C:\>powershell -ExecutionPolicy Bypass
Windows PowerShell
Copyright (C) 2014 Microsoft Corporation. All rights reserved.
PS C:\> $Env:ChocolateyInstall
PS C:\> iwr https://chocolatey.org/installabsolutelatest.ps1 -useb | iex
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 2016-06-15 23:47 chocInstall
Downloading https://chocolatey.org/api/v2/package/chocolatey/0.9.10-rc1 to C:\U
sers\Admin\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip
Download 7Zip commandline tool
Downloading https://chocolatey.org/7za.exe to C:\Users\Admin\AppData\Local\Temp
\chocolatey\chocInstall\7za.exe
Extracting C:\Users\Admin\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.
zip to C:\Users\Admin\AppData\Local\Temp\chocolatey\chocInstall...
7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
Processing archive: C:\Users\Admin\AppData\Local\Temp\chocolatey\chocInstall\cho
colatey.zip
Extracting _rels\.rels
Extracting chocolatey.nuspec
Extracting tools\chocolateyInstall.ps1
Extracting tools\chocolateysetup.psm1
Extracting tools\init.ps1
Extracting tools\chocolateyInstall\choco.exe
Extracting tools\chocolateyInstall\choco.exe.ignore
Extracting tools\chocolateyInstall\LICENSE.txt
Extracting tools\chocolateyInstall\helpers\chocolateyInstaller.psm1
Extracting tools\chocolateyInstall\helpers\chocolateyProfile.psm1
Extracting tools\chocolateyInstall\helpers\chocolateyScriptRunner.ps1
Extracting tools\chocolateyInstall\helpers\ChocolateyTabExpansion.ps1
Extracting tools\chocolateyInstall\helpers\functions\Format-FileSize.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-CheckSumValid.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-ChocolateyUnzip.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-ChocolateyWebFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-EnvironmentVariable.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Get-EnvironmentVariableNam
es.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-FtpFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-OSArchitectureWidth.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Get-ToolsLocation.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-UACEnabled.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-UninstallRegistryKey.p
s1
Extracting tools\chocolateyInstall\helpers\functions\Get-VirusCheckValid.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-WebFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-WebFileName.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-WebHeaders.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-BinFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyDesktopL
ink.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyEnvironm
entVariable.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyExplorer
MenuItem.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyFileAsso
ciation.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyInstallP
ackage.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyPackage.
ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyPath.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyPinnedTa
skBarItem.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyPowershe
llCommand.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyShortcut
.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyVsixPack
age.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyZipPacka
ge.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-Vsix.ps1
Extracting tools\chocolateyInstall\helpers\functions\Set-EnvironmentVariable.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Set-PowerShellExitCode.ps1
Extracting tools\chocolateyInstall\helpers\functions\Start-ChocolateyProcessAsA
dmin.ps1
Extracting tools\chocolateyInstall\helpers\functions\Test-ProcessAdminRights.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Uninstall-BinFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Uninstall-ChocolateyEnviro
nmentVariable.ps1
Extracting tools\chocolateyInstall\helpers\functions\Uninstall-ChocolateyPackag
e.ps1
Extracting tools\chocolateyInstall\helpers\functions\UnInstall-ChocolateyZipPac
kage.ps1
Extracting tools\chocolateyInstall\helpers\functions\Update-SessionEnvironment.
ps1
Extracting tools\chocolateyInstall\helpers\functions\Write-ChocolateyFailure.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Write-ChocolateySuccess.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Write-FileUpdateLog.ps1
Extracting tools\chocolateyInstall\redirects\choco.exe
Extracting tools\chocolateyInstall\redirects\choco.exe.ignore
Extracting tools\chocolateyInstall\redirects\chocolatey.exe
Extracting tools\chocolateyInstall\redirects\chocolatey.exe.ignore
Extracting tools\chocolateyInstall\redirects\cinst.exe
Extracting tools\chocolateyInstall\redirects\cinst.exe.ignore
Extracting tools\chocolateyInstall\redirects\clist.exe
Extracting tools\chocolateyInstall\redirects\clist.exe.ignore
Extracting tools\chocolateyInstall\redirects\cpack.exe
Extracting tools\chocolateyInstall\redirects\cpack.exe.ignore
Extracting tools\chocolateyInstall\redirects\cpush.exe
Extracting tools\chocolateyInstall\redirects\cpush.exe.ignore
Extracting tools\chocolateyInstall\redirects\cuninst.exe
Extracting tools\chocolateyInstall\redirects\cuninst.exe.ignore
Extracting tools\chocolateyInstall\redirects\cup.exe
Extracting tools\chocolateyInstall\redirects\cup.exe.ignore
Extracting tools\chocolateyInstall\redirects\cver.exe
Extracting tools\chocolateyInstall\redirects\cver.exe.ignore
Extracting tools\chocolateyInstall\redirects\RefreshEnv.cmd
Extracting tools\chocolateyInstall\tools\7za.exe
Extracting tools\chocolateyInstall\tools\7za.exe.ignore
Extracting tools\chocolateyInstall\tools\7za.exe.manifest
Extracting tools\chocolateyInstall\tools\7zip.license.txt
Extracting tools\chocolateyInstall\tools\checksum.exe
Extracting tools\chocolateyInstall\tools\checksum.exe.config
Extracting tools\chocolateyInstall\tools\checksum.exe.ignore
Extracting tools\chocolateyInstall\tools\checksum.license.txt
Extracting tools\chocolateyInstall\tools\detector.zip
Extracting tools\chocolateyInstall\tools\shimgen.exe
Extracting tools\chocolateyInstall\tools\shimgen.exe.ignore
Extracting tools\chocolateyInstall\tools\shimgen.license.txt
Extracting package\services\metadata\core-properties\26bc440e034c42279521b7fc60
b97d13.psmdcp
Extracting [Content_Types].xml
Everything is Ok
Files: 86
Size: 11522961
Compressed: 6344391
Installing chocolatey on this machine
Creating ChocolateyInstall as an environment variable (targeting 'Machine')
Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
WARNING: It's very likely you will need to close and reopen your shell
before you can use choco.
Restricting write permissions to Administrators
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\ProgramData\chocolatey\lib'
(i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName
'.
Creating Chocolatey folders if they do not already exist.
WARNING: You can safely ignore errors related to missing log files when
upgrading from a version of Chocolatey less than 0.9.9.
'Batch file could not be found' is also safe to ignore.
'The system cannot find the file specified' - also safe.
chocolatey.nupkg file not installed in lib.
Attempting to locate it from bootstrapper.
PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Add
ing...
Adding Chocolatey to the profile. This will provide tab completion, refreshenv,
etc.
WARNING: Chocolatey profile installed. Reload your profile - type . $profile
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
first prior to using choco.
Ensuring chocolatey commands are on the path
Ensuring chocolatey.nupkg is in the lib folder
PS C:\> $Env:ChocolateyInstall
C:\ProgramData\chocolatey
PS C:\> Get-Acl $Env:ChocolateyInstall | fl
Path : Microsoft.PowerShell.Core\FileSystem::C:\ProgramData\chocolatey
Owner : BUILTIN\Administrators
Group : W8164\None
Access : NT AUTHORITY\SYSTEM Allow FullControl
BUILTIN\Administrators Allow FullControl
BUILTIN\Users Allow ReadAndExecute, Synchronize
Audit :
Sddl : O:BAG:S-1-5-21-3166762856-932011547-3619178707-513D:PAI(A;OICI;FA;;;SY
)(A;OICI;FA;;;BA)(A;OICI;0x1200a9;;;BU)
C:\>whoami /all | findstr BUILTIN\Administrators
BUILTIN\Administrators Alias S
-1-5-32-544 Mandatory group, Enabled by default
, Enabled group, Group owner
C:\>powershell -ExecutionPolicy Bypass
Windows PowerShell
Copyright (C) 2014 Microsoft Corporation. All rights reserved.
PS C:\> $Env:ChocolateyInstall
PS C:\> $Env:ChocolateyInstall = "$Env:LocalAppData\Chocolatey"
PS C:\> iwr https://chocolatey.org/installabsolutelatest.ps1 -useb | iex
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 2016-06-16 00:02 chocInstall
Downloading https://chocolatey.org/api/v2/package/chocolatey/0.9.10-rc1 to C:\U
sers\Admin\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip
Download 7Zip commandline tool
Downloading https://chocolatey.org/7za.exe to C:\Users\Admin\AppData\Local\Temp
\chocolatey\chocInstall\7za.exe
Extracting C:\Users\Admin\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.
zip to C:\Users\Admin\AppData\Local\Temp\chocolatey\chocInstall...
7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
Processing archive: C:\Users\Admin\AppData\Local\Temp\chocolatey\chocInstall\cho
colatey.zip
Extracting _rels\.rels
Extracting chocolatey.nuspec
Extracting tools\chocolateyInstall.ps1
Extracting tools\chocolateysetup.psm1
Extracting tools\init.ps1
Extracting tools\chocolateyInstall\choco.exe
Extracting tools\chocolateyInstall\choco.exe.ignore
Extracting tools\chocolateyInstall\LICENSE.txt
Extracting tools\chocolateyInstall\helpers\chocolateyInstaller.psm1
Extracting tools\chocolateyInstall\helpers\chocolateyProfile.psm1
Extracting tools\chocolateyInstall\helpers\chocolateyScriptRunner.ps1
Extracting tools\chocolateyInstall\helpers\ChocolateyTabExpansion.ps1
Extracting tools\chocolateyInstall\helpers\functions\Format-FileSize.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-CheckSumValid.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-ChocolateyUnzip.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-ChocolateyWebFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-EnvironmentVariable.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Get-EnvironmentVariableNam
es.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-FtpFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-OSArchitectureWidth.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Get-ToolsLocation.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-UACEnabled.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-UninstallRegistryKey.p
s1
Extracting tools\chocolateyInstall\helpers\functions\Get-VirusCheckValid.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-WebFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-WebFileName.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-WebHeaders.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-BinFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyDesktopL
ink.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyEnvironm
entVariable.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyExplorer
MenuItem.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyFileAsso
ciation.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyInstallP
ackage.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyPackage.
ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyPath.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyPinnedTa
skBarItem.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyPowershe
llCommand.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyShortcut
.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyVsixPack
age.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyZipPacka
ge.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-Vsix.ps1
Extracting tools\chocolateyInstall\helpers\functions\Set-EnvironmentVariable.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Set-PowerShellExitCode.ps1
Extracting tools\chocolateyInstall\helpers\functions\Start-ChocolateyProcessAsA
dmin.ps1
Extracting tools\chocolateyInstall\helpers\functions\Test-ProcessAdminRights.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Uninstall-BinFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Uninstall-ChocolateyEnviro
nmentVariable.ps1
Extracting tools\chocolateyInstall\helpers\functions\Uninstall-ChocolateyPackag
e.ps1
Extracting tools\chocolateyInstall\helpers\functions\UnInstall-ChocolateyZipPac
kage.ps1
Extracting tools\chocolateyInstall\helpers\functions\Update-SessionEnvironment.
ps1
Extracting tools\chocolateyInstall\helpers\functions\Write-ChocolateyFailure.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Write-ChocolateySuccess.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Write-FileUpdateLog.ps1
Extracting tools\chocolateyInstall\redirects\choco.exe
Extracting tools\chocolateyInstall\redirects\choco.exe.ignore
Extracting tools\chocolateyInstall\redirects\chocolatey.exe
Extracting tools\chocolateyInstall\redirects\chocolatey.exe.ignore
Extracting tools\chocolateyInstall\redirects\cinst.exe
Extracting tools\chocolateyInstall\redirects\cinst.exe.ignore
Extracting tools\chocolateyInstall\redirects\clist.exe
Extracting tools\chocolateyInstall\redirects\clist.exe.ignore
Extracting tools\chocolateyInstall\redirects\cpack.exe
Extracting tools\chocolateyInstall\redirects\cpack.exe.ignore
Extracting tools\chocolateyInstall\redirects\cpush.exe
Extracting tools\chocolateyInstall\redirects\cpush.exe.ignore
Extracting tools\chocolateyInstall\redirects\cuninst.exe
Extracting tools\chocolateyInstall\redirects\cuninst.exe.ignore
Extracting tools\chocolateyInstall\redirects\cup.exe
Extracting tools\chocolateyInstall\redirects\cup.exe.ignore
Extracting tools\chocolateyInstall\redirects\cver.exe
Extracting tools\chocolateyInstall\redirects\cver.exe.ignore
Extracting tools\chocolateyInstall\redirects\RefreshEnv.cmd
Extracting tools\chocolateyInstall\tools\7za.exe
Extracting tools\chocolateyInstall\tools\7za.exe.ignore
Extracting tools\chocolateyInstall\tools\7za.exe.manifest
Extracting tools\chocolateyInstall\tools\7zip.license.txt
Extracting tools\chocolateyInstall\tools\checksum.exe
Extracting tools\chocolateyInstall\tools\checksum.exe.config
Extracting tools\chocolateyInstall\tools\checksum.exe.ignore
Extracting tools\chocolateyInstall\tools\checksum.license.txt
Extracting tools\chocolateyInstall\tools\detector.zip
Extracting tools\chocolateyInstall\tools\shimgen.exe
Extracting tools\chocolateyInstall\tools\shimgen.exe.ignore
Extracting tools\chocolateyInstall\tools\shimgen.license.txt
Extracting package\services\metadata\core-properties\26bc440e034c42279521b7fc60
b97d13.psmdcp
Extracting [Content_Types].xml
Everything is Ok
Files: 86
Size: 11522961
Compressed: 6344391
Installing chocolatey on this machine
Restricting write permissions to Administrators
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\Users\Admin\AppData\Local\Chocolatey\lib'
(i.e. C:\Users\Admin\AppData\Local\Chocolatey\lib\yourPackageName).
A shim file for the command line goes to 'C:\Users\Admin\AppData\Local\Chocolat
ey\bin'
and points to an executable in 'C:\Users\Admin\AppData\Local\Chocolatey\lib\y
ourPackageName'.
Creating Chocolatey folders if they do not already exist.
WARNING: You can safely ignore errors related to missing log files when
upgrading from a version of Chocolatey less than 0.9.9.
'Batch file could not be found' is also safe to ignore.
'The system cannot find the file specified' - also safe.
chocolatey.nupkg file not installed in lib.
Attempting to locate it from bootstrapper.
PATH environment variable does not have C:\Users\Admin\AppData\Local\Chocolatey\
bin in it. Adding...
Adding Chocolatey to the profile. This will provide tab completion, refreshenv,
etc.
WARNING: Chocolatey profile installed. Reload your profile - type . $profile
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
first prior to using choco.
Ensuring chocolatey commands are on the path
Ensuring chocolatey.nupkg is in the lib folder
PS C:\> $Env:ChocolateyInstall
C:\Users\Admin\AppData\Local\Chocolatey
PS C:\> Get-Acl $Env:ChocolateyInstall | fl
Path : Microsoft.PowerShell.Core\FileSystem::C:\Users\Admin\AppData\Local\Cho
colatey
Owner : BUILTIN\Administrators
Group : W8164\None
Access : NT AUTHORITY\SYSTEM Allow FullControl
BUILTIN\Administrators Allow FullControl
BUILTIN\Users Allow ReadAndExecute, Synchronize
NT AUTHORITY\SYSTEM Allow FullControl
BUILTIN\Administrators Allow FullControl
W8164\Admin Allow FullControl
Audit :
Sddl : O:BAG:S-1-5-21-3166762856-932011547-3619178707-513D:AI(A;OICI;FA;;;SY)
(A;OICI;FA;;;BA)(A;OICI;0x1200a9;;;BU)(A;OICIID;FA;;;SY)(A;OICIID;FA;;
;BA)(A;OICIID;FA;;;S-1-5-21-3166762856-932011547-3619178707-1001)
PS C:\> Get-Acl (Split-Path $Env:ChocolateyInstall) | fl
Path : Microsoft.PowerShell.Core\FileSystem::C:\Users\Admin\AppData\Local
Owner : W8164\Admin
Group : W8164\None
Access : NT AUTHORITY\SYSTEM Allow FullControl
BUILTIN\Administrators Allow FullControl
W8164\Admin Allow FullControl
Audit :
Sddl : O:S-1-5-21-3166762856-932011547-3619178707-1001G:S-1-5-21-3166762856-9
32011547-3619178707-513D:(A;OICIID;FA;;;SY)(A;OICIID;FA;;;BA)(A;OICIID
;FA;;;S-1-5-21-3166762856-932011547-3619178707-1001)
C:\>whoami /all | findstr BUILTIN\Administrators
BUILTIN\Administrators Alias S
-1-5-32-544 Group used for deny only
C:\>powershell -ExecutionPolicy Bypass
Windows PowerShell
Copyright (C) 2014 Microsoft Corporation. All rights reserved.
PS C:\> $Env:ChocolateyInstall
PS C:\> iwr https://chocolatey.org/installabsolutelatest.ps1 -useb | iex
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 2016-06-15 23:56 chocInstall
Downloading https://chocolatey.org/api/v2/package/chocolatey/0.9.10-rc1 to C:\U
sers\Admin\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip
Download 7Zip commandline tool
Downloading https://chocolatey.org/7za.exe to C:\Users\Admin\AppData\Local\Temp
\chocolatey\chocInstall\7za.exe
Extracting C:\Users\Admin\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.
zip to C:\Users\Admin\AppData\Local\Temp\chocolatey\chocInstall...
7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
Processing archive: C:\Users\Admin\AppData\Local\Temp\chocolatey\chocInstall\cho
colatey.zip
Extracting _rels\.rels
Extracting chocolatey.nuspec
Extracting tools\chocolateyInstall.ps1
Extracting tools\chocolateysetup.psm1
Extracting tools\init.ps1
Extracting tools\chocolateyInstall\choco.exe
Extracting tools\chocolateyInstall\choco.exe.ignore
Extracting tools\chocolateyInstall\LICENSE.txt
Extracting tools\chocolateyInstall\helpers\chocolateyInstaller.psm1
Extracting tools\chocolateyInstall\helpers\chocolateyProfile.psm1
Extracting tools\chocolateyInstall\helpers\chocolateyScriptRunner.ps1
Extracting tools\chocolateyInstall\helpers\ChocolateyTabExpansion.ps1
Extracting tools\chocolateyInstall\helpers\functions\Format-FileSize.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-CheckSumValid.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-ChocolateyUnzip.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-ChocolateyWebFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-EnvironmentVariable.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Get-EnvironmentVariableNam
es.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-FtpFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-OSArchitectureWidth.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Get-ToolsLocation.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-UACEnabled.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-UninstallRegistryKey.p
s1
Extracting tools\chocolateyInstall\helpers\functions\Get-VirusCheckValid.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-WebFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-WebFileName.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-WebHeaders.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-BinFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyDesktopL
ink.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyEnvironm
entVariable.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyExplorer
MenuItem.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyFileAsso
ciation.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyInstallP
ackage.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyPackage.
ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyPath.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyPinnedTa
skBarItem.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyPowershe
llCommand.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyShortcut
.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyVsixPack
age.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyZipPacka
ge.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-Vsix.ps1
Extracting tools\chocolateyInstall\helpers\functions\Set-EnvironmentVariable.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Set-PowerShellExitCode.ps1
Extracting tools\chocolateyInstall\helpers\functions\Start-ChocolateyProcessAsA
dmin.ps1
Extracting tools\chocolateyInstall\helpers\functions\Test-ProcessAdminRights.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Uninstall-BinFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Uninstall-ChocolateyEnviro
nmentVariable.ps1
Extracting tools\chocolateyInstall\helpers\functions\Uninstall-ChocolateyPackag
e.ps1
Extracting tools\chocolateyInstall\helpers\functions\UnInstall-ChocolateyZipPac
kage.ps1
Extracting tools\chocolateyInstall\helpers\functions\Update-SessionEnvironment.
ps1
Extracting tools\chocolateyInstall\helpers\functions\Write-ChocolateyFailure.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Write-ChocolateySuccess.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Write-FileUpdateLog.ps1
Extracting tools\chocolateyInstall\redirects\choco.exe
Extracting tools\chocolateyInstall\redirects\choco.exe.ignore
Extracting tools\chocolateyInstall\redirects\chocolatey.exe
Extracting tools\chocolateyInstall\redirects\chocolatey.exe.ignore
Extracting tools\chocolateyInstall\redirects\cinst.exe
Extracting tools\chocolateyInstall\redirects\cinst.exe.ignore
Extracting tools\chocolateyInstall\redirects\clist.exe
Extracting tools\chocolateyInstall\redirects\clist.exe.ignore
Extracting tools\chocolateyInstall\redirects\cpack.exe
Extracting tools\chocolateyInstall\redirects\cpack.exe.ignore
Extracting tools\chocolateyInstall\redirects\cpush.exe
Extracting tools\chocolateyInstall\redirects\cpush.exe.ignore
Extracting tools\chocolateyInstall\redirects\cuninst.exe
Extracting tools\chocolateyInstall\redirects\cuninst.exe.ignore
Extracting tools\chocolateyInstall\redirects\cup.exe
Extracting tools\chocolateyInstall\redirects\cup.exe.ignore
Extracting tools\chocolateyInstall\redirects\cver.exe
Extracting tools\chocolateyInstall\redirects\cver.exe.ignore
Extracting tools\chocolateyInstall\redirects\RefreshEnv.cmd
Extracting tools\chocolateyInstall\tools\7za.exe
Extracting tools\chocolateyInstall\tools\7za.exe.ignore
Extracting tools\chocolateyInstall\tools\7za.exe.manifest
Extracting tools\chocolateyInstall\tools\7zip.license.txt
Extracting tools\chocolateyInstall\tools\checksum.exe
Extracting tools\chocolateyInstall\tools\checksum.exe.config
Extracting tools\chocolateyInstall\tools\checksum.exe.ignore
Extracting tools\chocolateyInstall\tools\checksum.license.txt
Extracting tools\chocolateyInstall\tools\detector.zip
Extracting tools\chocolateyInstall\tools\shimgen.exe
Extracting tools\chocolateyInstall\tools\shimgen.exe.ignore
Extracting tools\chocolateyInstall\tools\shimgen.license.txt
Extracting package\services\metadata\core-properties\26bc440e034c42279521b7fc60
b97d13.psmdcp
Extracting [Content_Types].xml
Everything is Ok
Files: 86
Size: 11522961
Compressed: 6344391
Installing chocolatey on this machine
WARNING: Setting ChocolateyInstall Environment Variable on USER and not SYSTEM v
ariables.
This is due to either non-administrator install OR the process you are running
is not being run as an Administrator.
Creating ChocolateyInstall as an environment variable (targeting 'User')
Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
WARNING: It's very likely you will need to close and reopen your shell
before you can use choco.
WARNING: User is not running elevated, cannot set permissions.
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\ProgramData\chocolatey\lib'
(i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName
'.
Creating Chocolatey folders if they do not already exist.
WARNING: You can safely ignore errors related to missing log files when
upgrading from a version of Chocolatey less than 0.9.9.
'Batch file could not be found' is also safe to ignore.
'The system cannot find the file specified' - also safe.
chocolatey.nupkg file not installed in lib.
Attempting to locate it from bootstrapper.
WARNING: Setting ChocolateyInstall Path on USER PATH and not SYSTEM Path.
This is due to either non-administrator install OR the process you are running
is not being run as an Administrator.
PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Add
ing...
Adding Chocolatey to the profile. This will provide tab completion, refreshenv,
etc.
WARNING: Chocolatey profile installed. Reload your profile - type . $profile
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
first prior to using choco.
Ensuring chocolatey commands are on the path
Ensuring chocolatey.nupkg is in the lib folder
PS C:\> $Env:ChocolateyInstall
C:\ProgramData\chocolatey
PS C:\> Get-Acl $Env:ChocolateyInstall | fl
Path : Microsoft.PowerShell.Core\FileSystem::C:\ProgramData\chocolatey
Owner : W8164\Admin
Group : W8164\None
Access : NT AUTHORITY\SYSTEM Allow FullControl
BUILTIN\Administrators Allow FullControl
W8164\Admin Allow FullControl
CREATOR OWNER Allow 268435456
BUILTIN\Users Allow ReadAndExecute, Synchronize
BUILTIN\Users Allow Write
Audit :
Sddl : O:S-1-5-21-3166762856-932011547-3619178707-1001G:S-1-5-21-3166762856-9
32011547-3619178707-513D:AI(A;OICIID;FA;;;SY)(A;OICIID;FA;;;BA)(A;ID;F
A;;;S-1-5-21-3166762856-932011547-3619178707-1001)(A;OICIIOID;GA;;;CO)
(A;OICIID;0x1200a9;;;BU)(A;CIID;DCLCRPCR;;;BU)
C:\>whoami /all | findstr BUILTIN\Administrators
BUILTIN\Administrators Alias S
-1-5-32-544 Group used for deny only
C:\>powershell -ExecutionPolicy Bypass
Windows PowerShell
Copyright (C) 2014 Microsoft Corporation. All rights reserved.
PS C:\> $Env:ChocolateyInstall
PS C:\> $Env:ChocolateyInstall = "$Env:LocalAppData\Chocolatey"
PS C:\> iwr https://chocolatey.org/installabsolutelatest.ps1 -useb | iex
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 2016-06-16 00:12 chocInstall
Downloading https://chocolatey.org/api/v2/package/chocolatey/0.9.10-rc1 to C:\U
sers\Admin\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip
Download 7Zip commandline tool
Downloading https://chocolatey.org/7za.exe to C:\Users\Admin\AppData\Local\Temp
\chocolatey\chocInstall\7za.exe
Extracting C:\Users\Admin\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.
zip to C:\Users\Admin\AppData\Local\Temp\chocolatey\chocInstall...
7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
Processing archive: C:\Users\Admin\AppData\Local\Temp\chocolatey\chocInstall\cho
colatey.zip
Extracting _rels\.rels
Extracting chocolatey.nuspec
Extracting tools\chocolateyInstall.ps1
Extracting tools\chocolateysetup.psm1
Extracting tools\init.ps1
Extracting tools\chocolateyInstall\choco.exe
Extracting tools\chocolateyInstall\choco.exe.ignore
Extracting tools\chocolateyInstall\LICENSE.txt
Extracting tools\chocolateyInstall\helpers\chocolateyInstaller.psm1
Extracting tools\chocolateyInstall\helpers\chocolateyProfile.psm1
Extracting tools\chocolateyInstall\helpers\chocolateyScriptRunner.ps1
Extracting tools\chocolateyInstall\helpers\ChocolateyTabExpansion.ps1
Extracting tools\chocolateyInstall\helpers\functions\Format-FileSize.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-CheckSumValid.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-ChocolateyUnzip.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-ChocolateyWebFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-EnvironmentVariable.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Get-EnvironmentVariableNam
es.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-FtpFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-OSArchitectureWidth.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Get-ToolsLocation.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-UACEnabled.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-UninstallRegistryKey.p
s1
Extracting tools\chocolateyInstall\helpers\functions\Get-VirusCheckValid.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-WebFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-WebFileName.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-WebHeaders.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-BinFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyDesktopL
ink.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyEnvironm
entVariable.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyExplorer
MenuItem.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyFileAsso
ciation.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyInstallP
ackage.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyPackage.
ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyPath.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyPinnedTa
skBarItem.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyPowershe
llCommand.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyShortcut
.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyVsixPack
age.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyZipPacka
ge.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-Vsix.ps1
Extracting tools\chocolateyInstall\helpers\functions\Set-EnvironmentVariable.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Set-PowerShellExitCode.ps1
Extracting tools\chocolateyInstall\helpers\functions\Start-ChocolateyProcessAsA
dmin.ps1
Extracting tools\chocolateyInstall\helpers\functions\Test-ProcessAdminRights.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Uninstall-BinFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Uninstall-ChocolateyEnviro
nmentVariable.ps1
Extracting tools\chocolateyInstall\helpers\functions\Uninstall-ChocolateyPackag
e.ps1
Extracting tools\chocolateyInstall\helpers\functions\UnInstall-ChocolateyZipPac
kage.ps1
Extracting tools\chocolateyInstall\helpers\functions\Update-SessionEnvironment.
ps1
Extracting tools\chocolateyInstall\helpers\functions\Write-ChocolateyFailure.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Write-ChocolateySuccess.ps
1
Extracting tools\chocolateyInstall\helpers\functions\Write-FileUpdateLog.ps1
Extracting tools\chocolateyInstall\redirects\choco.exe
Extracting tools\chocolateyInstall\redirects\choco.exe.ignore
Extracting tools\chocolateyInstall\redirects\chocolatey.exe
Extracting tools\chocolateyInstall\redirects\chocolatey.exe.ignore
Extracting tools\chocolateyInstall\redirects\cinst.exe
Extracting tools\chocolateyInstall\redirects\cinst.exe.ignore
Extracting tools\chocolateyInstall\redirects\clist.exe
Extracting tools\chocolateyInstall\redirects\clist.exe.ignore
Extracting tools\chocolateyInstall\redirects\cpack.exe
Extracting tools\chocolateyInstall\redirects\cpack.exe.ignore
Extracting tools\chocolateyInstall\redirects\cpush.exe
Extracting tools\chocolateyInstall\redirects\cpush.exe.ignore
Extracting tools\chocolateyInstall\redirects\cuninst.exe
Extracting tools\chocolateyInstall\redirects\cuninst.exe.ignore
Extracting tools\chocolateyInstall\redirects\cup.exe
Extracting tools\chocolateyInstall\redirects\cup.exe.ignore
Extracting tools\chocolateyInstall\redirects\cver.exe
Extracting tools\chocolateyInstall\redirects\cver.exe.ignore
Extracting tools\chocolateyInstall\redirects\RefreshEnv.cmd
Extracting tools\chocolateyInstall\tools\7za.exe
Extracting tools\chocolateyInstall\tools\7za.exe.ignore
Extracting tools\chocolateyInstall\tools\7za.exe.manifest
Extracting tools\chocolateyInstall\tools\7zip.license.txt
Extracting tools\chocolateyInstall\tools\checksum.exe
Extracting tools\chocolateyInstall\tools\checksum.exe.config
Extracting tools\chocolateyInstall\tools\checksum.exe.ignore
Extracting tools\chocolateyInstall\tools\checksum.license.txt
Extracting tools\chocolateyInstall\tools\detector.zip
Extracting tools\chocolateyInstall\tools\shimgen.exe
Extracting tools\chocolateyInstall\tools\shimgen.exe.ignore
Extracting tools\chocolateyInstall\tools\shimgen.license.txt
Extracting package\services\metadata\core-properties\26bc440e034c42279521b7fc60
b97d13.psmdcp
Extracting [Content_Types].xml
Everything is Ok
Files: 86
Size: 11522961
Compressed: 6344391
Installing chocolatey on this machine
WARNING: User is not running elevated, cannot set permissions.
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\Users\Admin\AppData\Local\Chocolatey\lib'
(i.e. C:\Users\Admin\AppData\Local\Chocolatey\lib\yourPackageName).
A shim file for the command line goes to 'C:\Users\Admin\AppData\Local\Chocolat
ey\bin'
and points to an executable in 'C:\Users\Admin\AppData\Local\Chocolatey\lib\y
ourPackageName'.
Creating Chocolatey folders if they do not already exist.
WARNING: You can safely ignore errors related to missing log files when
upgrading from a version of Chocolatey less than 0.9.9.
'Batch file could not be found' is also safe to ignore.
'The system cannot find the file specified' - also safe.
chocolatey.nupkg file not installed in lib.
Attempting to locate it from bootstrapper.
WARNING: Setting ChocolateyInstall Path on USER PATH and not SYSTEM Path.
This is due to either non-administrator install OR the process you are running
is not being run as an Administrator.
PATH environment variable does not have C:\Users\Admin\AppData\Local\Chocolatey\
bin in it. Adding...
Adding Chocolatey to the profile. This will provide tab completion, refreshenv,
etc.
WARNING: Chocolatey profile installed. Reload your profile - type . $profile
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
first prior to using choco.
Ensuring chocolatey commands are on the path
Ensuring chocolatey.nupkg is in the lib folder
PS C:\> $Env:ChocolateyInstall
C:\Users\Admin\AppData\Local\Chocolatey
PS C:\> Get-Acl $Env:ChocolateyInstall | fl
Path : Microsoft.PowerShell.Core\FileSystem::C:\Users\Admin\AppData\Local\Cho
colatey
Owner : W8164\Admin
Group : W8164\None
Access : NT AUTHORITY\SYSTEM Allow FullControl
BUILTIN\Administrators Allow FullControl
W8164\Admin Allow FullControl
Audit :
Sddl : O:S-1-5-21-3166762856-932011547-3619178707-1001G:S-1-5-21-3166762856-9
32011547-3619178707-513D:(A;OICIID;FA;;;SY)(A;OICIID;FA;;;BA)(A;OICIID
;FA;;;S-1-5-21-3166762856-932011547-3619178707-1001)
PS C:\> Get-Acl (Split-Path $Env:ChocolateyInstall) | fl
Path : Microsoft.PowerShell.Core\FileSystem::C:\Users\Admin\AppData\Local
Owner : W8164\Admin
Group : W8164\None
Access : NT AUTHORITY\SYSTEM Allow FullControl
BUILTIN\Administrators Allow FullControl
W8164\Admin Allow FullControl
Audit :
Sddl : O:S-1-5-21-3166762856-932011547-3619178707-1001G:S-1-5-21-3166762856-9
32011547-3619178707-513D:(A;OICIID;FA;;;SY)(A;OICIID;FA;;;BA)(A;OICIID
;FA;;;S-1-5-21-3166762856-932011547-3619178707-1001)
C:\>whoami
w8164\admin
C:\>echo "Not elevated - no rights to write to windir" > %WinDir%\x.txt
Access is denied.
C:\>choco --version
Error serializing type chocolatey.infrastructure.app.configuration.ConfigFileSettings:
Access to the path 'C:\ProgramData\chocolatey\config\chocolatey.config.update' is denied.
Error updating 'C:\ProgramData\chocolatey\config\chocolatey.config'. Please ensure you have permissions to do so:
Access to the path 'C:\ProgramData\chocolatey\config\chocolatey.config.update' is denied.
0.9.10-rc1
C:\>where choco
C:\ProgramData\chocolatey\bin\choco.exe
C:\>del C:\ProgramData\chocolatey\bin\choco.exe
C:\ProgramData\chocolatey\bin\choco.exe
Access is denied.
C:\>ren C:\ProgramData\chocolatey xxx
C:\>mkdir C:\ProgramData\chocolatey
C:\>mkdir C:\ProgramData\chocolatey\bin
C:\>echo @echo PWNED! > C:\ProgramData\chocolatey\bin\choco.cmd
C:\>where choco
C:\ProgramData\chocolatey\bin\choco.cmd
C:\>choco --version
PWNED!
C:\>whoami
w8164\admin
C:\>echo "Not elevated - no rights to write to windir" > %WinDir%\x.txt
Access is denied.
C:\>choco --version
Error serializing type chocolatey.infrastructure.app.configuration.ConfigFileSet
tings:
Access to the path 'C:\ProgramData\chocolatey\config\chocolatey.config.update'
is denied.
Error updating 'C:\ProgramData\chocolatey\config\chocolatey.config'. Please ensu
re you have permissions to do so:
Access to the path 'C:\ProgramData\chocolatey\config\chocolatey.config.update'
is denied.
0.9.10-rc1
C:\>where choco
C:\ProgramData\chocolatey\bin\choco.exe
C:\>del C:\ProgramData\chocolatey\bin\choco.exe
C:\ProgramData\chocolatey\bin\choco.exe
Access is denied.
C:\>ren C:\ProgramData\chocolatey xxx
Access is denied.
C:\>icacls C:\ProgramData\chocolatey /grant "%UserName%:(OI)(CI)F"
processed file: C:\ProgramData\chocolatey
Successfully processed 1 files; Failed processing 0 files
C:\>icacls C:\ProgramData\chocolatey
C:\ProgramData\chocolatey W8164\Admin:(OI)(CI)(F)
NT AUTHORITY\SYSTEM:(OI)(CI)(F)
BUILTIN\Administrators:(OI)(CI)(F)
BUILTIN\Users:(OI)(CI)(RX)
Successfully processed 1 files; Failed processing 0 files
C:\>del C:\ProgramData\chocolatey\bin\choco.exe
C:\>echo @echo PWNED! > C:\ProgramData\chocolatey\bin\choco.cmd
C:\>where choco
C:\ProgramData\chocolatey\bin\choco.cmd
C:\>choco --version
PWNED!
C:\>whoami /all | findstr BUILTIN\Administrators
BUILTIN\Administrators Alias S
-1-5-32-544 Mandatory group, Enabled by default
, Enabled group, Group owner
C:\>choco --version
Please run chocolatey /? or chocolatey help - chocolatey v0.9.8.23
Reading environment variables from registry. Please wait... Done.
C:\>icacls %ChocolateyInstall%
C:\Chocolatey BUILTIN\Administrators:(I)(OI)(CI)(F)
NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
BUILTIN\Users:(I)(OI)(CI)(RX)
NT AUTHORITY\Authenticated Users:(I)(M)
NT AUTHORITY\Authenticated Users:(I)(OI)(CI)(IO)(M)
Successfully processed 1 files; Failed processing 0 files
C:\>powershell -Command (Get-Acl %ChocolateyInstall%).Owner
BUILTIN\Administrators
C:\>choco update -pre chocolatey
Chocolatey (v0.9.8.23) is installing 'chocolatey' and dependencies. By installin
g you accept the license for 'chocolatey' and each dependency you are installing
.
______ chocolatey v0.9.10-rc1 ______
Creating ChocolateyInstall as an environment variable (targeting 'Machine')
Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
WARNING: It's very likely you will need to close and reopen your shell
before you can use choco.
Restricting write permissions to Administrators
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\ProgramData\chocolatey\lib'
(i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName
'.
Creating Chocolatey folders if they do not already exist.
WARNING: You can safely ignore errors related to missing log files when
upgrading from a version of Chocolatey less than 0.9.9.
'Batch file could not be found' is also safe to ignore.
'The system cannot find the file specified' - also safe.
chocolatey.nupkg file not installed in lib.
Attempting to locate it from bootstrapper.
PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Add
ing...
Attempting to upgrade 'C:\Chocolatey' to 'C:\ProgramData\chocolatey'.
WARNING: Copying the contents of 'C:\Chocolatey' to 'C:\ProgramData\chocolatey'.
This step may fail if you have anything in this folder running or locked.
If it fails, just manually copy the rest of the items out and then delete the f
older.
WARNING: !!!! ATTN: YOU WILL NEED TO CLOSE AND REOPEN YOUR SHELL !!!!
Updating 'User' PATH to reflect removal of 'C:\Chocolatey'.
Adding Chocolatey to the profile. This will provide tab completion, refreshenv,
etc.
WARNING: Chocolatey profile installed. Reload your profile - type . $profile
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
first prior to using choco.
WARNING: This action will result in Log Errors, you can safely ignore those.
You may need to finish removing 'C:\Chocolatey' manually.
Attempting to remove 'C:\Chocolatey'. This may fail if something in the folder
is being used or locked.
Out-File : Could not find a part of the path 'C:\Chocolatey\chocolateyinstall\c
hocolateyInstall.log'.
At C:\Chocolatey\chocolateyinstall\helpers\functions\Write-Host.ps1:12 char:62
+ "$(get-date -format 'yyyyMMdd-HH:mm:ss') [CHOCO] $Object"| Out-File -FilePa
th ...
+ ~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundExce
ption
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.Ou
tFileCommand
Out-File : Could not find a part of the path 'C:\Chocolatey\chocolateyinstall\c
hocolateyInstall.log'.
At C:\Chocolatey\chocolateyinstall\helpers\functions\Write-Debug.ps1:12 char:64
+ "$(get-date -format 'yyyyMMdd-HH:mm:ss') [DEBUG] $Message" | Out-File -File
Pat ...
+ ~~~~~~~~~~~~~~
~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundExce
ption
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.Ou
tFileCommand
The system cannot find the path specified.
The system cannot find the path specified.
C:\>C:\ProgramData\chocolatey\bin\RefreshEnv.cmd
Reading environment variables from registry. Please wait... Done.
C:\>choco --version
0.9.10-rc1
C:\>icacls %ChocolateyInstall%
C:\ProgramData\chocolatey NT AUTHORITY\SYSTEM:(OI)(CI)(F)
BUILTIN\Administrators:(OI)(CI)(F)
BUILTIN\Users:(OI)(CI)(RX)
Successfully processed 1 files; Failed processing 0 files
C:\>powershell -Command (Get-Acl %ChocolateyInstall%).Owner
BUILTIN\Administrators
C:\>whoami /all | findstr BUILTIN\Administrators
BUILTIN\Administrators Alias S
-1-5-32-544 Mandatory group, Enabled by default
, Enabled group, Group owner
C:\>choco --version
!!ATTENTION!!
The next version of Chocolatey (v0.9.9) will require -y to perform
behaviors that change state without prompting for confirmation. Start
using it now in your automated scripts.
For details on the all new Chocolatey, visit http://bit.ly/new_choco
Please run chocolatey /? or chocolatey help - chocolatey v0.9.8.33
C:\>icacls %ChocolateyInstall%
C:\ProgramData\chocolatey NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
BUILTIN\Administrators:(I)(OI)(CI)(F)
CREATOR OWNER:(I)(OI)(CI)(IO)(F)
BUILTIN\Users:(I)(OI)(CI)(RX)
BUILTIN\Users:(I)(CI)(WD,AD,WEA,WA)
Successfully processed 1 files; Failed processing 0 files
C:\>powershell -Command (Get-Acl %ChocolateyInstall%).Owner
BUILTIN\Administrators
C:\>choco update -pre chocolatey
!!ATTENTION!!
The next version of Chocolatey (v0.9.9) will require -y to perform
behaviors that change state without prompting for confirmation. Start
using it now in your automated scripts.
For details on the all new Chocolatey, visit http://bit.ly/new_choco
Updating chocolatey from 0.9.8.33 to 0.9.10-rc1
Chocolatey (v0.9.8.33) is installing 'chocolatey' and dependencies. By installin
g you accept the license for 'chocolatey' and each dependency you are installing
.
chocolatey v0.9.10-rc1
Creating ChocolateyInstall as an environment variable (targeting 'Machine')
Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
WARNING: It's very likely you will need to close and reopen your shell
before you can use choco.
Restricting write permissions to Administrators
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\ProgramData\chocolatey\lib'
(i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName
'.
Creating Chocolatey folders if they do not already exist.
WARNING: You can safely ignore errors related to missing log files when
upgrading from a version of Chocolatey less than 0.9.9.
'Batch file could not be found' is also safe to ignore.
'The system cannot find the file specified' - also safe.
Adding Chocolatey to the profile. This will provide tab completion, refreshenv,
etc.
WARNING: Chocolatey profile installed. Reload your profile - type . $profile
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
first prior to using choco.
Finished installing 'chocolatey' and dependencies - if errors not shown in conso
le, none detected. Check log for errors if unsure.
The batch file cannot be found.
C:\>choco --version
0.9.10-rc1
C:\>icacls %ChocolateyInstall%
C:\ProgramData\chocolatey NT AUTHORITY\SYSTEM:(OI)(CI)(F)
BUILTIN\Administrators:(OI)(CI)(F)
BUILTIN\Users:(OI)(CI)(RX)
Successfully processed 1 files; Failed processing 0 files
C:\>powershell -Command (Get-Acl %ChocolateyInstall%).Owner
BUILTIN\Administrators
C:\>whoami /all | findstr BUILTIN\Administrators
BUILTIN\Administrators Alias S
-1-5-32-544 Mandatory group, Enabled by default
, Enabled group, Group owner
C:\>choco --version
0.9.9.11
C:\>icacls %ChocolateyInstall%
C:\Choco W8164\Admin:(M)
BUILTIN\Administrators:(I)(OI)(CI)(F)
NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
BUILTIN\Users:(I)(OI)(CI)(RX)
NT AUTHORITY\Authenticated Users:(I)(M)
NT AUTHORITY\Authenticated Users:(I)(OI)(CI)(IO)(M)
Successfully processed 1 files; Failed processing 0 files
C:\>powershell -Command (Get-Acl %ChocolateyInstall%).Owner
BUILTIN\Administrators
C:\>choco upgrade -y -pre chocolatey
Upgrading the following packages:
chocolatey
By upgrading you accept licenses for the packages.
You have chocolatey v0.9.9.11 installed. Version 0.9.10-rc1 is available based o
n your source(s).
chocolatey v0.9.10-rc1
Restricting write permissions to Administrators
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\Choco\lib'
(i.e. C:\Choco\lib\yourPackageName).
A shim file for the command line goes to 'C:\Choco\bin'
and points to an executable in 'C:\Choco\lib\yourPackageName'.
Creating Chocolatey folders if they do not already exist.
WARNING: You can safely ignore errors related to missing log files when
upgrading from a version of Chocolatey less than 0.9.9.
'Batch file could not be found' is also safe to ignore.
'The system cannot find the file specified' - also safe.
Adding Chocolatey to the profile. This will provide tab completion, refreshenv,
etc.
WARNING: Chocolatey profile installed. Reload your profile - type . $profile
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
first prior to using choco.
The upgrade of chocolatey was successful.
Chocolatey upgraded 1/1 package(s). 0 package(s) failed.
See the log for details (C:\Choco\logs\chocolatey.log).
C:\>choco --version
0.9.10-rc1
C:\>icacls %ChocolateyInstall%
C:\Choco NT AUTHORITY\SYSTEM:(OI)(CI)(F)
BUILTIN\Administrators:(OI)(CI)(F)
BUILTIN\Users:(OI)(CI)(RX)
W8164\Admin:(M)
BUILTIN\Administrators:(I)(OI)(CI)(F)
NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
BUILTIN\Users:(I)(OI)(CI)(RX)
NT AUTHORITY\Authenticated Users:(I)(M)
NT AUTHORITY\Authenticated Users:(I)(OI)(CI)(IO)(M)
Successfully processed 1 files; Failed processing 0 files
C:\>powershell -Command (Get-Acl %ChocolateyInstall%).Owner
BUILTIN\Administrators
C:\>whoami /all | findstr BUILTIN\Administrators
BUILTIN\Administrators Alias S
-1-5-32-544 Mandatory group, Enabled by default
, Enabled group, Group owner
C:\>choco --version
0.9.9.11
C:\>icacls %ChocolateyInstall%
C:\ProgramData\chocolatey W8164\Admin:(M)
NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
BUILTIN\Administrators:(I)(OI)(CI)(F)
CREATOR OWNER:(I)(OI)(CI)(IO)(F)
BUILTIN\Users:(I)(OI)(CI)(RX)
BUILTIN\Users:(I)(CI)(WD,AD,WEA,WA)
Successfully processed 1 files; Failed processing 0 files
C:\>powershell -Command (Get-Acl %ChocolateyInstall%).Owner
BUILTIN\Administrators
C:\>choco upgrade -y -pre chocolatey
Upgrading the following packages:
chocolatey
By upgrading you accept licenses for the packages.
You have chocolatey v0.9.9.11 installed. Version 0.9.10-rc1 is available based o
n your source(s).
chocolatey v0.9.10-rc1
Creating ChocolateyInstall as an environment variable (targeting 'Machine')
Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
WARNING: It's very likely you will need to close and reopen your shell
before you can use choco.
Restricting write permissions to Administrators
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\ProgramData\chocolatey\lib'
(i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName
'.
Creating Chocolatey folders if they do not already exist.
WARNING: You can safely ignore errors related to missing log files when
upgrading from a version of Chocolatey less than 0.9.9.
'Batch file could not be found' is also safe to ignore.
'The system cannot find the file specified' - also safe.
Adding Chocolatey to the profile. This will provide tab completion, refreshenv,
etc.
WARNING: Chocolatey profile installed. Reload your profile - type . $profile
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
first prior to using choco.
The upgrade of chocolatey was successful.
Chocolatey upgraded 1/1 package(s). 0 package(s) failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
C:\>choco --version
0.9.10-rc1
C:\>icacls %ChocolateyInstall%
C:\ProgramData\chocolatey NT AUTHORITY\SYSTEM:(OI)(CI)(F)
BUILTIN\Administrators:(OI)(CI)(F)
BUILTIN\Users:(OI)(CI)(RX)
W8164\Admin:(M)
Successfully processed 1 files; Failed processing 0 files
C:\>powershell -Command (Get-Acl %ChocolateyInstall%).Owner
BUILTIN\Administrators
C:\>whoami /all | findstr BUILTIN\Administrators
BUILTIN\Administrators Alias S
-1-5-32-544 Mandatory group, Enabled by default
, Enabled group, Group owner
C:\>choco --version
0.9.9.12
C:\>icacls %ChocolateyInstall%
C:\Users\Admin\AppData\Local\Chocolatey W8164\Admin:(M)
NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
BUILTIN\Administrators:(I)(OI)(CI)(F)
W8164\Admin:(I)(OI)(CI)(F)
Successfully processed 1 files; Failed processing 0 files
C:\>powershell -Command (Get-Acl %ChocolateyInstall%).Owner
BUILTIN\Administrators
C:\>choco upgrade -y -pre chocolatey
Upgrading the following packages:
chocolatey
By upgrading you accept licenses for the packages.
You have chocolatey v0.9.9.12 installed. Version 0.9.10-rc1 is available based o
n your source(s).
chocolatey v0.9.10-rc1
Restricting write permissions to Administrators
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\Users\Admin\AppData\Local\Chocolatey\lib'
(i.e. C:\Users\Admin\AppData\Local\Chocolatey\lib\yourPackageName).
A shim file for the command line goes to 'C:\Users\Admin\AppData\Local\Chocolat
ey\bin'
and points to an executable in 'C:\Users\Admin\AppData\Local\Chocolatey\lib\y
ourPackageName'.
Creating Chocolatey folders if they do not already exist.
WARNING: You can safely ignore errors related to missing log files when
upgrading from a version of Chocolatey less than 0.9.9.
'Batch file could not be found' is also safe to ignore.
'The system cannot find the file specified' - also safe.
Adding Chocolatey to the profile. This will provide tab completion, refreshenv,
etc.
WARNING: Chocolatey profile installed. Reload your profile - type . $profile
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
first prior to using choco.
The upgrade of chocolatey was successful.
Chocolatey upgraded 1/1 package(s). 0 package(s) failed.
See the log for details (C:\Users\Admin\AppData\Local\Chocolatey\logs\chocolate
y.log).
C:\>choco --version
0.9.10-rc1
C:\>icacls %ChocolateyInstall%
C:\Users\Admin\AppData\Local\Chocolatey NT AUTHORITY\SYSTEM:(OI)(CI)(F)
BUILTIN\Administrators:(OI)(CI)(F)
BUILTIN\Users:(OI)(CI)(RX)
W8164\Admin:(M)
NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
BUILTIN\Administrators:(I)(OI)(CI)(F)
W8164\Admin:(I)(OI)(CI)(F)
Successfully processed 1 files; Failed processing 0 files
C:\>powershell -Command (Get-Acl %ChocolateyInstall%).Owner
BUILTIN\Administrators
C:\>whoami /all | findstr BUILTIN\Administrators
BUILTIN\Administrators Alias S
-1-5-32-544 Mandatory group, Enabled by default
, Enabled group, Group owner
C:\>choco --version
0.9.9.12
C:\>icacls %ChocolateyInstall%
C:\ProgramData\chocolatey NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
BUILTIN\Administrators:(I)(OI)(CI)(F)
W8164\Admin:(I)(F)
CREATOR OWNER:(I)(OI)(CI)(IO)(F)
BUILTIN\Users:(I)(OI)(CI)(RX)
BUILTIN\Users:(I)(CI)(WD,AD,WEA,WA)
Successfully processed 1 files; Failed processing 0 files
C:\>powershell -Command (Get-Acl %ChocolateyInstall%).Owner
W8164\Admin
C:\>choco upgrade -y -pre chocolatey
Upgrading the following packages:
chocolatey
By upgrading you accept licenses for the packages.
You have chocolatey v0.9.9.12 installed. Version 0.9.10-rc1 is available based o
n your source(s).
chocolatey v0.9.10-rc1
Creating ChocolateyInstall as an environment variable (targeting 'Machine')
Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
WARNING: It's very likely you will need to close and reopen your shell
before you can use choco.
Restricting write permissions to Administrators
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\ProgramData\chocolatey\lib'
(i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName
'.
Creating Chocolatey folders if they do not already exist.
WARNING: You can safely ignore errors related to missing log files when
upgrading from a version of Chocolatey less than 0.9.9.
'Batch file could not be found' is also safe to ignore.
'The system cannot find the file specified' - also safe.
Adding Chocolatey to the profile. This will provide tab completion, refreshenv,
etc.
WARNING: Chocolatey profile installed. Reload your profile - type . $profile
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
first prior to using choco.
The upgrade of chocolatey was successful.
Chocolatey upgraded 1/1 package(s). 0 package(s) failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
C:\>choco --version
0.9.10-rc1
C:\>icacls %ChocolateyInstall%
C:\ProgramData\chocolatey NT AUTHORITY\SYSTEM:(OI)(CI)(F)
BUILTIN\Administrators:(OI)(CI)(F)
BUILTIN\Users:(OI)(CI)(RX)
Successfully processed 1 files; Failed processing 0 files
C:\>powershell -Command (Get-Acl %ChocolateyInstall%).Owner
W8164\Admin
C:\>whoami /all | findstr BUILTIN\Administrators
BUILTIN\Administrators Alias S
-1-5-32-544 Group used for deny only
C:\>choco --version
0.9.9.11
C:\>icacls %ChocolateyInstall%
C:\Choco W8164\Admin:(M)
BUILTIN\Administrators:(I)(OI)(CI)(F)
NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
BUILTIN\Users:(I)(OI)(CI)(RX)
NT AUTHORITY\Authenticated Users:(I)(M)
NT AUTHORITY\Authenticated Users:(I)(OI)(CI)(IO)(M)
Successfully processed 1 files; Failed processing 0 files
C:\>powershell -Command (Get-Acl %ChocolateyInstall%).Owner
BUILTIN\Administrators
C:\>choco upgrade -y -pre chocolatey
Chocolatey detected you are not running from an elevated command shell
(cmd/powershell).
Upgrading the following packages:
chocolatey
By upgrading you accept licenses for the packages.
You have chocolatey v0.9.9.11 installed. Version 0.9.10-rc1 is available based o
n your source(s).
chocolatey v0.9.10-rc1
WARNING: User is not running elevated, cannot set permissions.
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\Choco\lib'
(i.e. C:\Choco\lib\yourPackageName).
A shim file for the command line goes to 'C:\Choco\bin'
and points to an executable in 'C:\Choco\lib\yourPackageName'.
Creating Chocolatey folders if they do not already exist.
WARNING: You can safely ignore errors related to missing log files when
upgrading from a version of Chocolatey less than 0.9.9.
'Batch file could not be found' is also safe to ignore.
'The system cannot find the file specified' - also safe.
WARNING: Setting ChocolateyInstall Path on USER PATH and not SYSTEM Path.
This is due to either non-administrator install OR the process you are runnin
g is not being run as an Administrator.
Adding Chocolatey to the profile. This will provide tab completion, refreshenv,
etc.
WARNING: Chocolatey profile installed. Reload your profile - type . $profile
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
first prior to using choco.
The upgrade of chocolatey was successful.
Chocolatey upgraded 1/1 package(s). 0 package(s) failed.
See the log for details (C:\Choco\logs\chocolatey.log).
C:\>choco --version
0.9.10-rc1
C:\>icacls %ChocolateyInstall%
C:\Choco W8164\Admin:(M)
BUILTIN\Administrators:(I)(OI)(CI)(F)
NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
BUILTIN\Users:(I)(OI)(CI)(RX)
NT AUTHORITY\Authenticated Users:(I)(M)
NT AUTHORITY\Authenticated Users:(I)(OI)(CI)(IO)(M)
Successfully processed 1 files; Failed processing 0 files
C:\>powershell -Command (Get-Acl %ChocolateyInstall%).Owner
BUILTIN\Administrators
C:\>whoami /all | findstr BUILTIN\Administrators
BUILTIN\Administrators Alias S
-1-5-32-544 Group used for deny only
C:\>choco --version
0.9.9.12
C:\>icacls %ChocolateyInstall%
C:\ProgramData\chocolatey NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
BUILTIN\Administrators:(I)(OI)(CI)(F)
W8164\Admin:(I)(F)
CREATOR OWNER:(I)(OI)(CI)(IO)(F)
BUILTIN\Users:(I)(OI)(CI)(RX)
BUILTIN\Users:(I)(CI)(WD,AD,WEA,WA)
Successfully processed 1 files; Failed processing 0 files
C:\>powershell -Command (Get-Acl %ChocolateyInstall%).Owner
W8164\Admin
C:\>choco upgrade -y -pre chocolatey
Chocolatey detected you are not running from an elevated command shell
(cmd/powershell).
Upgrading the following packages:
chocolatey
By upgrading you accept licenses for the packages.
You have chocolatey v0.9.9.12 installed. Version 0.9.10-rc1 is available based o
n your source(s).
chocolatey v0.9.10-rc1
WARNING: Setting ChocolateyInstall Environment Variable on USER and not SYSTEM
variables.
This is due to either non-administrator install OR the process you are runnin
g is not being run as an Administrator.
Creating ChocolateyInstall as an environment variable (targeting 'User')
Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
WARNING: It's very likely you will need to close and reopen your shell
before you can use choco.
WARNING: User is not running elevated, cannot set permissions.
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\ProgramData\chocolatey\lib'
(i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName
'.
Creating Chocolatey folders if they do not already exist.
WARNING: You can safely ignore errors related to missing log files when
upgrading from a version of Chocolatey less than 0.9.9.
'Batch file could not be found' is also safe to ignore.
'The system cannot find the file specified' - also safe.
WARNING: Setting ChocolateyInstall Path on USER PATH and not SYSTEM Path.
This is due to either non-administrator install OR the process you are runnin
g is not being run as an Administrator.
Adding Chocolatey to the profile. This will provide tab completion, refreshenv,
etc.
WARNING: Chocolatey profile installed. Reload your profile - type . $profile
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
first prior to using choco.
The upgrade of chocolatey was successful.
Chocolatey upgraded 1/1 package(s). 0 package(s) failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
C:\>choco --version
0.9.10-rc1
C:\>icacls %ChocolateyInstall%
C:\ProgramData\chocolatey NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
BUILTIN\Administrators:(I)(OI)(CI)(F)
W8164\Admin:(I)(F)
CREATOR OWNER:(I)(OI)(CI)(IO)(F)
BUILTIN\Users:(I)(OI)(CI)(RX)
BUILTIN\Users:(I)(CI)(WD,AD,WEA,WA)
Successfully processed 1 files; Failed processing 0 files
C:\>powershell -Command (Get-Acl %ChocolateyInstall%).Owner
W8164\Admin
C:\>whoami /all | findstr BUILTIN\Administrators
BUILTIN\Administrators Alias S
-1-5-32-544 Group used for deny only
C:\>choco --version
0.9.9.12
C:\>set ChocolateyInstall=C:\Users\Admin\AppData\Local\Chocolatey
C:\>icacls %ChocolateyInstall%
C:\Users\Admin\AppData\Local\Chocolatey NT AUTHORITY\SYSTEM:(OI)(CI)(F)
BUILTIN\Administrators:(OI)(CI)(F)
W8164\Admin:(OI)(CI)(F)
Successfully processed 1 files; Failed processing 0 files
C:\>powershell -Command (Get-Acl %ChocolateyInstall%).Owner
W8164\Admin
C:\>choco upgrade -y -pre chocolatey
Chocolatey detected you are not running from an elevated command shell
(cmd/powershell).
Upgrading the following packages:
chocolatey
By upgrading you accept licenses for the packages.
You have chocolatey v0.9.9.12 installed. Version 0.9.10-rc1 is available based o
n your source(s).
chocolatey v0.9.10-rc1
WARNING: User is not running elevated, cannot set permissions.
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\Users\Admin\AppData\Local\Chocolatey\lib'
(i.e. C:\Users\Admin\AppData\Local\Chocolatey\lib\yourPackageName).
A shim file for the command line goes to 'C:\Users\Admin\AppData\Local\Chocolat
ey\bin'
and points to an executable in 'C:\Users\Admin\AppData\Local\Chocolatey\lib\y
ourPackageName'.
Creating Chocolatey folders if they do not already exist.
WARNING: You can safely ignore errors related to missing log files when
upgrading from a version of Chocolatey less than 0.9.9.
'Batch file could not be found' is also safe to ignore.
'The system cannot find the file specified' - also safe.
WARNING: Setting ChocolateyInstall Path on USER PATH and not SYSTEM Path.
This is due to either non-administrator install OR the process you are runnin
g is not being run as an Administrator.
Adding Chocolatey to the profile. This will provide tab completion, refreshenv,
etc.
WARNING: Chocolatey profile installed. Reload your profile - type . $profile
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
first prior to using choco.
The upgrade of chocolatey was successful.
Chocolatey upgraded 1/1 package(s). 0 package(s) failed.
See the log for details (C:\Users\Admin\AppData\Local\Chocolatey\logs\chocolate
y.log).
C:\>choco --version
0.9.10-rc1
C:\>icacls %ChocolateyInstall%
C:\Users\Admin\AppData\Local\Chocolatey NT AUTHORITY\SYSTEM:(OI)(CI)(F)
BUILTIN\Administrators:(OI)(CI)(F)
W8164\Admin:(OI)(CI)(F)
Successfully processed 1 files; Failed processing 0 files
C:\>powershell -Command (Get-Acl %ChocolateyInstall%).Owner
W8164\Admin
C:\>whoami /all | findstr BUILTIN\Administrators
BUILTIN\Administrators Alias S
-1-5-32-544 Group used for deny only
C:\>choco --version
0.9.9.11
C:\>icacls %ChocolateyInstall%
C:\ProgramData\chocolatey W8164\Admin:(M)
NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
BUILTIN\Administrators:(I)(OI)(CI)(F)
CREATOR OWNER:(I)(OI)(CI)(IO)(F)
BUILTIN\Users:(I)(OI)(CI)(RX)
BUILTIN\Users:(I)(CI)(WD,AD,WEA,WA)
Successfully processed 1 files; Failed processing 0 files
C:\>powershell -Command (Get-Acl %ChocolateyInstall%).Owner
BUILTIN\Administrators
C:\>choco upgrade -y -pre chocolatey
Chocolatey detected you are not running from an elevated command shell
(cmd/powershell).
Upgrading the following packages:
chocolatey
By upgrading you accept licenses for the packages.
You have chocolatey v0.9.9.11 installed. Version 0.9.10-rc1 is available based o
n your source(s).
This is try 1/3. Retrying after 300 milliseconds.
Error converted to warning:
Access to the path 'C:\ProgramData\chocolatey\lib\chocolatey' is denied.
This is try 2/3. Retrying after 400 milliseconds.
Error converted to warning:
Access to the path 'C:\ProgramData\chocolatey\lib\chocolatey' is denied.
Maximum tries of 3 reached. Throwing error.
Move failed with message:
Access to the path 'C:\ProgramData\chocolatey\lib\chocolatey' is denied.
Attempting backup move method.
This is try 1/3. Retrying after 300 milliseconds.
Error converted to warning:
Access to the path is denied.
This is try 2/3. Retrying after 400 milliseconds.
Error converted to warning:
Access to the path is denied.
Maximum tries of 3 reached. Throwing error.
Error during backup (move phase):
Access to the path is denied.
There was an error accessing files. This could mean there is a
process locking the folder or files. Please make sure nothing is
running that would lock the files or folders in this directory prior
to upgrade. If the package fails to upgrade, this is likely the cause.
chocolatey not upgraded. An error occurred during installation:
Access to the path 'C:\ProgramData\chocolatey\lib\chocolatey\chocolatey.nupkg'
is denied.
The upgrade of chocolatey was NOT successful.
chocolatey not upgraded. An error occurred during installation:
Access to the path 'C:\ProgramData\chocolatey\lib\chocolatey\chocolatey.nupkg'
is denied.
This is try 1/3. Retrying after 300 milliseconds.
Error converted to warning:
Access to the path 'C:\ProgramData\chocolatey\lib\chocolatey' is denied.
This is try 2/3. Retrying after 400 milliseconds.
Error converted to warning:
Access to the path 'C:\ProgramData\chocolatey\lib\chocolatey' is denied.
Maximum tries of 3 reached. Throwing error.
Move failed with message:
Access to the path 'C:\ProgramData\chocolatey\lib\chocolatey' is denied.
Attempting backup move method.
This is try 1/3. Retrying after 300 milliseconds.
Error converted to warning:
Access to the path is denied.
This is try 2/3. Retrying after 400 milliseconds.
Error converted to warning:
Access to the path is denied.
Maximum tries of 3 reached. Throwing error.
Could not move bad package to failure directory It will show as installed.
C:\ProgramData\chocolatey\lib\chocolatey
The error:
Access to the path is denied.
This is try 1/3. Retrying after 300 milliseconds.
Error converted to warning:
Cannot create a file when that file already exists.
This is try 2/3. Retrying after 400 milliseconds.
Error converted to warning:
Cannot create a file when that file already exists.
Maximum tries of 3 reached. Throwing error.
Move failed with message:
Cannot create a file when that file already exists.
Attempting backup move method.
Chocolatey upgraded 0/1 package(s). 1 package(s) failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures:
- chocolatey
C:\>choco --version
0.9.9.11
C:\>icacls %ChocolateyInstall%
C:\ProgramData\chocolatey W8164\Admin:(M)
NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
BUILTIN\Administrators:(I)(OI)(CI)(F)
CREATOR OWNER:(I)(OI)(CI)(IO)(F)
BUILTIN\Users:(I)(OI)(CI)(RX)
BUILTIN\Users:(I)(CI)(WD,AD,WEA,WA)
Successfully processed 1 files; Failed processing 0 files
C:\>powershell -Command (Get-Acl %ChocolateyInstall%).Owner
BUILTIN\Administrators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment