Defender still flagged them. I think there is an extra " in the commands
I changed "DefExclusion="%SystemRoot%\system32\ldntvdm.dll" to "DefExclusion=%SystemRoot%\system32\ldntvdm.dll"
and "DefExclusion="%SystemRoot%\syswow64\ldntvdm.dll" to "DefExclusion=%SystemRoot%\syswow64\ldntvdm.dll"
This then works fine and the entries were added as
The entries added by install.bat to defender were added as
"C:\WINDOWS\system32\ldntvdm.dl "C:\WINDOWS\syswow64\ldntvdm.dll
Defender still flagged them. I think there is an extra " in the commands
I changed "DefExclusion="%SystemRoot%\system32\ldntvdm.dll" to "DefExclusion=%SystemRoot%\system32\ldntvdm.dll" and "DefExclusion="%SystemRoot%\syswow64\ldntvdm.dll" to "DefExclusion=%SystemRoot%\syswow64\ldntvdm.dll"
This then works fine and the entries were added as
C:\WINDOWS\system32\ldntvdm.dl C:\WINDOWS\syswow64\ldntvdm.dll
and defender does not detect a problem