Net use won't map drives using logon script

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

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
 
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.
 

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!
 
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.
 

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
 
Joined
Jul 29, 2001
Messages
21,334
Also, are you running these scripts via Group Policy or just by each individual user account?
 
Joined
Jul 29, 2001
Messages
21,334
Did the mapping failure change when you moved the order around?
 

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:
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

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 807,865 other people just like you!

Latest posts

Staff online

Top