Link to home
Create AccountLog in
Avatar of LWBIT
LWBIT

asked on

AD Home Folder Profile - Map as Persistent?

Hi All,
Have seen a few posts around but was hoping someone may have a solution here for us. We have our users home drives mapped through AD in the profile tab. We did use offline folders however we are phasing them out as our network is so dispersed over small WAN links it is killing the links and causing data loss as the home drives are toggling between offlie and online mode while in office.
Problem we have is now the Home Drive is not persistent and are not appearing when users log in at home and connect to VPN using 3g.
Currently we are setting up shortcuts on desktop with Batch files but its messy. We also cannot use Group Policy to map these Home Drives due to the way our homedrives are stored:
\\domain\homedrives\STATE\%Username%
The state field varies and isn't neccessarily 100% accurate as AD is not 100% correct.

Running 2008R2 Functional Forest and Domain

Any ideas? Open to almost any suggestion right now.
Avatar of Kruno Džoić
Kruno Džoić
Flag of Croatia image

Local Computer Policy > Computer Configuration > Windows Settings > Scripts > Startup

in Startup put batch file with command to map network drive

example:
NET USE Q: \\domain\homedrives\STATE\%Username% , but instead of domain name use IP address
Avatar of LWBIT
LWBIT

ASKER

Yeah that is something i was going to, but would still mean I need to touch 100+ computers manually. Was hoping would be somethign a bit more automatic in AD or AdsiEdit or something
yes you can, with domain GroupPolicy, same thing,

put batch file on \\domain_IP\SYSVOL\domain\scripts
Avatar of LWBIT

ASKER

No sorry, its not the domain part in the script that is the problem, it is the State part. all one domain, but differnet states so the DFS path is different for different users.
Avatar of Sigurdur Haraldsson
Group the users according to their places so you have all the users using the same DFS path in the same group. Use the IsMember function in vbs logon scripts to map the homedrive.

This is explaned here and the code to use: http://www.rlmueller.net/Logon6.htm
I found this as well: http://www.scriptinganswers.com/vault/Logon%20Scripts/
Check out the "Map drives by groups" - fourth from bottom.
Avatar of LWBIT

ASKER

No Way to have a script that picks up what is written in the AD Home Profile field?
Our AD is a mess and its going to be a nightmare to try to group users
ASKER CERTIFIED SOLUTION
Avatar of LWBIT
LWBIT

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of LWBIT

ASKER

My solution was the easiest to use without custom scripts
Thank you I will add to this;

In your GPO

Create a Map drive to map the H:\ %homeshare% select "Replace".