![]() |
|
|||||||
| Petri.co.il is happy to award Virtual the title of Most Valuable Member !!! |
| Register | Calendar |
Search |
Today's Posts | Mark Forums Read |
| Notices |
|
LOGONSERVER environment variablethis thread has 26 replies and has been viewed 8828 times
|
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||||||||
|
|||||||||
|
I want to know the effect of having incorrect LOGONSERVER environment variable in a windows XP or windows 2003 machine. When I say incorrect, it is pointing to other site DC instead of local domain controller. Also want to know at what all places this environment variable will be used in windows XP.
Please let me know if I need to provide any more details for better understanding. Thanks, Sitaram |
|
#2
|
||||||||||
|
||||||||||
|
I think you have it the wrong way around. The "Logonserver" environment variable is set when you log on to the name of the server which processed your logon.
__________________
Tom For my own and your protection, I do not provide support by private message under any circumstances. All such messages will be deleted and ignored. Anything you say will be misquoted and used against you |
|
#3
|
|||||||||
|
|||||||||
|
I understood that, Stonelaughter. I have a requirement where I have to switch hole active directory infrastructure to Disaster Recover site, which means that, I will be shutting down all DC's of current site and making DR servers online. During this process, all desktops will be running and the LOGONSERVER environment variable will be set to local DC which I had to shutdown. After switching to DR site, if the client still tries for local DC, then it will be a problem.
So, I just want to understand, what all processes that will make use of this variable. If it is not a problem, then I want to change the LOGONSERVER to DR site DC manually. Thanks, Sitaram |
|
#4
|
||||||||||
|
||||||||||
|
Switching to DCs at a different site is something you'd do out of hours isn't it? When your users aren't logged on.
__________________
Gareth Howells BSc (Hons) Any advice is given in good faith and without warranty. Please give reputation points if somebody has helped you. "For by now I could have stretched out my hand and struck you and your people with a plague that would have wiped you off the Earth." (Exodus 9:15) - I could kill you with my thumb. "Everything that lives and moves will be food for you." (Genesis 9:3) - For every animal you don't eat, I'm going to eat three. |
|
#5
|
|||||||||
|
|||||||||
|
Incase of disaster, we need to do it immediately irrespective of time.
|
|
#6
|
||||||||||
|
||||||||||
|
True. In that case, you would just get users to reboot their machines if they experience problems.
__________________
Gareth Howells BSc (Hons) Any advice is given in good faith and without warranty. Please give reputation points if somebody has helped you. "For by now I could have stretched out my hand and struck you and your people with a plague that would have wiped you off the Earth." (Exodus 9:15) - I could kill you with my thumb. "Everything that lives and moves will be food for you." (Genesis 9:3) - For every animal you don't eat, I'm going to eat three. |
|
#7
|
||||||||||
|
||||||||||
|
Changing "Logonserver" environment variable would achieve nothing. Like GF said, when you have to do this for a disaster, have the users reboot. They will log on to whichever DC is available, and logonserver will be set correctly.
Changing "logonserver" manually would address I estimate about 1% of the problems you would experience when the servers went down. Rebooting would address all of them.
__________________
Tom For my own and your protection, I do not provide support by private message under any circumstances. All such messages will be deleted and ignored. Anything you say will be misquoted and used against you |
|
#8
|
||||||||
|
||||||||
|
Having the DRP backup the primary site without getting client machines to reboot is a legitimate request.
As far as I know, Windows operating system does not use the LOGONSERVER environment variable. It is calculated upon logon and is primarily used by legacy applications, scripts, batch scripts and other application that does not use API calls such as dsGetDCName to retrieve the DC. When you actually take the primary site offline (and switch to the DRP site), do you experience any problems that you think might be related to the LOGONSERVER environment variable?
__________________
Smart-X |
|
#9
|
||||||||||
|
||||||||||
|
Quote:
In my experience, when the DC which the users authenticated to goes down, so does their ability to do anything. When the DNS server they were talking to goes down, so does their ability to do anything. When the file server they were using goes down (for roaming profiles, MyDocs and shared data) so does their ability to do anything. Reconfiguring their environment at the back end to give them new DNS servers, a new DC and a DR File server and then asking them to reboot seems to me to be a perfectly reasonable DR plan and would have them up and running reasonably quickly.
__________________
Tom For my own and your protection, I do not provide support by private message under any circumstances. All such messages will be deleted and ignored. Anything you say will be misquoted and used against you |
|
#10
|
||||||||
|
||||||||
|
It depends on the DR site scenario and file system distribution between the two sites.
To my knowledge, Windows 2000 will get over a non-reachable Domain Controller without having to reboot (Even if this is the DC used for authentication at logon) Previous operating system will require reboot. Regarding DNS, you should configure at least two DNS servers - one (or two) in the primary site and another one (or two) in the DR site. Regarding file system (Shared data, roaming profiles, My Documents, etc.), it depends which method of file system distribution you are using. Basically, there are two major alternatives: 1. A cluster of two or more nodes which uses a storage system that replicates between the two sites. 2. Two separate file servers which replicate the information. If you use the first method - than your clients probably access the file system using the cluster's logical name, so nothing should be changed when the primary site fails. If you use the second method - you should configure your clients to use the file system through DFS links only. This way, even if one of the file servers fail, you will still be able to use the file system since client requests will be directed to the available server. (There will be a pause when client are accessing the FS right after the server they where using failed). BTW, DFS is also smart enough to direct clients to their nearest file server according to their site.
__________________
Smart-X |
![]() |
|
||||||
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Differences between installing a software in local environment and domain environment | hamed89156 | Windows Server 2000 / 2003 | 6 | 18th December 2008 12:25 |
| RSM script sometimes not setting a variable | JeremyW | General Scripting | 8 | 24th November 2008 14:31 |
| Creating table name from a variable | bertv | General Scripting | 2 | 29th October 2008 11:19 |
| Date Variable for yyyymmdd | Michael19ave | DOS Command Shell | 4 | 7th November 2007 20:19 |
| Get user's OU and set it as a system variable | arisap | General Scripting | 2 | 1st September 2005 16:36 |