Solved

Logon script command (net use x: /home) fails with system error 53

Posted on 2009-07-09
9
1,004 Views
Last Modified: 2013-12-04
I'm hoping someone can help shed some light on a problem I'm having. Here's the situation:

We've got a W2K3 network with two DCs and about 25 or so users running XP Professional clients. For each user's profile, the Home folder is specified as drive H: via the Connect option and points to \\server\user.name, and each user's logon script contains the net use H: /home /y command.  Also, each DC has a Users folder which in turn contains home folders for some of the users. (The servers used to handle seperate divisions (different OUs) in different locations prior to a company consolidation.)

Here's the problem. When users with home folders on DC01 login to the domain, they get their H: drive. But when users with home folders on DC02 login, they don't get it-- instead, while other drive mappings to DC02 work OK, the net use /home command fails with Error 53, network path not found. For the users with home folders on DC02, I can manually map their home folder via net use \\server\user.name as well as in Windows Explorer.

Anyone have any ideas as to why the \home command works for one group and not the other? Could this have something to do with OU settings or how permissions are configured on the respective Users folders?

Any insights would be greatly appreciated!

Regards,

Joe


 

0
Comment
Question by:Joe2009
  • 2
  • 2
  • 2
  • +2
9 Comments
 
LVL 63

Expert Comment

by:SysExpert
ID: 24817770
Possibly.

also, I would make sure you do a delete of the H: drive before mapping it in the login script.

I hope this helps !
0
 
LVL 4

Expert Comment

by:samsixty
ID: 24821108
Odd that it works for one group but not the other yet you are doing the same thing.

Personally I use group policy to redirect users home folders, and a logon vbscript to to map drives depending on which group the user is in. (see code snippet for example)

These links may be helpful:

Folder redirection best practices, http://technet.microsoft.com/en-us/library/cc739647%28WS.10%29.aspx

Implementing folder redirection using group policy, http://www.tech-faq.com/implementing-folder-redirection-using-group-policy.shtml


On Error Resume Next
 

Set objSysInfo = CreateObject("ADSystemInfo")

Set objNetwork = CreateObject("Wscript.Network")
 

strUserPath = "LDAP://" & objSysInfo.UserName

Set objUser = GetObject(strUserPath)

strUserName = objNetwork.UserName

objNetwork.MapNetworkDrive "N:", "\\Servername\Private\" & strUserName
 

For Each strGroup in objUser.MemberOf

    strGroupPath = "LDAP://" & strGroup

    Set objGroup = GetObject(strGroupPath)

    strGroupName = objGroup.CN
 

    Select Case strGroupName

        Case "Accounts"

			objNetwork.MapNetworkDrive "R:", "\\Servername\Common"

			objNetwork.MapNetworkDrive "J:", "\\Servername\Accounts"
 
 
 

	Case "Engineering"

			objNetwork.MapNetworkDrive "R:", "\\Servername\Common"

			objNetwork.MapNetworkDrive "H:", "\\Servername\Engineer"
 
 

    End Select

Next

Open in new window

0
 

Author Comment

by:Joe2009
ID: 24843270
Thank you for the links.

Since I didn't set up this network originally, I want to avoid making any wholesale changes until I better understand how things are configured. Plus I'm a little rusty (OK, a lot) and don't have much experience with Group Policy.

What I don't understand is why the \home variable doesn't work when I can map to the specific folder by name. Is there any way this can be an NTFS/sharing  permissions issue?
 
Joe
0
 
LVL 4

Expert Comment

by:samsixty
ID: 24859892
How about trying 'net use h: \\server\%username%' instead of 'net use H: /home' in your logon script, that is not much of a change and may work.
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
LVL 66

Expert Comment

by:johnb6767
ID: 24866673
Are you using the %homeshare% variable in thier AD properties??
0
 
LVL 47

Expert Comment

by:Donald Stewart
ID: 24866702
0
 

Author Comment

by:Joe2009
ID: 24926813
Sorry for the delayed response-- I've been away.

I can make the drive mapping work by using \\server\%username% instead of /Home in the logon script. I have also noticed that by changing the Connect path from \\server\username to \\server\\users\username, a new home folder for the user is created, which then maps perfectly.  

For the users whose mappings don't work, it apparently never worked. I suspect the home folders were not created via ADU&C but were set up in advance and then had the path added to the profile. It's the only explanation I can think of for why the exact same logon script and folder path works for some users and not others.

I'm guessing the home folder file/and or share permissions are messed up on affected users, but it's not obvious to me what the problem is.

Anybody know of a decent doc that explains optimal home folder permissions?



0
 
LVL 66

Expert Comment

by:johnb6767
ID: 24930078
0
 
LVL 47

Accepted Solution

by:
Donald Stewart earned 250 total points
ID: 24930193
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Users of Windows 10 Professional can disable automatic reboots using the policy editor. This tool is not included in the Windows home edition. But don't worry! Follow the instructions below to install (a Win7) policy editor on your Windows 10 Home e…
Article by: btan
The intent is not to repeat what many has know about Ransomware but more to join its dots of what is it, who are the victims, why it exists, when and how we respond on infection. Lastly, sum up in a glance to share such information with more to help…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 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

12 Experts available now in Live!

Get 1:1 Help Now