Link to home
Start Free TrialLog in
Avatar of tags266
tags266

asked on

Domain Logon Script - Mapping Sub-Directories

Ok, I know this is probably pretty basic but I can't seem to figure it out.  We have one logon script (n.bat) for the whole company here which maps a shared drive on the sever's domain.

The logon script is "net use n: \\rc.law\files" where 'rc.law' is the domain name and 'files' is the main share.  The company is growing and we are beginning to departmentalize.  I want to create different logon scripts for different groups using the GPO tool.

In the 'files' directory there are sub-directories for accounting, processing, billing etc.  If I use that logon script to map a subdirectory under the main 'files' share it still only maps the root of 'files'.  I am deleting the main logon script altogether.  I know the GPO logon script is working because I can change the share letter of the script to "W" for example, and that changes when I logon as a test user in that group.  However, I can't seem to map down to the sub-directories below the main share e.g. accounting, so that the accounting dept only sees those files and not all the other folders.

I also tried having the logon script use the server name in the script but that doesn't work at all.  Where am I wrong here?
ASKER CERTIFIED SOLUTION
Avatar of sirbounty
sirbounty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi tags266,
Create a share on the folder you want to connect to. Then use the mapping example sirbounty demonstrated. It sounds like you aren't connecting since that particular folder isn't shared out. Yes, technically you can connect to the larger share and navigate to that folder, but you are wanting to drive map for users, so they need to connect directly for a share.

-skpruett
I would agree with Sirbounty.  If you're using the same drive letter, you need to delete the old mapping and have the script re-map like in his example.
Avatar of tags266
tags266

ASKER

Ok, the sub-directories are shared and read permissions are enabled for everyone, security is set too.

My new script is NET USE T: \\RC.LAW\FILES\BILLING

After I logon with the user the T drive gets mapped but in my computer it says:

'Disconnected Network Drive'
T:\ refers to a location tha is unavailable.  It could be on a hard drive on this computer or on a network.  Check to make sure that the disk is properly inserted, or that you are connected to the internet, or your network, and then try again.  If it still cannot be located, the information might have moved to a different location.

To verify, I am connected to the network as my user's home folder is mapped and working.  To give you more info my user's homefolder is mapped to P drive and the directory is TESTUSER ON RC.LAW\FILES\USER FILES.  this is all working fine.

I still can't connect to \\RC.LAW\FILES\---ANY SHARED SUBDIRECTORY---  HELP IS STILL NEEDED!!