Solved

How to define the LOGONSERVER variable

Posted on 2011-03-06
4
2,092 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:gadsad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 70

Accepted Solution

by:
KCTS earned 500 total points
ID: 35048329
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
 
LVL 1

Expert Comment

by:vinitogupta
ID: 35048933
Start -- Run -- CMD
%logonserver%=desiredDC
0
 
LVL 96

Expert Comment

by:Lee W, MVP
ID: 35052936
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
 

Author Closing Comment

by:gadsad
ID: 35110418
thank you
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question