Solved

How to define the LOGONSERVER variable

Posted on 2011-03-06
4
1,963 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
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 95

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

813 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now