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

mdefordownlevelserver install.ps1 errors #283

Closed MikoAke closed 1 year ago

MikoAke commented 1 year ago

Hi, I ran the install.ps1 script from https://github.com/microsoft/mdefordownlevelserver/blob/main/Install.ps1 but it threw up loads of errors. The command I used was .\Install.ps1 -OnboardingScript ".\WindowsDefenderATPOnboardingScript.CMD"

The errors are PS C:\365> .\Install.ps1 -OnboardingScript ".\WindowsDefenderATPOnboardingScript.CMD" At C:\365\Install.ps1:209 char:17

See attached below

ps

day1player commented 1 year ago

Are you sure you're in the right repo? Fwiw I think you need to make sure when you download that script, you download "raw", it looks like there is a bunch of HTML in your code.

MikoAke commented 1 year ago

Are you sure you're in the right repo? Fwiw I think you need to make sure when you download that script, you download "raw", it looks like there is a bunch of HTML in your code.

Thank you! It looks like it is working