VM-Packages icon indicating copy to clipboard operation
VM-Packages copied to clipboard

Add -RunAsAdmin Flag

Open MalwareMechanic opened this issue 2 years ago • 3 comments

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

MalwareMechanic avatar Jul 13 '22 13:07 MalwareMechanic

@emtuls is this issue still needed?

Ana06 avatar Apr 19 '24 07:04 Ana06

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.

emtuls avatar Apr 19 '24 21:04 emtuls

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

naacbin avatar Jun 25 '24 16:06 naacbin