Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mapping User Drive in Group Policy

Status
Not open for further replies.

dparrott

MIS
Joined
Jul 26, 2004
Messages
201
Location
US
Hey everyone,

I use a custom .adm file to allow me to specify what shares a user should have mapped when they log on. This works just fine for almost everything. The only thing that it doesn't do right is map the users personal drive. The drives are all shared in the form username$ (for exmple mine is \\fileserver\dparrott$). I have tried using the UNC path of \\fileserver\%username%$ but it doesn't map the drive. Any clue what I can do to get this to work.

This is the .adm template I used. The only thing I have changed is the drive letter and the default under RemotePath. I also added explaination text.

CLASS USER

CATEGORY "Network Drives"

POLICY "Drive K"
KEYNAME Network\K
PART "ConnectionType - LEAVE" NUMERIC REQUIRED
MIN 1 MAX 1 DEFAULT 1
VALUENAME "ConnectionType"
END PART
PART "ProviderName - LEAVE" EDITTEXT REQUIRED
DEFAULT "Microsoft Windows Network"
VALUENAME "ProviderName"
END PART
PART "ProviderType - LEAVE" NUMERIC REQUIRED
MIN 131072 MAX 131072 DEFAULT 131072
VALUENAME "ProviderType"
END PART
PART "RemotePath" EDITTEXT REQUIRED
DEFAULT "\\SERVER\SHARE"
VALUENAME "RemotePath"
END PART
PART "UserName - LEAVE BLANK" EDITTEXT
DEFAULT ""
VALUENAME "UserName"
END PART
END POLICY

END CATEGORY

I got this from the following website.


Thanks,
Danny
 
That is certainly an interesting solution, but not one I would necessarily encourage. You are really limiting your flexibility here.

Please take a look at my FAQ for what I would consider a better solution. faq329-5798




I hope you find this post helpful.

Regards,

Mark
 
I have already seen your FAQ, and I already have a logon script that maps the drive. We are not a big company, and don't need/want to do a lot at the logon. However, there are certain users that we don't want to allow any access to the run command, and my experince has shown that disabling the run command also makes it so that the script doesn't run. Therefore, I need to have some way without logon scripts that will map the drive. If anyone has input on how to do that using group policy (our prefered way), I would greatly appreciate it.

Thanks,
Danny
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top