Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Changes that you make to environment variables do not affect services that run under the Local System account until you restart Windows


View products that this article applies to.

Symptoms

If you update environment variables or add new environment variables, you must restart the computer before the changes that you make affect services that run under the Local System account.

↑ Back to the top


Cause

This behavior occurs because services that run under the Local System account inherit their environment from the Services.exe process. The Services.exe process receives the environment settings for the Local System account when Windows starts. Because the Services.exe process does not use Windows Messaging, when it receives messages that indicate that a value has changed after Windows starts, the Services.exe process does not update its environment settings. You cannot force a service that is running to acknowledge a dynamic change to the environment of the Local System account.

↑ Back to the top


More information

For more information about environment variables, click the following article number to view the article in the Microsoft Knowledge Base:
311843 How to create system variables in Windows 2000

↑ Back to the top


Keywords: KB821761, kbprb, kbwinservsetup

↑ Back to the top

Article Info
Article ID : 821761
Revision : 3
Created on : 6/25/2007
Published on : 6/25/2007
Exists online : False
Views : 360