mandiant / VM-Packages

Chocolatey packages supporting the analysis environment projects FLARE-VM & Commando VM.
Apache License 2.0
140 stars 62 forks source link

Add -RunAsAdmin Flag #61

Open MalwareMechanic opened 2 years ago

MalwareMechanic commented 2 years ago

Add option for helper functions to allow user's to specify if tool should be ran as admin

Ana06 commented 5 months ago

@emtuls is this issue still needed?

emtuls commented 5 months ago

I think it should be added as a parameter to a few more functions inside of common.vm just so that we have the option available for future packages.

Right now it's only used in VM-Install-Shortcut, which means that in order for us to have a tool be run as admin, we have to call the VM-Install-Shortcut directly with the -runAsAdmin flag.

If we also add this flag to VM-Install-From-Zip, VM-Install-With-Installer, VM-Install-Single-Exe, and VM-Install-Single-Ps1, then we would be able to just pass the flag along to the VM-Install-Shortcut call so that it is handled as needed.

This would also give us the ability to add it to our package templates as an option for when someone creates a package request.

naacbin commented 3 months ago

I agree, this would be a useful addition as currently packages such as systeminformer are not run as admin.