D
Dennis
Environ$("Name") grabs the User's Logon Name. Is this
the "NAME" environment variable and how do you change this
environment variable in Windows 2000?
I have tried going to the Control Panel --> System -->
Advanced Tab --> Click on Environment Variables button -->
Click on the "New" button in either the User or System
section --> Specifying "NAME" in the Variable Name field
and specifying another UserID other than my own as the
Variable Value. This does not work to change what the
Environ$("Name") function returns. I have tried setting
NAME, NWUSERNAME, DefaultUserName, Logon User Name,
DefaultNetwareUserName, USERNAME, Username (in case it is
case-sensitive), WINLOGONID, LOGNAME, USER, and LOGIN.
Environ$("Name") still shows my User ID.
I have also used Set from a command prompt, but this only
sets the value for that process and doesn't change the
parent process. I have tried using SetX, but I believe
this just adds the "NAME" value similar to the method
described above (Control Panel --> System, etc.).
I wanted to show that using Environ$ for security was not
the way to go, but rather User-Level Security should be
implemented. By showing how easy it is to change this
environment variable, the security implication would be
more apparent to those that don't realize the volatility
of this information. It's turning out to be a bit more
difficult to locate than I thought at first. I appreciate
the help with this one !!!
the "NAME" environment variable and how do you change this
environment variable in Windows 2000?
I have tried going to the Control Panel --> System -->
Advanced Tab --> Click on Environment Variables button -->
Click on the "New" button in either the User or System
section --> Specifying "NAME" in the Variable Name field
and specifying another UserID other than my own as the
Variable Value. This does not work to change what the
Environ$("Name") function returns. I have tried setting
NAME, NWUSERNAME, DefaultUserName, Logon User Name,
DefaultNetwareUserName, USERNAME, Username (in case it is
case-sensitive), WINLOGONID, LOGNAME, USER, and LOGIN.
Environ$("Name") still shows my User ID.
I have also used Set from a command prompt, but this only
sets the value for that process and doesn't change the
parent process. I have tried using SetX, but I believe
this just adds the "NAME" value similar to the method
described above (Control Panel --> System, etc.).
I wanted to show that using Environ$ for security was not
the way to go, but rather User-Level Security should be
implemented. By showing how easy it is to change this
environment variable, the security implication would be
more apparent to those that don't realize the volatility
of this information. It's turning out to be a bit more
difficult to locate than I thought at first. I appreciate
the help with this one !!!