Skip to content

Instantly share code, notes, and snippets.

@clong
Created April 27, 2019 21:52
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 clong/fb0d0d7a83b01a08b820c597fccb4d40 to your computer and use it in GitHub Desktop.
Save clong/fb0d0d7a83b01a08b820c597fccb4d40 to your computer and use it in GitHub Desktop.
The following WinRM command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
powershell -ExecutionPolicy Bypass -OutputFormat Text -file "c:\tmp\vagrant-shell.ps1"
Stdout from the command:
Installing Chocolatey
Getting latest version of the Chocolatey package for download.
Getting Chocolatey from https://chocolatey.org/api/v2/package/chocolatey/0.10.13.
Downloading 7-Zip commandline tool prior to extraction.
Extracting C:\Users\vagrant\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip to C:\Users\vagrant\AppData\Local\Temp\chocolatey\chocInstall...
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. Adding...
WARNING: Not setting tab completion: Profile file does not exist at
'C:\Users\vagrant\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'.
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
Installing utilities...
Chocolatey v0.10.13
Installing the following packages:
classic-shell
By installing you accept licenses for the packages.
classic-shell v4.3.1.20180405 [Approved]
classic-shell package files install completed. Performing other installation steps.
Installing classic-shell...
classic-shell has been installed.
classic-shell may be able to be automatically uninstalled.
The install of classic-shell was successful.
Software installed as 'exe', install location is likely default.
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Chocolatey v0.10.13
Installing the following packages:
NotepadPlusPlus
By installing you accept licenses for the packages.
chocolatey-core.extension v1.3.3 [Approved]
chocolatey-core.extension package files install completed. Performing other installation steps.
Installed/updated chocolatey-core extensions.
The install of chocolatey-core.extension was successful.
Software installed to 'C:\ProgramData\chocolatey\extensions\chocolatey-core'
notepadplusplus.install v7.6.6 [Approved]
notepadplusplus.install package files install completed. Performing other installation steps.
Installing 64-bit notepadplusplus.install...
notepadplusplus.install has been installed.
notepadplusplus.install installed to 'C:\Program Files\Notepad++'
Added C:\ProgramData\chocolatey\bin\notepad++.exe shim pointed to 'c:\program files\notepad++\notepad++.exe'.
notepadplusplus.install may be able to be automatically uninstalled.
The install of notepadplusplus.install was successful.
Software installed as 'exe', install location is likely default.
notepadplusplus v7.6.6 [Approved]
notepadplusplus package files install completed. Performing other installation steps.
The install of notepadplusplus was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
Chocolatey installed 3/3 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Chocolatey v0.10.13
Installing the following packages:
GoogleChrome
By installing you accept licenses for the packages.
GoogleChrome v74.0.3729.108 [Approved]
googlechrome package files install completed. Performing other installation steps.
Downloading googlechrome 64 bit
from 'https://dl.google.com/tag/s/dl/chrome/install/googlechromestandaloneenterprise64.msi'
Download of googlechromestandaloneenterprise64.msi (55.32 MB) completed.
Hashes match.
Installing googlechrome...
googlechrome has been installed.
googlechrome may be able to be automatically uninstalled.
The install of googlechrome was successful.
Software installed as 'MSI', install location is likely default.
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Chocolatey v0.10.13
2 validations performed. 1 success(es), 1 warning(s), and 0 error(s).
Validation Warnings:
- A pending system reboot request has been detected, however, this is
being ignored due to the current Chocolatey configuration. If you
want to halt when this occurs, then either set the global feature
using:
choco feature enable -name=exitOnRebootDetected
or pass the option --exit-when-reboot-detected.
Installing the following packages:
WinRar
By installing you accept licenses for the packages.
winrar v5.70.0.20190305 [Approved]
winrar package files install completed. Performing other installation steps.
Downloading winrar 64 bit
from 'https://www.rarlab.com/rar/winrar-x64-570.exe'
Download of winrar-x64-570.exe (3 MB) completed.
Hashes match.
Installing winrar...
winrar has been installed.
winrar may be able to be automatically uninstalled.
The install of winrar was successful.
Software installed to 'C:\Program Files\WinRAR\'
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Utilties installation complete!
Stderr from the command:
powershell.exe : The operation completed successfully.
+ CategoryInfo : NotSpecified: (The operation completed successfully.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment