mandiant / mandiant/VM-Packages

VM-Sort-Desktop-Icons not always working

Open
#1,493 0 comments 0 reactions 1 assignee View on GitHub

@emtuls is already working on this.

Since Aug 13, 2025.

:bug: bug :cyclone: FLARE-VM
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:

Image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.