mandiant / commando-vm

Complete Mandiant Offensive VM (Commando VM), a fully customizable Windows-based pentesting virtual machine distribution. commandovm@mandiant.com

Home Page:https://www.mandiant.com/resources/blog/commando-vm-windows-offensive-distribution

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to install profile

cybermorgue opened this issue · comments

To Reproduce
Steps to reproduce the behavior:

  1. Execute install.ps1, followed all instructions before.
  2. Choose whatever profile
  3. See error:
.\install.ps1
[+] Retrieving available packages from MyGet. Please wait.
[+] Beginning graphical install
[+] Settings updated, beginning install. Please wait for a popup letting you know the installation is complete!
[+] Installing Boxstarter
Chocolatey is going to be downloaded and installed on your machine. If you do not have the .NET Framework Version 4 or greater, that will also be downloaded and installed.
WARNING: An existing Chocolatey installation was detected. Installation will not continue. This script will not overwrite existing installations.
If there is no Chocolatey installation at 'C:\ProgramData\chocolatey', delete the folder and attempt the installation again.

Please use choco upgrade chocolatey to handle upgrades of Chocolatey itself.
If the existing installation is not functional or a prior installation did not complete, follow these steps:
 - Backup the files at the path listed above so you can restore your previous installation if needed.
 - Remove the existing installation manually.
 - Rerun this installation script.
 - Reinstall any packages previously installed, if needed (refer to the lib folder in the backup).

Once installation is completed, the backup folder is no longer needed and can be deleted.
[!] Error: Failed to install profile:
The term 'choco' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

It creates C:\ProgramData\chocolatey, which I deleted and start and again the same behaviour.

Installing chocolatey this way: Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) solved the issue.