mandiant / commando-vm

Complete Mandiant Offensive VM (Commando VM), a fully customizable Windows-based pentesting virtual machine distribution. commandovm@mandiant.com
https://www.mandiant.com/resources/blog/commando-vm-windows-offensive-distribution
Apache License 2.0
6.87k stars 1.28k forks source link

Restarting install.ps1 to add additional packages results in Error #316

Closed xplt-artur closed 3 months ago

xplt-artur commented 9 months ago

Describe the bug and expected behavior After the initial install of lets say the "Default" package list, if I were to restart install.ps1 because I want to add additional packages, I get the following error

[+] Settings updated, beginning install. Please wait for a popup letting you know the installation is complete! [+] Setting Boxstarter config [!] Error: Failed to install profile: The property 'RebootOk' cannot be found on this object. Verify that the property exists and can be set.

Which seems to be related to https://github.com/chocolatey/boxstarter/issues/380 and can be fixed by adding Import-Module Boxstarter.Chocolatey

To Reproduce Steps to reproduce the behavior:

  1. Install default commando VM via install.ps1
  2. Start install.ps1 again, chose default preset, press install
  3. See error

Screenshots image

Version

sh0ra1t commented 9 months ago

edit install.ps1 and add the followingf information in the head of the script:

Import-Module Boxstarter.Chocolatey
$BoxStarter.RebootOk=$true

Now if you install it will work.

Menn1s commented 3 months ago

Thanks @sh0ra1t! We're hoping this has been fixed with a couple changes made recently. not sure why the flag for noReboots would be set, but good to see a workaround.