You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once the password for VM is entered, the chocolatey was installed and when the boxstarter packages are installing, the flare installation was stopped and I got the following error:
Invoke-Expression: The term 'cinst' 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.
Checked the Chocolatey version and it was 2.0.0 Downgraded the Chocolatey version to 1.4.0 and ran the script again and now the flare installation was successful without any errors.
This is caused by Boxstarter not being compatible with Chocolatey 2 (released few days ago) as it uses the deprecated (now removed) cinst. You can run $env:chocolateyVersion = '1.4.0' before installing flare-vm till chocolatey/boxstarter#533 fix is merged and released.
What's the problem?
After running Unblock-File .\install.ps1 command and Set-ExecutionPolicy Unrestricted command, I ran the script using this command for the flare installation:
.\install.ps1 -customConfig https://raw.githubusercontent.com/HuskyHacks/PMAT-labs/main/config.xml
Once the password for VM is entered, the chocolatey was installed and when the boxstarter packages are installing, the flare installation was stopped and I got the following error:
Invoke-Expression: The term 'cinst' 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.
Checked the Chocolatey version and it was 2.0.0 Downgraded the Chocolatey version to 1.4.0 and ran the script again and now the flare installation was successful without any errors.
Steps to Reproduce
In PowerShell Admin prompt, run: (New-Object net.webclient).DownloadFile('https://raw.githubusercontent.com/mandiant/flare-vm/main/install.ps1',"$([Environment]::GetFolderPath("Desktop"))\install.ps1")
Change directories to the Desktop
Run: Unblock-File .\install.ps1
Run: Set-ExecutionPolicy Unrestricted
Run: .\install.ps1 -customConfig https://raw.githubusercontent.com/HuskyHacks/PMAT-labs/main/config.xml
Enter VM password and click Y to continue the installation process.
Environment
HostOS : Windows 11 Home
Virtualization software : Virtualbox 7.0
Version : 10.0.19045
BuildNumber : 19045
OSArchitecture : 64-bit
ServicePackMajorVersion : 0
Caption : Microsoft Windows 10 Enterprise Evaluation
VM OS HDD Space / Usage
DeviceID DriveType ProviderName VolumeName Size FreeSpace
C: 3 85286490112 50864492544
D: 5 VBox_GAs_7.0.8 53485568 0
VM PowerShell Version
5.1.19041.1682
Chocolatey version was now changed to 1.4.0 as i downgraded it to make it work through the installation process. Previously it was 2.0.0
VM Boxstarter Version
Boxstarter|3.0.0
Boxstarter.Bootstrapper|3.0.0
Boxstarter.Chocolatey|3.0.0
Boxstarter.Common|3.0.0
Boxstarter.HyperV|3.0.0
Boxstarter.WinConfig|3.0.0
Detected by test suite
Yes
The text was updated successfully, but these errors were encountered: