mandiant / mandiant/VM-Packages

debloat: stop on failure

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

Nobody has claimed this yet.

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

Description

### Details

On Windows 11 the debloat package fails to apply the following configuration:
```

```

Procesing the configuration causes the following error and that **the rest of the debloat config is not processed/applied**.
```
Disable Microsoft Connectivity Test (msftconnecttest.com) has been successful
An error occurred while applying config. Error: Cannot validate argument on parameter 'type'. The argument "REG_DWORD" does not belong to the set "String,ExpandString,Binary,DWord,QWord,MultiString,Unknown" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the command again.
```

We need to fix or remove this configuration line. But even more important, **we need to ensure we handle errors and the debloat continues even if one config item fails**.

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.