[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1191
  • Last Modified:

Map My Documents Network drive per user via Group Policy

I would like to add a line to our Group Policy logon script that automatically creates a network drive for a user that connects to their Document folder on the file server so that no matter where someone logs in they get a network drive to their documents.

Currently this is set up at \\fileserver\users\%username"\My Documents

Thanks in advance!
Joe
0
joemckamey
Asked:
joemckamey
1 Solution
 
WalkaboutTiggerCommented:
net use H: "\\fileserver\users\%USERNAME%\My Documents\"

should be all that is needed to add to the existing GPO login script, as long as the H: drive (or whichever letter you choose) is not already in use for a network or local resource.

I would also recommend always using the first quote before the double backslash and the end quote after the full name of the UNC path.
0
 
bmurray-vbCommented:
I'm assuming that you're doing folder redirection via group policy as well?  If so, if you're declaring a \\%homedrive%\%homepath%\  variable in the folder redirection, this will happen automatically if you use  "Connect (drive letter) to \\servername\%username%" in the Profile tab of ADUC.   (without having to do anything with a login script)
0
 
joemckameyAuthor Commented:
That worked for me walkaboutigger...

Thank you for the response bmurray-vb.  The person that set up my network didn't do it that way - I would like to learn about that but I am more of just a "manager" of the network and not really an IT guy...

Thanks!
Joe
0

Featured Post

Threat Trends for MSPs to Watch

See the findings.
Despite its humble beginnings, phishing has come a long way since those first crudely constructed emails. Today, phishing sites can appear and disappear in the length of a coffee break, and it takes more than a little know-how to keep your clients secure.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now