ADMX Viewer
AddSystemHard.Policies.AddSystemHard• Machine

Enable secure mode for batch file processing

Download ADMX

This policy gives administrators additional controls over the processing of batch files and CMD scripts. If you enable this policy, a more secure mode for processing batch files is enabled, which ensures they do not change during execution by holding an opportunistic lock. This enhances the performance and security of batch file processing when Code Integrity is enabled, as signature validation will only be required to be performed a single time, instead of per statement executed in the batch file. Note: This functionality is supported on Windows 11 Insider Preview Build 26300.7939 or later.

Policy Details

Policy Name
LockBatchFilesWhenInUse
Registry Key
SOFTWARE\Microsoft\Command Processor
Value Name
LockBatchFilesWhenInUse
Supported On
At least Windows Server 2016, Windows 10
Policy State Values
Enabled: 1
Disabled: 0
Available Languages
en-usfr-fr