Solved

Unable to map network drives on Vista

Posted on 2008-10-02
12
937 Views
Last Modified: 2012-05-05
I have a Server 2003 domain with all XP workstations.  Network drives are mapped via login scripts (.bat files).  I have a compination of direct server based shares and replicated DFS network shares that.
My scripts work fine with the XP machines but not any of the new Vista machines, unless the user is part of the domain administrator group.  I have disabled UAC on the Vista machine.
When the login script runs, the direct server network shares get mapped but the DFS shares do not.  Here is an example of my script:
=================================================================================
@echo off

net use f: /d
net use i: /d
net use s: /d
net use t: /d
net use w: /d
net use p: /d
net use u: /d
net use f: \\houfs01\data
net use i: \\investlinc\dfs\InvestlincData\Corporate
net use s: \\investlinc\dfs\InvestlincData\ILS
net use t: \\investlinc\dfs\InvestlincData\IEG
net use w: "\\investlinc\dfs\InvestlincData\Wealth Services"
net use p: "\\investlinc\dfs\InvestlincData\Private Capital"
net use U: \\investlinc\dfs\InvestlincData\ICM
=================================================================================
In the example above, if a user logs in (not a member of the administrator group), this script runs.  He will get the f: \\houfs01\data drive, but none of the DFS drives.  It has something to do with rights in Vista since when I log into a vista machine, all of my drives map properly, but I am a domain admin.  Normal users DFS drives do not map.
Any suggestions would be appreciated
0
Comment
Question by:markcondiff
  • 5
  • 4
  • 3
12 Comments
 
LVL 53

Expert Comment

by:McKnife
Comment Utility
Log on as standard user and execute net use i: \\investlinc\dfs\InvestlincData\Corporate visible at the command prompt and return with the error message.
0
 
LVL 11

Expert Comment

by:Serge Fournier
Comment Utility
use a vbs logon script

there is a lot of thoses here on this forum

search for my name, i already posted a full logon script, long and short versions for vista
0
 
LVL 11

Expert Comment

by:Serge Fournier
Comment Utility
0
 

Author Comment

by:markcondiff
Comment Utility
Wildboy85, I may take a look at the VBS scripts but for now they are too complicated (if they are the only solution, then I will go that route).  

Per McKnife's request, I entered the "net use" command from the command prompt and got the following error: "System error 67 has occurred.  The network name cannot be found."
0
 
LVL 11

Expert Comment

by:Serge Fournier
Comment Utility
try a little harder

in my post i extract the main parts, and explain a lot ;)

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/2003_Server/Q_23486974.html

i do not think net use support DFS drive mapping
(some windows application does not even support it!!!)
0
 
LVL 53

Accepted Solution

by:
McKnife earned 500 total points
Comment Utility
Of course mapping DFS shares (using net use for example) is supported and we are doing it without problems. Server: 2003 R2, Clients: Vista SP1. Mark, there are several ways to map a drive. What happens if you use the windows explorer menu to map it? You could also map drives using a GPO (with group policy preferences CSE installedon the clients), see
Group Policy Preferences FAQ
http://technet2.microsoft.com/windowsserver/en/technologies/featured/gp/preferencesfaq.mspx
An Overview of Group Policy Preferences
http://www.microsoft.com/downloads/details.aspx?FamilyID=42e30e3f-6f01-4610-9d6e-f6e0fb7a0790&DisplayLang=en

But before reading just test manual mapping. By the way, are you on SP1? Is the server on SP2? Maybe just a bug long solved by an SP.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:markcondiff
Comment Utility
The servers are Server 2003 R2 SP2.  The Vista desktop is Vista Business SP1.  
Ok, this is getting hard to troubleshoot because it is not consistent.  I had logged in as a regular domain user and everything mapped the first time.  Then I restart and it does not map with the logon script the second time.  I then removed the user profile (from users in system properties and deleted the user folder under the Users folder on C:.  The next time I logged in as that user, it said it could not load the profile (I figured it would recreate it as it does in XP).  I continued to get this error.  I then had to go in and delete the user SID from the registry and the next time I logged in as that user, it recreated the profile.
The first time I logged in again with the new profile, it mapped the network drive fine.  The second time, it didn't, only the non-DFS drives.
I can map the DFS drives manually.  As a matter of fact, I can go to \\Server\Netlogon and double click the exact logon script and it runs fine and maps all drives, including the DFS drives.
One more thing, when I login (when the script does NOT map the drives), the User Home folder/drive specified in the domain user profile does not map either (it is also a DFS share).
0
 

Author Comment

by:markcondiff
Comment Utility
I tried the same thing with a new profile.  The first 3 times I logged in, everything mapped fine.  The 4th - 5th times, it didn't.  Very inconsistent.  I log in, then restart the computer each time.
By the way, all windows updates are current on the vista machine.
The 6th time, I tried just logging off and then logging back on rather than restarting and this time it mapped the drives.
I then restarted and it did not map the drives.  Manually running the logon script mapped the drives.
0
 
LVL 53

Expert Comment

by:McKnife
Comment Utility
Well, sorry for you. Try mapping via gpp.
0
 

Author Comment

by:markcondiff
Comment Utility
I will keep working and post anything I find out. Thanks for your help.
0
 
LVL 11

Expert Comment

by:Serge Fournier
Comment Utility
do you have the policy that tell windows to wait for the network to start before loggin in?
0
 

Author Comment

by:markcondiff
Comment Utility
Yes, I actually used a sleep command in the script which seemed to work.  
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

In Africa (and potentially where you live…), reliability of ISPs is questionable.  With the increased reliance on e-mail as one of the primary forms of communication, the costs to business are significant based on interuption of ISP Connectivity.  T…
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now