Prevent parsing AUTOEXEC.BAT for Environment Variables at Logon.
This tweak prevents Windows to search the "Autoexec.bat" in the current user environment.
Level: Recommended For Experts Only
Description:
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. When editing the registry it is highly recommended to run a quick scan for optimization, you can test your system now for free.
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. When editing the registry it is highly recommended to run a quick scan for optimization, you can test your system now for free.
Screenshots

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

Next, go to <b> [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\] </b> ,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.
Registry Entries
- back to top- Path: [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\]
- Location: Local Machine
- Value Name: ParseAutoexec
- Data Type: REG_SZ (String Value)
- Enabled Value: 0
- Disabled Value: 1
- Action Type: Modified
Tweak Library Terms
- back to top- Application Paths
- Authentication
- Auto Play
- Browser
- Console
- Control Panel
- CPU
- Desktop
- Display
- Error Reporting
- Explorer
- File System
- Files and Folders
- Firewall
- Fonts and Icons
- General Info
- Group Policies
- Hardware
- Input/Output Devices
- Installations
- Internet Explorer
- Memory Settings
- Messenger
- Microsoft Office
- Networks Cards
- Network Internet Connections
- Other Programs
- Outlook and Outlook Express
- Performance Settings
- Product Updates
- Scheduler
- Search
- Security
- Services
- Sound and Video Controllers
- Start Menu
- Startup and Shutdown
- Storage Devices
- System
- System Restore
- System Settings
- Taskbar
- User Interface
- Windows Applications
- Windows Firewall
- Windows Media Player
- Winzip
