How to define the LOGONSERVER variable

3 DC en my network , 2 are GC

I do not know how to define the LOGONSERVER varialbe in the SET command
Sometimes it points to a DC, sometimes it points to the second DC
Is it possible to fix it ?

Thank you
gadsadAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
KCTSConnect With a Mentor Commented:
The variable simply records which server validated the logon - you can't use SET to force the machine to use a paricular server - AD is designed to allow logon by any valid DC
0
 
vinitoguptaCommented:
Start -- Run -- CMD
%logonserver%=desiredDC
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
KCTS is correct - it's defined at logon.

vinitogupta's comment is incorrect at best.

The syntax for setting an environment variable requires you to use the SET or SETX command.  Even then, SET will just do it for the immediate shell that's running and will not last.  Using SETX (resource kit installation may be required) would, at best just be lying to you.

Perhaps you don't understand the purpose of the environment variables... could you explain in further detail WHY this matters to you?  Then, perhaps, we could provide a more appropriate solution for you.
0
 
gadsadAuthor Commented:
thank you
0
All Courses

From novice to tech pro — start learning today.