Author Topic: Understand and Configure System Environment Variables  (Read 3757 times)

0 Members and 1 Guest are viewing this topic.

Understand and Configure System Environment Variables
« on: July 03, 2010, 03:20:57 PM »

Offline Nick

  • Administrator
  • Platinum Member
  • *
  • Posts: 46028
  • Karma: +1000/-0
  • Gender: Male
  • NickCS
    • http://www.facebook.com/nickcomputerservices
    • http://www.twitter.com/nickcomputer
    • Computer Chiangmai

Understand and Configure System Environment Variables

Environment variables let you specify path information that is dynamically assigned. Here's a look at the most common environment variables.


System environment variables are handy when you’re setting up the user’s environment, especially when you work with logon scripts. You use environment variables to specify path information that can be dynamically assigned. Here are the most common environment variables:

%SystemRoot% The base directory for the operating system, such as C:\Windows. Use it with the Profile tab of the user’s Properties dialog box and logon scripts.

%UserName% The user account name, such as wrstanek. Use it with the Profile tab of the user’s Properties dialog box and logon scripts.

%HomeDrive% The drive letter of the user’s home directory followed by a colon character, such as C:. Use it with logon scripts.

%HomePath% The full path to the user’s home directory on the respective home drive, such as \Users\Mkg\Georgej. Use it with logon scripts.

%Processor_Architecture% The processor architecture of the user’s computer, such as x86. Use it with logon scripts.

By using the %UserName% variable, for example, you allow the system to determine the full path information on a user-by-user basis. If you use this technique, you can use the same path information for multiple users, and all the users will have unique settings.

Note: When using the Profile tab, environment variables can lessen the information you need to type, especially when you create an account based on another account.

From the Microsoft Press book Windows Server 2008 Administrator’s Pocket Consultant, Second Edition by William R. Stanek.

credit: technet.microsoft.com


 
Share this topic...
In a forum
(BBCode)
In a site/blog
(HTML)


Related Topics

  Subject / Started by Replies Last post
0 Replies
5160 Views
Last post February 17, 2009, 05:32:34 PM
by Webmaster
0 Replies
3798 Views
Last post February 17, 2009, 05:51:38 PM
by Webmaster
0 Replies
6364 Views
Last post May 30, 2009, 10:03:15 PM
by IT
0 Replies
5339 Views
Last post June 11, 2010, 04:51:16 PM
by Nick
0 Replies
3340 Views
Last post June 11, 2010, 05:06:58 PM
by Nick
0 Replies
2540 Views
Last post June 11, 2010, 05:15:00 PM
by Nick
0 Replies
2334 Views
Last post June 11, 2010, 07:12:31 PM
by Nick
0 Replies
2442 Views
Last post June 16, 2010, 01:49:08 PM
by Nick
0 Replies
3627 Views
Last post June 16, 2010, 02:32:44 PM
by Nick
0 Replies
21134 Views
Last post August 20, 2013, 02:10:55 AM
by Nick