Environment variable differs from actual value
Hi can anyone tell me why the variable USERNAME has the value "system" when I open the environment variables but when I use %Username% or enter set in a cmd window I get the right value? Is "system" the predefined value before user login? Are there any conflicts possible between the different values? Thanks for the info Regards
February 18th, 2010 11:24pm

Hi,Be default, the value should be user's name. Are you in the domain environment? I do and the USERNAME has the value "system" too.After reading https://fogbugz.bitvise.com/default.asp?WinSSHD.1.12003.6, I think system can change to the proper value automatically according to different occasions.Also this security settings may help enable third party software place temp folder to the proper location. Many 3rd party companies do not understand the difference between the roaming part of the profile and the non-roaming temporary section, and so will store their temporary files in the roaming portion, adding megabytes of unnecessary data to the profile and increasing the roaming login and logout times.For the time being, there might a service or app running in the context of the SYSTEM account that's making a proxy call.
Free Windows Admin Tool Kit Click here and download it now
February 19th, 2010 1:12pm

Hello,Are you looking at Control Panel, System Applet - environment options?The dialog box has two sectionsOne for user variables and one for system variables, depending on which context you are running.Some processes run in a user context and some run as a system context.When the process runs in the system context, the variable would point to the be system.Thanks, Darrell Gorter This posting is provided "AS IS" with no warranties, and confers no rights
February 20th, 2010 12:14am

Hello, Are you looking at Control Panel, System Applet - environment options? The dialog box has two sections One for user variables and one for system variables, depending on which context you are running. Some processes run in a user context and some run as a system context. When the process runs in the system context, the variable would point to the be system. Thanks, Darrell Gorter This posting is provided "AS IS" with no warranties, and confers no rights This exactly what I meant. Thanks for your answer. I do have one more question: What's the "system context"? Is this the kernel mode of Windows?
Free Windows Admin Tool Kit Click here and download it now
February 20th, 2010 8:47pm

Hello tkquestion,this is when the service runs under the system account.Certain tasks and services run under the system account rather than an user account.So when are running background tasks which may or may not be at kernel level of execution.things like installing updates, search indexing, anti-virus ( in many cases), print spooling, networkingThese usually need higher priorities or access to files and registry settings at security level that is not available in a user context. this is also processes that happen prior to logon or when nobody is logged onto the machine that still take place.You can see some of these by starting task manager.Open the processes tab.check the box "show processes from all users"Look under the user name column.this will show what account the processes are running underThanks, Darrell Gorter This posting is provided "AS IS" with no warranties, and confers no rights
February 20th, 2010 10:01pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics