JSI Tip 2373. Windows 2000 CMD AutoRun.

Jerold Schulman

May 11, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today

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

HKEY_Current_UserSOFTWAREMicrosoftCommand 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_MACHINESOFTWAREMicrosoftCommand 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.

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like