How to Disable F5 and F8 During Startup in MS-DOS

Article translations Article translations
Article ID: 93602 - View products that this article applies to.
This article was previously published under Q93602
This article has been archived. It is offered "as is" and will no longer be updated.
MS-DOS 6.0 and later allow you to bypass both AUTOEXEC.BAT and CONFIG.SYS by pressing the F5 key as you are starting your computer. This can disable the effectiveness of some password-protection schemes. In order to disable this feature, add the following line to CONFIG.SYS:
This line disables both the F5 and F8 keys, which allow you to modify your startup configuration during the boot process. Note: This line can be put anywhere in CONFIG.SYS.
Expand all | Collapse all


Article ID: 93602 - Last Review: October 26, 2013 - Revision: 2.0
Applies to
  • Microsoft MS-DOS 6.0 Standard Edition
  • Microsoft MS-DOS 6.2 Standard Edition
  • Microsoft MS-DOS 6.21 Standard Edition
  • Microsoft MS-DOS 6.22 Standard Edition
kbnosurvey kbarchive KB93602

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from