A. When you log on, the logon process creates several volatile environment variables. These variables remove after the logon process completes, as the user’s environment unloads.
One of these variables is %logonserver%, which shows the domain controller (DC) that validated the user logon. This variable is useful in logon scripts and for other tasks after logon. In Windows NT 4.0, the %logonserver% variable removes after logon. To view this variable, use the following command.
echo %logonserver%
\\TITANIC
If you want to use the %logonserver% variable after logon, you can use the Microsoft Windows NT Resource Kit’s Setx utility to manually set the variable into another environment variable. Enter the following command.
setx MyLogonServer %logonserver%
End of Article


on Windows NT Domain and executing the apropriate
batch (at netlogon). Why I can't use variables like
%LOGONSERVER%, %HOSTNAME%, %USERNAME%????
Any Help Will Be Usefull!!!
Thanks
Rafael Pivato December 05, 2000