Olá, seguindo as orientações conforme o vídeo tentei instalar o Chocolatey porém deu algum erro (Sei que não é da aula e sim da minha maquina), caso possível gostaria da ajuda para resolver este problema.
No Prompt executando como ADM deu o seguinte resultado:
C:\WINDOWS\system32>@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
Getting latest version of the Chocolatey package for download.
Downloading https://chocolatey.org/api/v2/package/chocolatey/0.10.3 to C:\Users\VISITA~1\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip
Extracting C:\Users\VISITA~1\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip to C:\Users\VISITA~1\AppData\Local\Temp\chocolatey\chocInstall...
Downloading 7-Zip commandline tool first
Downloading https://chocolatey.org/7za.exe to C:\Users\VISITA~1\AppData\Local\Temp\chocolatey\chocInstall\7za.exe
7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
Processing archive: C:\Users\VISITA~1\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.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.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-EnvironmentVariableNames.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-FtpFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-OSArchitectureWidth.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-ToolsLocation.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-UACEnabled.ps1
Extracting tools\chocolateyInstall\helpers\functions\Get-UninstallRegistryKey.ps1
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-ChocolateyDesktopLink.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyEnvironmentVariable.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyExplorerMenuItem.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyFileAssociation.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyInstallPackage.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyPackage.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyPath.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyPinnedTaskBarItem.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyPowershellCommand.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyShortcut.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyVsixPackage.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-ChocolateyZipPackage.ps1
Extracting tools\chocolateyInstall\helpers\functions\Install-Vsix.ps1
Extracting tools\chocolateyInstall\helpers\functions\Set-EnvironmentVariable.ps1
Extracting tools\chocolateyInstall\helpers\functions\Set-PowerShellExitCode.ps1
Extracting tools\chocolateyInstall\helpers\functions\Start-ChocolateyProcessAsAdmin.ps1
Extracting tools\chocolateyInstall\helpers\functions\Test-ProcessAdminRights.ps1
Extracting tools\chocolateyInstall\helpers\functions\Uninstall-BinFile.ps1
Extracting tools\chocolateyInstall\helpers\functions\Uninstall-ChocolateyEnvironmentVariable.ps1
Extracting tools\chocolateyInstall\helpers\functions\Uninstall-ChocolateyPackage.ps1
Extracting tools\chocolateyInstall\helpers\functions\UnInstall-ChocolateyZipPackage.ps1
Extracting tools\chocolateyInstall\helpers\functions\Update-SessionEnvironment.ps1
Extracting tools\chocolateyInstall\helpers\functions\Write-ChocolateyFailure.ps1
Extracting tools\chocolateyInstall\helpers\functions\Write-ChocolateySuccess.ps1
Extracting tools\chocolateyInstall\helpers\functions\Write-FileUpdateLog.ps1
Extracting tools\chocolateyInstall\helpers\functions\Write-FunctionCallLogMessage.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\7z.dll
Extracting tools\chocolateyInstall\tools\7z.dll.manifest
Extracting tools\chocolateyInstall\tools\7z.exe
Extracting tools\chocolateyInstall\tools\7z.exe.ignore
Extracting tools\chocolateyInstall\tools\7z.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\c84442c36b834d13b3e387a3dc302199.psmdcp
Extracting [Content_Types].xml
Everything is Ok
Files: 89
Size: 12295562
Compressed: 7071497
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.
AVISO: Not setting tab completion: Profile file does not exist at
'C:\Users\Visitante\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps
1'.
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
C:\WINDOWS\system32>
No CMDER quando chamei "choco" apareceu a seguinte mensagem:
This is try 1/3. Retrying after 300 milliseconds. Error converted to warning: O acesso ao caminho 'C:\ProgramData\chocolatey\config' foi negado. This is try 2/3. Retrying after 400 milliseconds. Error converted to warning: O acesso ao caminho 'C:\ProgramData\chocolatey\config' foi negado. Maximum tries of 3 reached. Throwing error. Cannot create directory "C:\ProgramData\chocolatey\config". Error was: System.UnauthorizedAccessException: O acesso ao caminho 'C:\ProgramData\chocolatey\config' foi negado. em System.IO.Error.WinIOError(Int32 errorCode, String maybeFullPath) em System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost) em System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost) em chocolatey.infrastructure.filesystem.DotNetFileSystem.<>cDisplayClass60.b5f() em chocolatey.infrastructure.tolerance.FaultTolerance.<>cDisplayClass1.b__0() em chocolatey.infrastructure.tolerance.FaultTolerance.retry[T](Int32 numberOfTries, Func`1 function, Int32 waitDurationMilliseconds, Int32 increaseRetryByMilliseconds, Boolean isSilent) em chocolatey.infrastructure.filesystem.DotNetFileSystem.create_directory(String directoryPath) em chocolatey.infrastructure.filesystem.DotNetFileSystem.create_directory_if_not_exists(String directoryPath, Boolean ignoreError) O acesso ao caminho 'C:\ProgramData\chocolatey\config' foi negado.
:/