Skip to content

Enhance log of VM-Apply-Configurations #1478

@Ana06

Description

@Ana06

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.
    

Metadata

Metadata

Assignees

Labels

💎 enhancementIt is working, but it could be better

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions