Skip to content

Conversation

@ArtanisInc
Copy link

@ArtanisInc ArtanisInc commented Dec 25, 2025

Questions

Changes:

  • Use InstanceId patterns (e.g., ACPI\PNP0103*) which are universal and language-independent
  • Add wildcard support for FriendlyName matching (e.g., "AMD PSP*")
  • Process devices individually with foreach loops for better error handling
  • Add clarifying comments about the questionable nature of this tweak

Describe your pull request

The PnP device disabling feature in DISABLEPNP.ps1 and Scripts.psm1 used exact FriendlyName matching, which only worked on English Windows installations. This caused the feature to fail silently on non-English systems where device names are localized.

Solution:

  • Use InstanceId patterns (e.g., ACPI\PNP0103\*, ROOT\KDNIC\*) which are universal and language-independent
  • Add wildcard support for FriendlyName matching (e.g., "AMD PSP*", "Intel*Management Engine*")

Why this matters:

The previous implementation would not disable any devices on non-English Windows installations (French, German, Spanish, etc.) because device names like "Composite Bus Enumerator" become "Énumérateur de bus composite" in French, "Composite-Busenumerator" in German, etc.

Using InstanceId patterns ensures the tweak works consistently across all language installations, since ACPI/PCI identifiers are standardized.

Note: VSCode did automatically format scripts.psm1 😅

…ling

The previous implementation used exact FriendlyName matching which only worked on English Windows installations. This caused the PnP device disabling feature to fail silently on non-English systems.

Changes:
- Use InstanceId patterns (e.g., ACPI\PNP0103\*) which are universal and language-independent
- Add wildcard support for FriendlyName matching (e.g., "AMD PSP*", "Intel*Management Engine*")
- Process devices individually with foreach loops for better error handling
- Add clarifying comments about the questionable nature of this tweak
@github-actions github-actions bot added the playbook Playbook related issues/PRs label Dec 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

playbook Playbook related issues/PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant