Configure the group policy to add a whitelist.
In the Group Policy Management Editor window, choose User Configuration > Administrative Templates > Windows Components > Attachment Manager. Enable the Inclusion list for low file types policy. In the Options area, enter the file name extensions to be added to the inclusion list, for example, .lnk, .exe, and .gif.
In the actual scenarios, no warning message is displayed if .lnk, .exe, and .msc are entered in the Options area. This operation does not affect other application functions.