mandiant / mandiant/VM-Packages

Enhance log of VM-Apply-Configurations

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

@emtuls is already working on this.

Since Aug 2, 2025.

:gem: enhancement
Dominant language
PowerShell
Stars
246
Forks
98
Avg merge
9h 30m
Merged PRs (30d)
7

Description

Details

The output of debloat.vm (that comes from VM-Apply-Configurations) is very difficult to read for example because of:

  • It includes the string Progress: 0% - Processing the class name Microsoft.Dism.Commands.ImageObject which shouldn't be outputted. Example:
    Progress: 0% - Processing                                                                                              Microsoft.XboxGameCallableUI_1000.25128.1000.0_neutral_neutral_cw5n1h2txyewy removed
            Provisioned packages matching pattern 'Microsoft.XboxGameCallableUI' not found on the system.
    Progress: 0% - Processing                                                                                              Windows.CBSPreview_10.0.19580.1000_neutral_neutral_cw5n1h2txyewy removed
            Provisioned packages matching pattern 'Windows.CBSPreview' not found on the system.
    Progress: 0% - Processing                                                                                              Microsoft.OutlookForWindows_1.0.0.0_neutral__8wekyb3d8bbwe removed
    Microsoft.Dism.Commands.ImageObject
            Provisioned package Microsoft.OutlookForWindows_1.0.0.0_neutral__8wekyb3d8bbwe removed
            Installed packages matching pattern 'Microsoft.Ink.Handwriting' not found on the system.
            Provisioned packages matching pattern 'Microsoft.Ink.Handwriting' not found on the system.
    Progress: 0% - Processing                                                                                              MicrosoftWindows.CrossDevice_0.25062.33.0_x64__cw5n1h2txyewy removed
    
  • It includes the word "INFO" likely caused by using the wrong helper function to print information. We should use VM-Write-Log for all relevant output. Example:
    INFO
    Service XboxNetApiSvc has been set to manual startup.
    INFO
    Service RetailDemo has been set to manual startup.
    

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.