Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add helper to pin to taskbar #708

Closed
Ana06 opened this issue Oct 19, 2023 · 6 comments
Closed

Add helper to pin to taskbar #708

Ana06 opened this issue Oct 19, 2023 · 6 comments
Labels
💎 enhancement It is working, but it could be better ❔ discussion Further discussion is needed

Comments

@Ana06
Copy link
Member

Ana06 commented Oct 19, 2023

It would be nice to have a helper function in common VM-Pin-To-Taskbar to be able to configure the tools to pin in the configuration file. See mandiant/flare-vm#512

I am not sue how to implement it though, as it seems this information is stored a bit cryptic in the register.

@Ana06 Ana06 added 💎 enhancement It is working, but it could be better ❔ discussion Further discussion is needed labels Oct 19, 2023
@day1player
Copy link
Contributor

@Ana06 there is a chocolately package that we use to rely on for Commando: https://community.chocolatey.org/packages/syspin

I think what we might be able to do is incorporate this into the VM-Pin-To-Taskbar function:
https://github.com/SebastianK90/chocolateyautomaticpackages/blob/master/syspin/tools/chocolateyInstall.ps1

We can pull down the file, iterate through an array of items to pin to the taskbar, and then call the function in our configs so we can each have separate items pinned

@day1player
Copy link
Contributor

Also not to hijack the issue, but I am also tracking these functions for the common module:

REMOVE FROM COMMON.VM:

  • VM-ConvertFrom-Json
  • VM-Get-DiskSize
  • VM-Get-FreeSpace
  • VM-Check-Reboot

ADD TO COMMON.VM

  • VM-Pin-To-Taskbar
  • VM-Assert-Signature
  • VM-Add-To-Right-Click-Menu
  • VM-Remove-Desktop-Shortcut

@Ana06
Copy link
Member Author

Ana06 commented Oct 20, 2023

@Ana06 there is a chocolately package that we use to rely on for Commando: https://community.chocolatey.org/packages/syspin

This is a great thing @day1player. I can require it already in flare-vm as package and use to pin the tools. But I think a helper function would be better, as we can do this with a single line in the config. But even more important, I would like to have some tools to start with admin rights. I think we can't do this with syspin, or have I missed this?

Maybe this project is also useful: https://github.com/0x546F6D/pttb_-_Pin_To_TaskBar

@Ana06
Copy link
Member Author

Ana06 commented Oct 20, 2023

I think it would also be nice to pin the Tools folder to taskbar (if possible). I think this could be done in the debloat/installer package as I think this would be nice for commando-vm as well. Am I right? This is also a more complicated case as we need to change the directory to open.

@day1player
Copy link
Contributor

But even more important, I would like to have some tools to start with admin rights. I think we can't do this with syspin, or have I missed this?

I would very much like this as well, I might have to do some digging in the Commando 2.0 folders.. I think what we did was create a Chocolatey Shortcut (since that supports the -RunAsAdmin flag) and then we used syspin to pin that shortcut to the taskbar

I think it would also be nice to pin the Tools folder to taskbar (if possible). I think this could be done in the debloat/installer package as I think this would be nice for commando-vm as well. Am I right? This is also a more complicated case as we need to change the directory to open.

I'm also a big fan of this, it would give us a completely clean desktop

@Ana06
Copy link
Member Author

Ana06 commented Dec 20, 2023

This was addressed in #748, thanks @emtuls!

@Ana06 Ana06 closed this as completed Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💎 enhancement It is working, but it could be better ❔ discussion Further discussion is needed
Projects
None yet
Development

No branches or pull requests

2 participants