Win98, Logon script & finding logon server 
Author Message
 Win98, Logon script & finding logon server

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



Thu, 17 Jul 2003 15:58:59 GMT  
 Win98, Logon script & finding logon server
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


Quote:
> 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



Tue, 22 Jul 2003 22:52:35 GMT  
 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



Thu, 24 Jul 2003 03:49:15 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. How can I get logon server name and IP address from logon script using wsh

2. Auto NT4 server logon with Logon to Novell server(4.11)

3. logon.exe script.vbs in profile (logon script)

4. VBS logon scripts and Win98

5. Applying logon scripts on mixed environment (W2K, NT4.0, Win98)

6. Problems with logon script with Win98

7. parse network env vars win98 logon script

8. Finding NT logon server name

9. Logon script & WINSET

10. Logon Scripts for W9x 2K & XP

11. adding a user DSN connection to MS SQL server 2000 using AD GPO logon scripts

12. WSH Server based logon scripts in XP?

 

 
Powered by phpBB® Forum Software