Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add-MpPreference fails #4213

Closed
1 of 3 tasks
LukeDouglas2 opened this issue Mar 12, 2025 · 7 comments
Closed
1 of 3 tasks

Add-MpPreference fails #4213

LukeDouglas2 opened this issue Mar 12, 2025 · 7 comments

Comments

@LukeDouglas2
Copy link

Before reporting your issue

  • I have confirmed that this issue does not happen when ExplorerPatcher is not installed
  • I do not have "register as shell extension" enabled
  • I have tried my best to check existing issues

Repro ExplorerPatcher versions

Explorer Patcher v22621 4317.67.1

Repro Windows Versions

Windows 11, version 24H2
Version 10.0.26100 Build 26100

3rd party tweak software installed

Explorer Patcher

Describe the bug

Unable to run the exclusion commands under PowerShell

Expected outcome

command to exclude EP

Actual outcome

PS C:\WINDOWS\system32> Add-MpPreference -ExclusionPath "C:\Program Files\ExplorerPatcher"
Add-MpPreference : Operation failed with the following error: 0x800106ba. Operation: MpPreference. Target:
ConfigListExtension.
At line:1 char:1

  • Add-MpPreference -ExclusionPath "C:\Program Files\ExplorerPatcher"
  •   + CategoryInfo          : NotSpecified: (MSFT_MpPreference:root\Microsoft\...FT_MpPreference) [Add-MpPreference],
     CimException
      + FullyQualifiedErrorId : HRESULT 0x800106ba,Add-MpPreference
    
    

Add-MpPreference : Operation failed with the following error: 0x%1!x!
At line:1 char:1

  • Add-MpPreference -ExclusionPath "C:\Program Files\ExplorerPatcher"
  •   + CategoryInfo          : NotSpecified: (MSFT_MpPreference:root\Microsoft\...FT_MpPreference) [Add-MpPreference],
     CimException
      + FullyQualifiedErrorId : HRESULT 0x800106ba,Add-MpPreference
    
    

PS C:\WINDOWS\system32>

Additional info

No response

Crash Dumps

No response

Media

No response

@pyrates999
Copy link

You must run power shell with elevated privileges. Right click on the powershell application and select run as administrator.

@LukeDouglas2
Copy link
Author

Yea, I did run it as Administrator. That's fairly standard procedure.

@pyrates999
Copy link

I checked the error code 0x800106ba, and it means you have another antivirus program active, which means you need to add those files and directories to be excluded in your antivirus program.

@LukeDouglas2
Copy link
Author

LukeDouglas2 commented Mar 14, 2025

Windows Defender is disabled. The only antivirus program running is Norton 360. I have C:\Program Files\ExplorerPatcher* excluded.

FYI, EP is running and working as expected. Was running these commands are recommend. Not sure they are truly needed.

@pyrates999
Copy link

You didn't read all the release notes here: https://github.com/valinet/ExplorerPatcher/releases

You also need to add these to be excluded to your antivirus:

  • %APPDATA%\ExplorerPatcher
  • C:\Windows\dxgi.dll
  • C:\Windows\SystemApps\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy
  • C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy

And include the download directory that you download EP to as well.

@LukeDouglas2
Copy link
Author

Excluded all. Disabled anti-virus. Same results.

Screw it. EP is working as before. I ain't worrying about this no more.

@pyrates999
Copy link

Then please close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants