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.22k stars 887 forks source link

Configuration: Pin taskbar icons #512

Closed Ana06 closed 8 months ago

Ana06 commented 9 months ago

Details

Pin the following icons to the taskbar:

This is to be add to the default config file (config.xml). We can probably implement this similarly as in https://github.com/mandiant/VM-Packages/blob/6423a6184172bd7a2af51eb1554551d8f45d7553/packages/debloat.vm/tools/win10.xml#L164

Requires https://github.com/mandiant/flare-vm/issues/510

Ana06 commented 9 months ago

depending how easy the code is, we could consider adding a helper function in common. This also could be used by commando-vm and directly by the users (for example to change the taskbar in a provided VM with flare-vm installed).

Ana06 commented 9 months ago

Idea: Use syspin. We may need to create a Chocolatey Shortcut (since that supports the -RunAsAdmin flag) to star tools as admin.

Ana06 commented 9 months ago

For ida, see https://github.com/mandiant/VM-Packages/issues/694

emtuls commented 8 months ago

@Ana06 Unfortunately, syspin only works to pin .exe files and won't work with shortcuts/links and I was unable to find a simple set of powershell commands to make this work.

If we want to continue with the shortcut route, one option I looked into that seems promising is to use a custom Start Layout: https://learn.microsoft.com/en-us/windows/configuration/windows-10-start-layout-options-and-policies

Would this be a viable option to consider?

Otherwise, we can continue down the path of using syspin, but I don't know if we'd be able to have pinned items be set to 'Run as Admin' via automation. I'll continue to look at alternative options and see if I can find other ways to make this work though!

Ana06 commented 8 months ago

File Explorer (if possible with the Tools folder)

Extracting this into https://github.com/mandiant/flare-vm/issues/535 to have more independent issues, as is is not the main goal of this issue.