The information in this article applies to:
SYMPTOMSWhen you try to use a system environment variable in Windows Script Host and you are not an administrator for the computer, you may receive an 'access denied' error message. CAUSEThis issue can occur if the system environment variables are not defined correctly. RESOLUTION
To resolve this issue, define the system environment variable using the Process environment. For an example about how to use the Process environment variable, view the following Visual Basic Script samples.
NOTE: Notice that since there is no type specified after Environment that it will default to the "System" type.
This script works when either an administrator or non-administrator runs it. NOTE: Notice that the type "Process" is specified after Environment.
Additional query words:
Keywords : kbenv kbtool |
Last Reviewed: June 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |