Discussion Locked

user-defined variables in logon script

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I need some environment variables set when a user login to a domain. These variables are used on the client size, both by NT client and some scripts. Some of the environment vars include the port number, the server's name.

I wonder if I can use the command "set" to set these environment variables on the logon script. For instance, in my login.bat file, I put "set portNumber=5001" to set it. The logon script is located on the server.

Or how can I set these environment variables whena user logs in?

Thanks.

3 replies

by joncr

The problem with set in a login script is it only exists in that dos session. When the login script finishes the settings are lost. Use the utils on the 2000 Resource Kit that can be run from a command line as a set. They do work for NT in this case.

This discussion is closed to new replies.