Provided PowerShell script to allow folders/files in Defender fails on Win 11 24H2 (26100.4601)
Before reporting your issue
- [ ] I have confirmed that this issue does not happen when ExplorerPatcher is not installed
- [x] I do not have "register as shell extension" enabled
- [x] I have tried my best to check existing issues
Repro ExplorerPatcher versions
dxgi.dll v 22621.4317.67.1
Repro Windows Versions
Win 11 24H2 (26100.4601)
3rd party tweak software installed
Malwarebytes is installed. I have entered the 5 items in the "Allowed List"
Describe the bug
run provided PowerShell script for Windows Defender that is supposed to tell it to ignore ExplorerPatch. Output follows:
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
PS C:\WINDOWS\system32> Add-MpPreference -ExclusionPath "C:\Program Files\ExplorerPatcher"
>> Add-MpPreference -ExclusionPath "$env:APPDATA\ExplorerPatcher"
>> Add-MpPreference -ExclusionPath "C:\Windows\dxgi.dll"
>> Add-MpPreference -ExclusionPath "C:\Windows\SystemApps\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy"
>> Add-MpPreference -ExclusionPath "C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy"
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: 0x800106ba
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: 0x800106ba. Operation: MpPreference. Target:
ConfigListExtension.
At line:2 char:1
+ Add-MpPreference -ExclusionPath "$env:APPDATA\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: 0x800106ba
At line:2 char:1
+ Add-MpPreference -ExclusionPath "$env:APPDATA\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: 0x800106ba. Operation: MpPreference. Target:
ConfigListExtension.
At line:3 char:1
+ Add-MpPreference -ExclusionPath "C:\Windows\dxgi.dll"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (MSFT_MpPreference:root\Microsoft\...FT_MpPreference) [Add-MpPreference],
CimException
+ FullyQualifiedErrorId : HRESULT 0x800106ba,Add-MpPreference
Add-MpPreference : Operation failed with the following error: 0x800106ba
At line:3 char:1
+ Add-MpPreference -ExclusionPath "C:\Windows\dxgi.dll"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (MSFT_MpPreference:root\Microsoft\...FT_MpPreference) [Add-MpPreference],
CimException
+ FullyQualifiedErrorId : HRESULT 0x800106ba,Add-MpPreference
Add-MpPreference : Operation failed with the following error: 0x800106ba. Operation: MpPreference. Target:
ConfigListExtension.
At line:4 char:1
+ Add-MpPreference -ExclusionPath "C:\Windows\SystemApps\Microsoft.Wind ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (MSFT_MpPreference:root\Microsoft\...FT_MpPreference) [Add-MpPreference],
CimException
+ FullyQualifiedErrorId : HRESULT 0x800106ba,Add-MpPreference
Add-MpPreference : Operation failed with the following error: 0x800106ba
At line:4 char:1
+ Add-MpPreference -ExclusionPath "C:\Windows\SystemApps\Microsoft.Wind ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (MSFT_MpPreference:root\Microsoft\...FT_MpPreference) [Add-MpPreference],
CimException
+ FullyQualifiedErrorId : HRESULT 0x800106ba,Add-MpPreference
Add-MpPreference : Operation failed with the following error: 0x800106ba. Operation: MpPreference. Target:
ConfigListExtension.
At line:5 char:1
+ Add-MpPreference -ExclusionPath "C:\Windows\SystemApps\ShellExperienc ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (MSFT_MpPreference:root\Microsoft\...FT_MpPreference) [Add-MpPreference],
CimException
+ FullyQualifiedErrorId : HRESULT 0x800106ba,Add-MpPreference
Add-MpPreference : Operation failed with the following error: 0x800106ba
At line:5 char:1
+ Add-MpPreference -ExclusionPath "C:\Windows\SystemApps\ShellExperienc ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (MSFT_MpPreference:root\Microsoft\...FT_MpPreference) [Add-MpPreference],
CimException
+ FullyQualifiedErrorId : HRESULT 0x800106ba,Add-MpPreference
PS C:\WINDOWS\system32>
Expected outcome
no errors when running the PowerShell script
Actual outcome
None of the 5 script lines worked, PowerShell output above in "Describe the bug"
Additional info
No response
Crash Dumps
No response
Media
No response
[!CAUTION] Microsoft and other major antivirus vendors have flagged ExplorerPatcher as "malware". This is likely due to Microsoft's hatred against ExplorerPatcher, not because it contains a virus or such. Flags from Microsoft usually spread to other antivirus vendors.
Please include the following files and folders in your antivirus' exclusion list to prevent issues due to antivirus detections:
C:\Program Files\ExplorerPatcher
%APPDATA%\ExplorerPatcher
C:\Windows\dxgi.dll
C:\Windows\SystemApps\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy
C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy
For Defender, you can run the following script in PowerShell as an administrator:
Add-MpPreference -ExclusionPath "C:\Program Files\ExplorerPatcher"
Add-MpPreference -ExclusionPath "$env:APPDATA\ExplorerPatcher"
Add-MpPreference -ExclusionPath "C:\Windows\dxgi.dll"
Add-MpPreference -ExclusionPath "C:\Windows\SystemApps\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy"
Add-MpPreference -ExclusionPath "C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy"
Failure to exclude ExplorerPatcher's files may result in inability to install/uninstall ExplorerPatcher and explorer.exe being unable to start.
If you do not trust this process, please refrain from using ExplorerPatcher and look for alternatives instead.
Microsoft, if you are reading this, please reconsider the detections as there are a lot of users who trust this program and that risks from future EP developers are a thing.
This issue was closed automatically. You want to discuss this in https://github.com/valinet/ExplorerPatcher/issues/3670.
When you get error: 0x800106ba, it means Windows Defender is not active. You may have another antivirus program active, which means you need to add those files and directories to be excluded in your antivirus program.