1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Net use won't map drives using logon script

Discussion in 'Windows XP' started by Tony414, Nov 29, 2011.

Thread Status:
Not open for further replies.
Advertisement
  1. Tony414

    Tony414 Thread Starter

    Joined:
    Nov 21, 2006
    Messages:
    163
    Hello,

    I have a weird issue going on with one XP machine. We have a 2003 domain and I use logon scripts for users. There is one mapped drive that doesn't connect when the user logs in. Once the user is logged in there is no problem running the script. The drive connects just fine. It just doesn't work when they log in. Here is what the script looks like. The other drives connect fine. Any help would be great.

    @ECHO OFF
    net use p: \\engnas\carol_payroll_files (THIS IS THE ONE THAT DOESN'T CONNECT AT LOGON)
    net use Y: \\engnas\shared_finance
    net use w: \\engnas\Forms
    net use Z: /HOME
    net time \\townhall /set /yes
     
  2. Rockn

    Rockn

    Joined:
    Jul 29, 2001
    Messages:
    21,334
    Is the drive already mapped prior to the script running? Try a Net use /delete * on the first line.
     
  3. Tony414

    Tony414 Thread Starter

    Joined:
    Nov 21, 2006
    Messages:
    163
    I've tried it both ways. No luck! I deleted the drive from windows explorer, logged off/on. No drive P: I also tried it with the drive still connected. What puzzles me is that once the user is logged in I can go to my netlogon share and just run the batch file and it works. But when the user logs in from scratch it doesn't work. Strange!
     
  4. Rockn

    Rockn

    Joined:
    Jul 29, 2001
    Messages:
    21,334
    It may just be the fact that the network connection is not available by the time the first line of the batch file is run. Try putting a couple of lines of delay in the script before the first mapping.

    Try moving around the order of the mappings in the batch file to see if the P drive maps further down in the script of if it is really that mapping causing the issue.
     
  5. Tony414

    Tony414 Thread Starter

    Joined:
    Nov 21, 2006
    Messages:
    163
    I'm one step ahead of you :) I didn't try and put a delay but I have moved it around in the order. I originally had it last then moved it to first. I'll try a delay and report back with the results. Most likely tomorrow morning. Thanks
     
  6. Rockn

    Rockn

    Joined:
    Jul 29, 2001
    Messages:
    21,334
    Also, are you running these scripts via Group Policy or just by each individual user account?
     
  7. Tony414

    Tony414 Thread Starter

    Joined:
    Nov 21, 2006
    Messages:
    163
    By each individual user account.
     
  8. Tony414

    Tony414 Thread Starter

    Joined:
    Nov 21, 2006
    Messages:
    163
    Just revisiting this. Any ideas would be great...

    Thanks
     
  9. Rockn

    Rockn

    Joined:
    Jul 29, 2001
    Messages:
    21,334
    Did the mapping failure change when you moved the order around?
     
  10. Tony414

    Tony414 Thread Starter

    Joined:
    Nov 21, 2006
    Messages:
    163
    The order didn't change anything. It still fails. The delay also didn't do anything. It's very puzzline becuase once the computer is logged in and running I have no issues in mapping the drive either by running the batch or using the map network drive feature. One other thing I tried was using the map network drive and checking off connect at logon. Guess what? It doesn't connect at logon :confused:
     
  11. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Similar Threads - won't drives using
  1. Mrsmooths
    Replies:
    20
    Views:
    844
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1028922

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice