NT Batch file doesn't run

Discussion in 'Windows Networking' started by Carl Gross, Oct 3, 2003.

  1. Carl Gross

    Carl Gross Guest

    I have a W98 workstation on an NT 4.0 network. When the
    W98 workstation logs on, none of the network drives
    (especially the U(ser) drive) show up. There are no
    errors, but no mapped network drives appear either.

    We are using TCP/IP as our protocol.

    Any ideas?
     
    Carl Gross, Oct 3, 2003
    #1
    1. Advertisements

  2. Let's have a look at your netlogon batch file!
     
    Pegasus \(MVP\), Oct 4, 2003
    #2
    1. Advertisements

  3. Carl Gross

    Carl Gross Guest

    net use u: \\server02\home\Userxxx
    net use f: \\server01\sys
    net use g: \\server01\apps
    net use m: \\server01\SharedFiles
    net use n: \\server02\photos
    net use p: \\server01\SharedFiles
    net use s: \\server02\OtherShared
    net use j: \\server01\cd-rom
     
    Carl Gross, Oct 6, 2003
    #3
  4. Modify your batch file as below, then report what you see:

    @echo off
    if not "%SystemRoot%"=="" echo on
    net use u: \\server02\home\Userxxx
    net use f: \\server01\sys
    net use g: \\server01\apps
    net use m: \\server01\SharedFiles
    net use n: \\server02\photos
    net use p: \\server01\SharedFiles
    net use s: \\server02\OtherShared
    net use j: \\server01\cd-rom
    net use
    if not "%SystemRoot%"=="" pause

    Furthermore, please report this:
    - Can you map the drives manually, by executing
    the above commands, one at a time, from a Command
    Prompt?
    - What happens when you invoke this batch file manually
    from a Command Prompt:
    \\YourServer\netlogon\netlogon.bat
     
    Pegasus \(MVP\), Oct 6, 2003
    #4
  5. Carl Gross

    Carl Gross Guest

    I netered the following batch file, restarted the
    workstation and it did nothing. I therefore tried running
    the batch file from the Command Prompt and it worked
    except for the U drive, and that is a quirk of the SNAP
    Server on which the U drive is located (don't worry too
    much about this one).

    I was also able to map the drives manually except for the
    U drive, again.

    Hope this helps.
     
    Carl Gross, Oct 7, 2003
    #5
  6. There are a number of conditions that must be met in order
    for a batch file to be run at logon time:
    - Your Windows 98 PC must be set to log on to an
    NT domain.
    - You must specify the correct name of that domain
    - The logon account must be defined on the domain controller.
    - The name of the script file (e.g. netlogon.bat) must be stated
    in the account profile.
    - The file "netlogon.bat" must exist in the netlogon share of the
    primary domain controller.

    If you feel that this is too complex then you can always place
    netlogon.bat into the Startup folder of your Windows 98 PC.
     
    Pegasus \(MVP\), Oct 8, 2003
    #6
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.