mapping drives with batch files...
Hey all. I'm having a helluva problem at work I was hoping someone could help me with. I've searched through threads for hours, but haven't found a solution that fits my exact problem. I work fora small company that is running SBS 2003. We don't use it much beyond basic file storage and to host our exchange server. We are all on Vista, but half of us are on Home Premium--so we are not able to log into the domain on startup. It hasn't been much of an issue until recently. The Home Premium users only need the server for the mapped drives. I had written a simple batch file to map the drives and placed it in the startup folder--like so many threads I've read have instructed. For the longest time this was working fine. However, now, some are not working at all and others seem to be working intermittingly. We haven't made any changes to the network and no machines have changed in any way. The error we are getting is that the drives cannot be mapped because they are already in use by the user and the user cannot have multiple connections. If I open explorer there aren't any mapped drives there, so I have no clue what is happening; the few that had them I disconnected them and rebooted. The closest thing I could find searching was that it was maybe a time/lag issue. I was hoping someone here might have had the same, or a similar, problem and could help me out. Thanks in advance.
November 27th, 2009 6:43am

Use /persistent:no like this net use t: \\192.168.90.25\share /persistent:noI use the above line for NAS box mapping NAS has user / password accounts same as PC's login info so no need to pass user / password.You could also add the line at the start of the batch to clear the connection BEFORE mapping the connection.
Free Windows Admin Tool Kit Click here and download it now
November 27th, 2009 3:17pm

Thanks bubbapcguy. I appreciate it. I will try it tomorrow when I go in to work. Since the PC's I'm having the trouble with are the ones with Vista Home Premium, can any of the trouble be related to my using the domain/user and password in the net use batch file? I have the local machine user and password identical to the domain user and password. I didn't know if the net use would try the local user and password first or if I needed to add it. I thought maybe that could be causing some of the lag or problems?
November 27th, 2009 7:01pm

The Windows 7 Home Premium users will use their local user accounts to try to access the share. For example, a domain account and a local account share a same user name. However, the full name should be domain\user and computer\user. They are different. You need to use the following command. net use driveletter: \\server\share /user:domain\user password If the connection fails, I suggest you follow the steps below to change the NTLM authentication level. 1. Run gpedit.2. Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa 3. Create a DWORD value under Lsa LmCompatibilityLevel 4. Set the value to 1 5. RestartArthur Xie - MSFT
Free Windows Admin Tool Kit Click here and download it now
December 2nd, 2009 1:31pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics