Gad SAADIA
asked on
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
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
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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.
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.
ASKER
thank you
%logonserver%=desiredDC