VM-Packages
VM-Packages copied to clipboard
Add -RunAsAdmin Flag
Add option for helper functions to allow user's to specify if tool should be ran as admin
@emtuls is this issue still needed?
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.
I agree, this would be a useful addition as currently packages such as systeminformer
are not run as admin.