Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

AutoRun Entry

Updated: March 28, 2003

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2


HKCU\Software\Microsoft\Command Processor


Data type Range Default value





Contains commands that run each time you start Command Processor (Cmd.exe).

Change Method

You can change the value of this entry by using Command Processor (Cmd.exe) and typing CMD /D, but only for the duration of that instance of Cmd.exe. For all other changes, you must edit the registry directly.

Activation Method

To make changes to this entry effective, you must restart Cmd.exe.


  • AutoRun can appear in HKLM and HKCU. If both appear in the registry, the value of the entry in HKLM executes first, then the value in HKCU executes.

  • The command-line parameters take precedence over the registry settings.


  • For more information about the AutoRun feature, at the command prompt, type CMD /?.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft