By Sergiu Gatlan
Publication Date: 2026-02-27 20:00:00
Microsoft is rolling out new Windows 11 Insider Preview builds that improve security and performance during batch file or CMD script execution.
As Microsoft explained today, IT administrators can now enable a more secure processing mode that prevents batch files from being modified while they run by adding the LockBatchFilesInUse registry value under HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor.
Policy authors can also enable this mode using the LockBatchFilesWhenInUse application manifest control.
This change is designed to boost performance and security in enterprise environments where admins rely heavily on scripted workflows.
“We are giving administrators and Application Control for Business policy authors additional controls over the processing of batch files and CMD scripts. Starting with this release, administrators may enable a more secure mode for processing batch files that ensures they do not change during execution,” the Windows Insider team…

