mandiant / mandiant/VM-Packages
VM-Sort-Desktop-Icons not always working
@emtuls is already working on this.
Since Aug 13, 2025.
- Dominant language
- PowerShell
- Stars
- 246
- Forks
- 98
- Avg merge
- 9h 30m
- Merged PRs (30d)
- 7
Description
### Details
After executing the `VM-Clean-Up` function during [our automatic builds](https://github.com/mandiant/flare-vm/blob/main/virtualbox/vbox-build-flare-vm.py#L236), the `Tools` and `fakenet_logs` are sometimes not at the top left of the desktop:
This is likely caused by a bug in `VM-Sort-Desktop-Icons` or perhaps because of executing it immediately after `VM-Remove-DesktopFiles`.
This happens in both Windows 10 and Windows 11.
Note that in [our automatic builds](https://github.com/mandiant/flare-vm/blob/main/virtualbox/vbox-build-flare-vm.py#L236) we delete the `PS_Transcripts` folder at the end of the installation, which may cause an empty sport at the top and that consecuently the `Tools` and `fakenet_logs` are not completely at the top. We are not able to delete the `PS_Transcripts` from PoweShell. In order to ensure the folders are completely at the top, we would need to remove the `VM-Sort-Desktop-Icons` function from this project and execute equivalent code from cmd in [our automatic builds](https://github.com/mandiant/flare-vm/blob/main/virtualbox/vbox-build-flare-vm.py#L236).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.