
Win98, Logon script & finding logon server
Hi All,
a simply addendum (we use something like Mark posted here): I can happen,
that, for some local reasons, a remote BDC send his answer faster, than the
local BDC. Take that into account!! I had a logonprotocol running for some
weeks and this behavior is reproducable.....
Best regards,
Manfred Braun
(Private)
Lange Roetterstrasse 7
D68167 Mannheim
Germany
(Remove the anti-spam-underscore to mail me!)
Quote:
> The following is a method for 9x machines that i use.
> MsgFileLoc = getLogServer & "\netlogon\msgfile.txt
> 'function that returns the logonserver that client has logged into
> Function getLogServer()
> Dim WshShell, WshProcessEnvironment, FileSysObj, EnvOpSystem, DriveObj
> Set WshShell = WScript.CreateObject("WScript.Shell")
> Set WshProcessEnvironment = WshShell.Environment("Process")
> Set FileSysObj = wscript.CreateObject("Scripting.FileSystemObject")
> EnvOpSystem = WshProcessEnvironment("OS")
> If EnvOpSystem <> "Windows_NT" Then
> Set DriveObj = FileSysObj.GetDrive("Z:")
> EnvLogonServer = Mid(DriveObj.ShareName,3,len(DriveObj.ShareName)-11)
> Set DriveObj = Nothing
> getLogServer = "\\" & EnvLogonServer
> Else
> getLogServer = WshProcessEnvironment("LogonServer")
> End If
> End Function
> > Hi,
> > I'm just need some help with working out the best method to
determine
> > the logon server under windows 98.
> > What I want to do is as follows.
> > I have win98 laptops travelling from office to office around Aust.
Offices
> > connected via a WAN in a Single NT4 domain. Each office has a BDC.
> > When a travelling laptop user comes into an office, plugs into the
network
> > and logs in, I (like most people) want to setup some network drives. I
> know
> > how to setup specific network drives using WSH but would like to map J:
> > drive to the local server for applications. Each office has a server
with
> > specific applications on a specific share Eg APPS. I was thinking of
using
> > the logon server to work out which office they are in and then mapping a
> > drive to the local server APPS share.
> > If this is not the best method for connecting to a local server\share,
> could
> > point me in the right direction please.
> > thanks in advanced
> > Dave Jones