1. After some optimization software of the Group Policy method is optimized, the security warning prompt is opened to improve security. Some may not want to use this function, which can be solved as follows. start --> Run --> gpedit. MSC --> User Configuration --> management template --> Windows Components --> attachment manager --> right-click "moderate-risk file type inclusion list" --> properties --> select "enabled" --> in the "moderate dangerous file type inclusion list", enter the extension of the warning to be disabled, for example: .batcmd.exe ;. reg ;. vbs --> OK. Separated by semicolons. Then, enter the command line gpupdate or gpupdate/force in cmd to refresh the Group Policy.
2. The Registry and the batch processing modification method save the following section as the reg file. Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Policies \ associations] "modriskfiletypes" = ".batw..exe ;. reg ;. vbs "start -- run -- cmd --- gpupdate/force refresh Group Policy ~~ You can also create a registry project in batches and refresh the Group Policy. The following section is saved in bat format. Reg add hkcu \ Software \ Microsoft \ Windows \ CurrentVersion \ associies \ associations/V modriskfiletypes/T REG_SZ/d .batw..exe ;. reg ;. in vbs/fgpupdate/force, note that the "Automatic line feed" command is canceled. Reg add hkcu \ Software \ Microsoft \ Windows \ CurrentVersion \ associies \ associations/V modriskfiletypes/T REG_SZ/d .bat0000.exe;. reg;. vbs/F