CompTIA Tech+ (FC0-U71)Applications and SoftwareMedium
A technician is installing a new application that requires specific environmental variables to be set for it to function correctly. The application needs to run for all users on the system and persist across reboots. Where should these environmental variables be configured on a Windows operating system?
- AIn the user's local 'Path' variable.
- BIn the System Environment Variables settings.
- CIn the application's configuration file.
- DIn the Windows Registry under HKEY_CURRENT_USER.
Show answer & explanationAnswer & explanation
Correct answer: B. In the System Environment Variables settings.
System Environment Variables are global to the operating system, apply to all users, and persist across reboots, making them the correct location for variables needed by an application for all users.
Why the other options are wrong
- A. The user's local 'Path' variable only affects that specific user and is primarily for executable search paths, not general application variables for all users.
- C. An application's configuration file might be overwritten during updates or might not be read by all processes, and it's not a standard OS-level configuration for environment variables.
- D. HKEY_CURRENT_USER in the Registry stores settings specific to the currently logged-in user, not system-wide variables for all users.
System Environment Variables
Global variables within an operating system that define the environment in which processes run, affecting all users and persisting across system reboots.
- Accessible via 'System Properties > Advanced > Environment Variables' in Windows.
- Used for paths, temporary directories, and other system-wide settings.
- Distinct from user-specific environment variables.
Memory trick: Think of variables as global or local settings for your computer's world.