mandiant / flare-vm

A collection of software installations scripts for Windows systems that allows you to easily setup and maintain a reverse engineering environment on a VM.
Apache License 2.0
6.35k stars 896 forks source link

unable to install .\install.ps1 script #455

Closed jothiveldgl closed 1 year ago

jothiveldgl commented 1 year ago

when i try to install this script in powershell admin (.\install .ps1) based on the given installation steps, I am getting the below error. I tried several times but its still persist. I am using windows 10

[+] Checking if script is running as administrator... [+] Running as administrator [+] Checking if execution policy is unrestricted... [+] Execution policy is unrestricted [+] Checking if Windows Defender Tamper Protection is disabled... [+] Tamper Protection is disabled [+] Checking if Windows Defender service is disabled... [!] Please disable Windows Defender through Group Policy, reboot, and rerun installer [+] Hint: https://stackoverflow.com/questions/62174426/how-to-permanently-disable-windows-defender-real-time-protection-with-gpo [+] Hint: https://www.windowscentral.com/how-permanently-disable-windows-defender-windows-10 [+] Hint: https://github.com/jeremybeaume/tools/blob/master/disable-defender.ps1 [+] You are welcome to continue, but may experience errors downloading or installing packages [-] Do you still wish to proceed? (Y/N): Y [+] Checking to make sure Operating System is compatible... [!] Windows version 19045 has not been tested. Tested versions: 17763, 19042 [+] You are welcome to continue, but may experience errors downloading or installing packages [-] Do you still wish to proceed? (Y/N): Y [+] Checking if host has enough disk space... [+] Disk is larger than 60 GB [-] Have you taken a VM snapshot to ensure you can revert to pre-installation state? (Y/N): Y [+] Getting user credentials ...

Windows PowerShell credential request Enter your credentials. Password for user jothi: **

[+] Installing Boxstarter... Welcome to the Boxstarter Module installer! Chocolatey installed, Installing Boxstarter Modules. 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. At line:55 char:9

PS C:\Users\jothi\OneDrive\Desktop>

PrettyBoyCosmo commented 1 year ago

hey i'm getting this same issue too. i've followed all the appropriate instructions but am having no success

DanAsBjorn commented 1 year ago

https://github.com/mandiant/VM-Packages/issues/409

Seems to cover the issue

DanAsBjorn commented 1 year ago

run this command before the install script

$env:chocolateyVersion = '1.4.0'

PrettyBoyCosmo commented 1 year ago

didn't work for me, sorry :(

DanAsBjorn commented 1 year ago

@PrettyBoyCosmo you need to delete chocolatey first

PrettyBoyCosmo commented 1 year ago

ah gotchu, it seems to be working now. many thanks :D i'll be sure to bother you if i run into any more issues haha 😉

hetaofan commented 1 year ago

Execuse me . I met this problem. can you help me solve it? how can I delete the chocolatey?

mr-tz commented 1 year ago

See https://github.com/chocolatey/boxstarter/issues/532. Hopefully, boxstarter gets updated soon. In the meantime: use $env:chocolateyVersion = '1.4.0' before installing boxstarter.

Ana06 commented 1 year ago

Duplicate of https://github.com/mandiant/flare-vm/issues/456