Listing Defender Path exclusions ((Get-MpPreference).ExclusionPath), there is quite long list. Some paths contain wildcard and/or environment variables. There might be configured also file extensions exclusions.
Is there a single command (or utility) which would tell whether a specific file or folder is excluded? I mean for purpose of testing the configuration..
The closest I found so far is MpCmdRun.exe -CheckExclusion -path <path> but it only checks whether the path is listed in the exclusions, it does not even expand the environment variables..
(I'm on Windows 11)