Solved

How to define the LOGONSERVER variable

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

To effectively work with Diskpart on a Server Core, it is necessary to write some small batch script's, because you can't execute diskpart in a remote powershell session. To get startet, place the Diskpart batch script's into a share on your loca…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

744 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

11 Experts available now in Live!

Get 1:1 Help Now