Link to home
Create AccountLog in
Avatar of Gad SAADIA
Gad SAADIAFlag for France

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
ASKER CERTIFIED SOLUTION
Avatar of Brian Pierce
Brian Pierce
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Start -- Run -- CMD
%logonserver%=desiredDC
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.
Avatar of Gad SAADIA

ASKER

thank you