Systweak Tweak Library
Tweaks are tricks & hacks for optimizing your system and helps in enhancing & securing your Operating System
 
 
Skip Navigation LinksHome > System > Startup & Shutdown > Prevent parsing AUTOEXECBAT for Environment Variables at Logon
ystem
Prevent parsing AUTOEXEC.BAT for Environment Variables at Logon.

This tweak prevents Windows to search the "Autoexec.bat" in the current user environment.

Tweak for : Windows XP, Windows 2003, Windows 2000, Windows Vista
Environment variables define the system and user environment information, and they contain information such as a drive, path, or filename. Environment variables provide information that Windows XP Professional uses to control various applications. For example, the TEMP environment variable specifies where an application places its temporary files.

System Environment Variables: System environment variables apply to the entire system. Consequently, these variables affect all system users. During installation, Setup configures the default system environment variables, including the path to the Windows XP Professional files. Only an administrator can add, modify, or remove a system environment variable.

User Environment Variables: The user environment variables differ for each user of a particular computer. The user environment variables include any user-defined settings (such as a desktop pattern) and any variables defined by applications (such as the path to the location of the application files). Users can add, modify, or remove their user environment variables in the System Properties dialog box.

Windows XP Professional sets environment variables in the following order: By default, Windows XP Professional searches the AUTOEXEC.BAT file, if it exists, and sets any environment variables.

Next the system environment variables are set. If any system environment variables conflict with environment variables set from the search of the AUTOEXEC.BAT file, the system environment variables override them.

Finally, the user environment variables are set. If any user environment variables conflict with environment variables set from the search of the AUTOEXEC.BAT file or from the system environment variables, the user environment variables override them.

For example, if you add the line SET TMP=C: \TMP in AUTOEXEC.BAT, and a TMP=X: \TEMP user variable is set, the user environment variable setting (X:\TEMP) overrides the prior setting C:\TMP.

Preventing Windows from searching the AUTOEXEC.BAT file is by editing the registry. For this, go to "Start->Run" and enter "regedit" and search the key listed below. You can create one string value "ParseAutoexec", if this value does not exist. Now you can set this value to disable reading the environment variables from "Autoexec.bat".

Click “OK” and close the registry editor.
Restart the system or logoff to see the changes taking effect.

Prevent parsing AUTOEXEC.BAT for Environment Variables at Logon.reg

The '.reg' file will prevent parsing AUTOEXEC.BAT for Environment Variables at Logon.

Allow parsing AUTOEXEC.BAT for Environment Variables at Logon(default).reg

The '.reg' file will allow parsing AUTOEXEC.BAT for Environment Variables at Logon.

Apply registry settings according below given steps of screenshots with related changes.

AutoEXEC.BAT is prevented to parsed during startup.

AUTOEXEC.BAT is parsed during startup and required environment variables paths are set.

First, click the 'Start' button, and select 'Run'. In the resulting dialog box, type 'regedit'.

Next, go to [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\] ,right click on the String value 'ParseAutoexec' and select 'Modify'.

Finally set the value data as '0' and click 'OK' prevent parsing AUTOEXEC.BAT for Environment Variables at Logon.

Enable users to automatically logon to Windows (For 98/ME).

Category : System > Startup & Shutdown

This tweak forces the machine to auto logon and to ignore any bypass attempts.

Manage the startup programs list.

Category : System > Startup & Shutdown

This setting can help you to manage the existing programs in your startup list.

Prevent Windows Messenger to auto-run.

Category : System > Startup & Shutdown

This tweak can disable auto-run function of Windows Messenger, which starts messenger with Windows.

Display a custom logon message before logon (For Win 98/Me).

Category : System > Startup & Shutdown

This setting enables you to specify a warning message about illegal access to a computer that will be shown before the user types his data to the logon screen.

Specify the default username for the Windows login (For Win 98/Me).

Category : System > Startup & Shutdown

You can specify a default username that should be displayed with the next Windows login.

 
 
Remove spyware infections automatically / manually | Check for file authenticity
 
Systweak Inc.
© Systweak Inc., 1999-2017 All rights reserved.
Microsoft Gold Certified Partner