Saturday, November 24, 2007

Essentials: Environmental Variables

As part of preventive maintenance, you want to review the computer's environmental variables.
How can you retrieve this information? (Select TWO.)

1. By running the set command from a command line prompt -Correct
2. >>Through System Tools in Computer Management - Wrong
3. >>Through the Advanced properties in the computer's System properties Correct
4. Through the View tab in Folder Options
5. By running the attrib command from a command line prompt

Explanation : You can view a computer's environmental variables through the Advanced properties in the computer's System properties or by running the set command from a command line prompt. You can launch the System properties from the Control Panel, select the Advanced tab, and then click Environmental Variables to view and modify environmental variable settings. The set command, when run without any other options, returns a list of environmental variables and their current values.

You cannot view a computer's environmental variables through System Tools in Computer Management. System Tools includes Event Viewer, Shared Folders, Local Users and Groups, Performance Logs and Alerts, and Device Manager. None of these allows you to view the environmental variables.

You cannot view environmental variable settings by running the attrib command. The attrib command lets you view and modify file and directory attributes. The attrib command lets you set or clear file and directory attributes. The supported attributes are:

+r/-r - Sets or clears the read-only attribute.
+a/-a - Sets or clears the archive attribute.
+s/-s - Sets or clears the system file attribute. +h/-h - Sets or clears the hidden file attribute.

You cannot view a computer's environmental variables through the View tab in Folder Options. The View tab lets you set advanced file options, such as viewing hidden and system files or setting the file sharing method used. None of the options deals with viewing environmental variables.
Objective:
Operating Systems