Skip navigation

JSI Tip 2373. Windows 2000 CMD AutoRun.

When you open a CMD prompt in Windows 2000, CMD.EXE checks to see if AutoRun is configured at:

HKEY_Current_User\SOFTWARE\Microsoft\Command Processor

If this String (REG_SZ) variable contains commands or the full path to a batch file, it is run. If no AutoRun value name exists at the above key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor is checked.

If AutoRun is configured, you can open a CMD prompt without invoking it, by running CMD /D.

You can define a machine standard script and different ones for each user.

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.