Migrate OD Users Sites folder only

Hey all,
Here at our school we have server that we wipe every year and re-add our users to clear out our graduating students, upgrade our machines, etc. The faculty have decided that for those students that are not graduating they want to setup a website in each of their user folders that the students can have for all four years of school. We have students now who have websites from last year and I want to move their folders over.
Is there an easy way to move over all the Sites folder for each user to their new home folder without having to do it 1 by 1 for each user?
Thanks in advance.

Make sure that the files you need are being synchronized on a regular basis with the server. For Address Book, this means ~/Library/Application Support/Address Book.
For iCal, it's: ~/Library/Application Support/iCal/
Oftentimes (and by default in the Background sync tab), either in the Login and Logout sync or in the Background Sync tabs in the Mobility preferences for a user, ~/Library/ (and therefore the directories underneath it) are excluded from synchronization. Getting these off of the excluded list will make sure that they get included.
Check other threads on portable/mobile home directories for things in the ~/Library folder than you may not want to have sync, like the ByHost preferences.

Similar Messages

  • Enabling user Sites folder

    I would like to enable the "old style" http://my.server.org/~username configuration so users can share the contents of their Sites folder in OS X Mavericks server.
    So far I have succeeded in getting it to work for Open Directory users by editing /Library/Server/Web/Config/apache2/httpd_server_app.conf and uncommenting these two lines:
    Include /private/etc/apache2/extra/httpd-userdir.conf
    and
    LoadModule apple_userdir_module ${SERVER_INSTALL_PATH_PREFIX}/usr/libexec/apache2/mod_userdir_apple.so
    Once I did that Local Network Users' (Open Directory Users) sites are accessible at http://my.server.org/~username but sites of Active Directory users are not.
    Does anyone have any suggestions?

    Using your text editor, create a new document. Type following text
    <Directory "/Users/username/Sites/">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    where you replace username by your username. Save it as a text document on your Desktop with name username.conf
    Go to Finder, select Go menu, Go to folder item. Type /etc/apache2/users. A Finder window will open. Drag your username.conf file from the Desktop to this folder.
    Authenticate when ask.
    That's all.
    You probably (not sure) will have to stop and start Web sharing (in Preferences) to access your personal site
    http://servername_oraddress/~username/
    Hope this helps.

  • Apache 2 and ~User Site folder

    I recently installed Apache 2 following the helpful guide at http://www.phpmac.com/articles.php?view=244, at any rate while I have Apache running correctly, and can load http://127.0.0.1 (which displays the Apple default stuff) I cannot load http://127.0.0.1/~username. I have followed the guide, editing the httpd-userdir.conf, so I am not sure what to do. Having looked at an old Apache httpd.conf file I noticed that it had a
    <IfModule mod_userdir.c>
    UserDir Sites
    </IfModule>
    statement which is missing from the new httpd.conf, might that be the source of the problem? For example, there may be a module that I failed to install? If so a little direction would be a big help -- I don't know much about adding modules beyond "LoadModule". Any help is much appreciated!

    >Would you please take a look at my thread 9-22-06
    Not unless you post a link to it.
    In any case I know exactly what I'll say there.
    The first is to ask what the logs say. I'll go out on a limb and say there's an error message that looks something like:
     Permission denied: access to /Users/billjones/Sites/index.php failed because search permissions are missing on a component of the path.
    Am I right?
    If so the log message tells you what's wrong - Apache doesn't have permissions to search the directory tree to get to the document, so it doesn't know if the document exists, or whether it can serve it.
    You need to add world-executable privileges to every directory in the path to the file - that means /Users, /Users/billjones and /Users/billjones/Sites
    Since your other 'guest1' account works it's likely that /Users has the right permissions, so focus on the other directories.
    You'll need to chmod a+x /Users/billjones in order to set the execute bit on your home directory. Then repeat it with the /Users/billjones/Sites directory.

  • About the Sites folder into Users accounts

    Hi,
    I can reach the Sites folder of users if I put a ~ after the domaine name like in : http://mydomain.com/~userx/
    How to do the same without having to put the ~ ?
    Thanks

    You need to configure apache specifically to do that.
    The whole point of the ~ is to gain access to user-specific sites. Without that character (or something similar), Apache can't automatically tell whether http://yourdomain.com/userx is userx's Sites directory, or a directory called '/userx' in the document root.
    So, if you want Apache to automatically find user-specific sites you'll need the tilde. If you don't, you'll need to tell apache how to find them (bearing in mind that the user's home directory might not be in /Users - it could be a network home directory, or in some other location.
    You might be able to craft something close using RewriteRules (at least to the point of catching missing directories and redirecting to /Users), but getting Apache to lookup a user via directory services to locate thier home directory is beyond RewriteRules as I know them.

  • When deleting a user created folder from On My Mac in Mac Mail the sent messages that are part of conversations that reside there are not deleted, only the received mail gets deleted.

    When deleting a user created folder from On My Mac in Mac Mail the sent messages that are part of conversations that reside there are not deleted, only the received mail gets deleted. Any way for both the received and sent mail that resides there to be deleted?
    I create a lot of project folders where i keep all my conversations regarding the project. Once the project is finished i would like to just delete the folder and get rid of all the emails associated with it but when i delete the folder i've noticed that only received messages are deleted. Now I am stuck trying to sort through my sent folder for messages that were returned there after the conversations was supposedly deleted.

    Mail/Preferences/Viewing - un-check include related messages, delete the folder, then go back and reset yo include.

  • Not Enough Hard Drive Space on my Mac Mini to Save Deleted User Account Folder: What to do?

    I am no longer able to access my original user account on my mac mini because the account is corrupted and won't load. Thanks to the helpful advice I found on the internet, I was able to create a new user account and resume using my mac, but all of my old files are trapped in the old user account.
    The plan was to delete the old user account, create a disk image of the old account folders, and then migrate those folders to the new user account. Unfortunately, I don't have enough disc space left on my Mac to do that. I have just under 11gb left after deleting absolutely everything I could, and I need 81gb for the old user files. The back up plan was to select the "don't change the home folder" option, but when I went to delete the account, there was no such option. The message simply read:
    "The user's home folder will not be saved. To do so, you need 81.1gb of free disk space. Try emptying the trash or deleting other files on your disk, then deleting the user account. If you do not want to save the user's home folder, click delete immediately."
    My only two choices were CANCEL or DELETE IMMEDIATELY. There was no "don't change the home folder" option.
    So I am not sure how to proceed. Here are some questions:
    1) is there a way to save the disk image directly to an external drive instead of the user's folder on the mac hard drive?
    2) If I use the "delete immediately" option, will the files go into a "deleted users" folder where they can be recovered or will they just be erased from the computer and unretrievable?
    3) Is there a way to use terminal to change access permission on the original user account files so that I can copy them onto an external drive or integrate them with the new user account without having to first delete the original user account?
    4) In the absence of deleting the user account, will using either:
    sudo chown -R `id -un` /Users/oldusername
    and/or
    sudo chmod -R u+rw /Users/oldusername
    in Terminal allow the new user account permission to access the original user files and merge them seamlessly into my new user account? Or must I delete the original account first?
    5) Is there something else I haven't thought of that would work, would be more efficient, or more effective? This wouldn't be the first time I have overthought a solution...
    When considering any solutions, please keep in mind that I cannot launch the original user account as that starts the whole endless loading loop. So, while I have the password for the original user account, any solution would appear to require that I work from the new user account only, without launching the old account.  Also I am a complete newbie at this. I've used Macs exclusively for 17 years but this is the first time I've had to do anything like this. Up to now, everything has always "just worked".  So please be as detailed with any instructions as possible!
    Any help greatly appreciated.  Thanks!
    Mac Mini 2ghz 1g ram running OS 10.4.11

    I think ComputerFixer is correct, you should be able to drag and drop it to another drive, no worries. However, if not, you could create an disk image of it using DiskUtility and create it on a new drive. But again, I don't think that is necessary. If you have administrator rights with your new account, can you simply go into the old user account folder and drag and drop the files you want to save? I have done that as well as copy the older user account to another drive (in my case, another computer on the network) and salgage my files from there. Is that an option for you?

  • Is there a way to merge/migrate my local home folder to a network account

    My family has a number of Macbooks and a couple of iMacs and we've been thinking we'd like centralized storage for our media collection and other files and I'd like an easier way to deal with these machines to keep them updated, etc.  Also we swap laptops and desktops depending on who needs to do what at a particular moment.  Is there a way to migrate an existing home folder on a macbook to an account on the server.  What I would like to be able to do is to be able to log into any computer in my home and have it look like "my" computer, with files, settings etc...  Since I am new to the server world I am confused by the terminology re: network accounts and mobile accounts.  Is there a good guide someone could recommend to get me started.  Thanks.

    Hi Yodalogger,
    I hope you have yourself sorted.  I've been through alot of pain with lion server, it's very buggy at best.
    Your best bet is SolidWood's suggestion of network accounts if you are constantly on the same network.  I use this at home and it works very well.  For simplicity, you can use WorkGroup Manager for this as it's more intuitive!
    If, you need a mobile account, this is what I did.
    I migrated local macbook accounts to server machine (migration assistant).
    I renamed the /User home folders on macbook to _backup.  For safety.
    I deleted local accounts from macbook.  Keep your _backup home folders!  Also, you will need to have a local Admin account in place.  Make sure you do not delete it.
    On Server.  You will have local accounts created for all your migrated macbook accounts.  Just remove the accounts in system preferences but ensure you leave the /User home folders in place when prompted.
    On server. I created the new users (old mackbook accounts) and groups in the server app.  This doesn't create or overwrite your existing home folders.  So go ahead and name them exactly the same as before and make sure the accounts match your home folder's names.
    On server, using profile manager, I set up mobility etc., for the device.  That is, you need to enroll your macbook with the server and configure services for it in profile manager.  You can add a placeholder for this in profile manager to configure stuff.
    A handy tip to alleviate all the automatic push settings pain and heartache is to set the general payload to manual.  You can then wip up the profile manager from your macbook to install the profiles manually.  (easily done).
    On Macbook, login with local admin account.
    On Macbook, go to system prefs and accounts, set up your open directory stuff in the login options.
    On Macbook, log out of admin.  Back at the login screen, you should see your admin account and 'Other.'  Give it a few minutes or so to figure this out.  It needs to contact the server etc. for info.
    Once you have 'Other' click on it and login with one of your new network accounts.  This will log you in as a network account - you should see all your usual settings that previously existed on your macbook when it was a local account.
    At this point, you whip up profile manager.  http://yourserver.local/profilemanager  Change yourserver to the name of your server.
    Login to profile manager with your admin account.  I do this as I will be downloading a few profiles that only admin has access to.
    So, you need to download a trust profile, your device profile, and a profile for remote management if you have set this up.  You may have seen various download buttons knocking around the the interface.  In downloads double click these to install (if it doesn't do this automatically).
    Log out of everything.
    Log back in with one of your network accounts.  This time you should be prompted to create a mobile account.  Say yes and let it sync your home folders from server to macbook.
    Once each mobile account is created, you can then further define user/group settings in profile manager.  You download these by logging into http://yourserver.local/mydevices as the user and download the appropriate settings.
    I think thats it.  Sorry, if its not detailed enough - I'm presuming you know yourself around a mac!  I have to say the process is straightforward but Lion Server is not.  I do not get consistent results with it and I'm still trying to tame it... 
    By far the easiest option is network accounts.  Mobile accounts need more attention.
    I hope this helps (and anybody else!)
    Paul.

  • 403 Forbidden on Apache for a web page in my own encrypted Sites folder

    Greetings,
    I'm developing a php web site, putting files in my account's "Sites" folder.
    My whole account is encrypted (not by File Vault, but by moving it in an encrypted .dmg by ditto and niutil, instead) and I'd like the web site itself to be, too: for now I want it my eyes only. Everything I use (iApps, etc.) works fine, so I think I adjusted my encrypted home right.
    But, I can't view my own web pages in Safari: when I try any location such http://localhost/~myusername[/myfile] I get a 403 Forbidden error.
    File permissions seem right and Personal Web Sharing is on. Moreover, if I create a brand new user and move it (via ditto and niutil) in the same encrypted .dmg, it suffers the same fate.
    Any other non-encrypted account's web page, e.g. http://localhost/~otherusername is reachable from my encrypted account.
    I wonder if all that's about Apache configuration, which I'm not skilled enough to fix.
    Thanks to anyone caring to help.

    Hi Begli, and a warm welcome to the forums!
    See if any of this helps...
    http://www.informit.com/library/content.aspx?b=MacOS_XUnleashed&seqNum=211

  • Migration problem: migration assistant won't migrate both user accounts from time machine backup

    My Mac was formatted due to some technical issues. Before handing to the lab- I backed it up using time machine ( and only that ).
    I had two user accounts on the Mac before handing it to the lab.
    One of them I never actually used -I'll call it the secondary.
    The second one was the main one - which I used  all the time - the principal account. All my data is there on that account.
    The Mac was formatted at the lab.
    Using the setup assistant I migrated one user from the Time Machine Backup.
    Only later I realized it was actually the account I never used.
    Since I never used it - I couldn't remember the login password and had to reset it, took a while.
    I then tried to to migrate the principal account - the one I actually wanted to migrate, in the fist place, during the setup procedure -  using the migration assistant.
    At the relevant window I tick the principal account- the mac does some thinking and then in the login window my only options are the secondary account and guest account, the principal account is not to be seen.
    I'm really really stressed and worried.
    BTW -when looking into the actual external disk used for the Time Machine at this path: computer name--> backups-->macintosh HD -->users--> principal account - I see all the folders and files with a 'no entry' icon next to them.
    clicking on the folders - I get the following notice - 'the folder xxx can't be opened because you don't have permission to see the contents''
    What's going on?
    I'm running on a 2.9Ghz intel core i5
    16GB RAM 1600MHz DDR3
    SW version: 10.9.4
    would appreciate any kind of help,
    Thanks
    Dana

    thanks,
    the thing is the Mac was behaving strangely - that's why I sent it to the lab in the first place.
    This Mac is just over a year old but it's content was initially migrated from the older mac.
    And it (the new Mac) wasn't working properly from the get go..
    It took ages for it to start up and wouldn't start up if any external disk was attached (via USB).
    I had to start it up and only then connect external disks.
    In the lab - They couldn't find and HW issues.
    So they formatted and reinstalled the OS - I think that's all they've sone in the lab
    The idea was to start afresh and slowly reinstall softwares - only those necessary.
    So, having said all that- does that change your answer?

  • Migration assistant doesn't migrate all user files

    I Wanted to do a semi clean install, so I decided to erase everything and install a fresh OS X Yosemite.
    i Used migration assistance to only migrate my user account and all its files. Everything seemed to work fine, until I realized I was missing things. Some fonts were not copied over (/User/name/Library/Fonts) and most of my music was not copied over (~/Music/iTunes etc.). The only music that seemed to transfer were ones I purchased from iTunes or imported recently (with the latest iTunes). I got fed up with the entire process and didn't do any more investigation or debugging and am now doing a full restore from time machine. Luckily I have two time machine backups... Can't always assume everything will go correctly (one time machine is stuffed as it was preparing to backup my new installation with lost user files).
    has anyone else had the same problems?
    As a note I was able to locate those fonts manually on one of the time machine backups but it said the links we broken (they must be aliases) but since I knew the absolute path I could find them. Maybe that's part of the problem? Also I wonder if user permissions (eg ownership) could affect the restore user account process...
    Ps: Apple this site ***** on my iPad mini. Fonts are way too small!

    I did exactly that
    If so, that would have been Setup Assistant, not Migration Assistant. From the sound of it, I'm not so certain that is what you did. They are very similar, but may produce different results. Setup Assistant appears on the first boot of the new Mac. It is generally far more problem free than Migration Assistant. If you select the option to migrate later you get MA. Have you checked to see if you don't now have another User where all your settings now reside. This can be the result of using MA.
    If you didn't use SA on the first boot, it might be far less time consuming and aggravating to simply reinstall the OS and the bundled apps. This will produce a brand new option to use SA on the first boot.

  • How can i migrate my users from my laptop running 1.7.1 to my new i mac running 1.6.8

    hi i tried to migrate my user info from my laptop to my new i mac and it wont do it until i update my i mac . i cant do this as the laptop is on 1.7.1 and the i mac is on 1.6.8. both are the current version. thanks

    Lion Up-To-Date upgrade
    "The Mac OS X Lion Up-To-Date upgrade is available at no additional charge via the Mac App Store to all customers who purchased a qualifying new Mac system from Apple or an Apple Authorized Reseller on or after June 6, 2011. Users must request their Up-To-Date upgrade within 30 days of purchase of their Mac computer. Customers who purchase a qualifying Mac between June 6, 2011 and the date when Lion is available in the Mac App Store will have 30 days from Lion’s official release date to make a request." See below:
    OS X Lion - Get up to date
    Apple Stores may still be carrying inventory of the models that did not have Lion pre-installed, hence the above offer. Product that is ordered from the Online store should come with Lion pre-installed as will CTO (configure to order) models.
    And, babowa reminds me that you could install Lion on a separate partition in order to keep Snow Leopard's installation. You can create a second partition using Disk Utility.
    To resize the drive do the following:
    1. Open Disk Utility and select the drive entry (mfgr.'s ID and size) from the left side list.
    2. Click on the Partition tab in the DU main window. You should see the graphical sizing window showing the existing partitions. A portion may appear as a blue rectangle representing the used space on a partition.
    3. In the lower right corner of the sizing rectangle for each partition is a resizing gadget. Select it with the mouse and move the bottom of the rectangle upwards until you have reduced the existing partition enough to create the desired new volume's size. The space below the resized partition will appear gray. Click on the Apply button and wait until the process has completed.  (Note: You can only make a partition smaller in order to create new free space.)
    4. Click on the [+] button below the sizing window to add a new partition in the gray space you freed up. Give the new volume a name, if you wish, then click on the Apply button. Wait until the process has completed.
    You should now have a new volume on the drive.
    It would be wise to have a backup of your current system as resizing is not necessarily free of risk for data loss.  Your drive must have sufficient contiguous free space for this process to work.
    Once you have your Lion installer application you can create a bootable USB flash drive (8 GB size):
    Make Your Own Lion Installer
    1. After downloading Lion you must first save the Install Mac OS X Lion application. After Lion downloads DO NOT click on the Install button. Go to your Applications folder and make a copy of the Lion installer. Move the copy into your Downloads folder. Now you can click on the Install button. You must do this because the installer deletes itself automatically when it finishes installing Lion.
    2. Get a USB flash drive that is at least 8 GBs. Prep this flash drive as follows:
    Open Disk Utility in your Utilities folder.
    After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    3. Locate the saved Lion installer in your Downloads folder. CTRL- or RIGHT-click on the installer and select Show Package Contents from the contextual menu. Double-click on the Contents folder to open it. Double-click on the SharedSupport folder. In this folder you will see a disc image named InstallESD.dmg.
    4. Plug in your freshly prepared USB flash drive. You are going to clone the InstallESD.dmg disc image to the flash drive as follows:
    Open Disk Utility.
    Select the USB flash drive from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the USB flash drive volume from the left side list and drag it to the Destination entry field.
    Drag the InstallESD.dmg disc image file into the Source entry field.
    Double-check you got it right, then click on the Restore button.
    When the clone is completed you have a fully bootable Lion installer that  you can use without having to re-download Lion.

  • Migrating OS X Server Data Only

    Hi,
    Apologies if this is a re-post, as I did ask this question a few days ago but can't find it anywhere on the site any more.
    Due to various reasons, spurious errors messages in the logs, etc.. I'd like to rebuild my OS X server from the ground up, format the disk, install Yosemite, install OS X Server and then restore the users and data - but without the server config, which I'd like to recreate from scratch.
    Predominately, it's the user account data, and mail data that I want to restore from a backup.
    Is this possible?
    NB: I have a virtual machine ready to test against, and everything is backed up to multiple points if it all goes wrong.

    I did a similar upgrade a while ago.
    *have a working backup of the old setup... keep it safe.
    Make sure you have 10.6.8 with software updates installed.
    Use disk utility to repair the disk, then repair permissions.
    Make sure you are using Mountain Lion 10.8.3 from the mac store and upgrade to it. Process should so smoothly.
    When everything is ready, get the OS X Server App 2.2.1, the latest and install it. It will migrate everything all right.
    It's imperative that you use the latest versions for everything.
    We postponed upgrading and kept trying to migrate again and again and only the latest ones work, out of the box.
    Older versions had huge problems migrating.

  • Sites Folder in Leopard

    One day i was surfing through some settings and i found the "web Sharing" option, turned it on, and it said "Web Sharing allows users of other computers to view Web pages in the sites folders on this computer." Now, where is that "sites" Folder? and how do I work this feature in Leopard.
    I you have any advice or helpful answers
    Thank you in advance.

    fenderbenderr45,
    Turning "Personal Web Sharing" on or off toggles the installed Apache Web Server, and opens the appropriate port (80).
    Apache, as it is configured by default in OS X, serves at least two "web directories." The first one is /Library/WebServer/Documents. Anything placed in this folder will be served to the internet when Web Sharing is turned on.
    In addition to the "main" web directory, each user has a personal web directory: their "Sites" folder (/Users/HOME/Sites), and it is analogous to the "Documents" folder in the main web directory.
    Assuming that Web Sharing is turned on, and your machine is connected to the internet, anyone across the internet can navigate to and read/download anything in the "main" web directory by entering your public IP address (formatted as "http://xx.xxx.xxx.xxx") in their web browser. To navigate to a personal web directory, they must enter "http://xx.xxx.xxx.xxx/~username," where "username" is the user's short name. When Personal Web Sharing is turned on, this information is displayed in the Sharing pane (if you are behind a router, with a private IP address, only the private IP address is shown, and it will not be accessible from "outside" your network).
    If you are behind a router, you must configure the router to forward http (port 80) requests to your private IP address.
    There are certain standards to follow when creating a "web site." An index page, written in HTML and titled "Index.html," will be the first page anyone sees when navigating to your site. If no index page is present, however, Apache is smart enough to dynamically create a basic text-only index page listing whatever files or folders you have in your "Sites" folder (or the main web directory). Your site can be as basic or as elaborate as you have the resources and knowledge to create.
    Scott

  • User account folder present, but no user account after TM restore

    I did a reinstall of my OS last night, wiped the drive and reinstalled.
    Then i used migration assistant to restore from time machine backup.
    I was not allowed to use my old username and data because I had setup using the same when the OS first started. So I changed the name to add my "Jr." and changed the Short Name to "Radmac" where before it was "Rad".
    Woke up this morning to start working and "radmac" is in the user folder, but the account is not in System Prefs, thus not accessible.
    I could drag everything to the other account, but is there some way to access this user data just by setting up the account again?

    Hi,
    Based on my research, user profile is only generated/loaded during Interactive logon process. Interactive logon is intended for users who are interactively using the machine, who can run applications/programs on the machine and
    see the full desktop. Logon type for Interactive logon is 2 (locally), and logon type for RemoteInteractive logon is 10 (Terminal Services).
    Logon type 3 indicates a Network Logon, which only provides network access to the destination computer, for example, accessing a shared word document.
    Therefore, there aren’t user profiles for those users who have Netwok Logon events logged on the machine.
    Here are some references below I suggest you refer to:
    How Interactive Logon Works
    http://technet.microsoft.com/en-us/library/cc780332(v=WS.10).aspx
    [Forum FAQ] Introduce three common parameters of Logon Events
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/45cb1f8e-68ee-4d06-bd2d-2b35bba2e28c/forum-faq-introduce-three-common-parameters-of-logon-events?forum=winserversecurity#45cb1f8e-68ee-4d06-bd2d-2b35bba2e28c
    Win32_LogonSession class
    http://msdn.microsoft.com/en-us/library/aa394189.aspx
    I hope this helps.
    Amy

  • When logging on to Windows 7 user gets a second mapped drive to the users home folder

    Morning,
    I'm working through an issue we've discovered whilst trialing Windows 7.  Our environment is setup as follows.
    Domain Controllers are Windows Server 2003
    Clients are Windows XP and Windows 7
    Windows XP and Windows 7 Clients are in seperate OU's
    All Windows XP Group Policies apply to Windows XP And Windows 7 clients, Windows 7 policies are then applied to Windows 7 clients after
    Windows 7 policies are setup such that any setting defined in a Windows XP Group policy is left unconfigured in the Windows 7 Group policy and only new Windows 7 settings have been set in Windows 7 Group Policies.
    We have users home folders mapped in their Account Directory account setting and set to H:\   to connect to
    \\domainname\dfs\home\username
    In addition we also as a fail safe map the drive via a login script using net use
    This has worked fine for years in windows XP, if Active Directory failed to map the drive for any reason then the login script would then map the home drive.
    In Windows 7 we have noticed a curious error.  We found after a period of a couple of weeks we suddenly started getting a new drive mapped.  This was identical to the H:\ drive mapping but was instead under drive Z:\.  In other words, the
    users home folder is mapped twice on h:\ and z:\.  This is not affecting any of the Windows XP users.
    I have gone through several logic reasons to ascertain why this has happened with the following findings.
    1. Originally we thought the error appeared when we tried out mapping the home drive using the mapped drives functionality new in Windows 7 group policy under preferences > windows settings > drive maps.  However, after forcing it to delete the
    Z:\ drive using this functionality we only succeeded in removing it with a group policy present to do it.  As soon as we removed that group policy the Z:\ drive came back
    2. Secondly i thought the reason we would be getting a z:\ drive when we haven't specified it anywhere is because active directory is trying to map to the H:\ Drive but it is already present therefore in Windows 7 it tries to map to a different drive. 
    Using Windows logic it tries the highest letter first which is unlikely to be in use i.e. z:\.  This makes sense because our logon script uses a net use h:\ command to map the drive and i believe by default these are set to perisistent.  Therefore
    the next time the user logs on H:\ is already mapped so the logic in Active Directory accounts maps the drive to Z:\ instead hence we end up with two mapped home drives.  To test this i altered the login script to set the drive maps to
    non persistent using persistent:no.  The logic here was that when the user logged off the drive would become unmapped so that when Active Directory tried to map the drive it would be able to use H:\.  Unfortunately this was not the case and
    Z:\ remains.
    3. Here is where i resolve the issue but i don't know why and is the bit i need answering.  If i go into my account on Active Directory and go to Profile and set the home folder drive letter to another letter i.e. change from H:\ to U:\,
    i get prompted to set full control etc and apply.  I then set the drive back from U:\ to H:\, again i am prompted for setting full control which i accept.  
    NOW when i login i no longer receive a Z:\ drive and only get an H:\ drive.  YAY, thats what i want, however, i do not understand why this is the case.  At first i thought it might be something in the active directory logic when i login to an XP
    machine and then login to a windows 7 machine.  IF you bear in mind that although i get a new profile in Windows 7 i still retain the same home folder setting.  However, after logging on an XP machine logging off then logging
    on a Windows 7 machine i still didn't get the Z:\ drive back. 
    I have tried creating a new user that ONLY receives our Windows 7 Group Policies and still they receive both an H:\ and a Z:\ drive which rules out the Windows XP policies conflicting with the Windows 7 policies.
    Does anyone have any ideas why i would get a second drive mapped to Z:\ logging into Windows 7 on a Windows Server 2003 domain? 
    Can anyone explain in more detail exactly how the Active Directory functionality works when you specify a connect to Drive letter for a users home folder?
    My current workaround is simply to add a net use command to remove the Z:\ drive.  I do not want to use Mapped Network drives using the new policy settings in Windows 7 RSAT because we have already found issues with it. 
    <input id="3daf20bf-4f4d-4a05-86da-2c30c205d580_attachments" type="hidden" />

    We had the exact same issue happen to us. No issue on Windows XP but Windows 7 mapped two home drives (F and Z). F was mapped during the login script and Z was being mapped by some unknown reason.
    We use Netapp for our storage and home drives and use a feature called CIFS Home Drive Mapping. This essentially maps a user to a folder not available through normal CIFS methods causing AD to error when setting the home drive. To get around this we use
    dsquery and dsmod to modify this attribute in the user account. This is the command we used...
    dsquery user -name %UserNameX% | dsmod user -hmdrv F -hmdir \\filer\$username$
    Notice there is no ":" after the F
    We determined the root causewas the value for the
    homeDrive attributefor the user account was set to "F" instead of "F:"
    When we updated our users to reference "F:" instead of "F" in their user, this problem was resolved.
    Use LDP or some other method to verify that the homeDrive attribute is set to "F:" (or any other letter) or you will have this issue.

Maybe you are looking for