+ Post New Thread
Results 1 to 3 of 3
Windows Server 2008 R2 Thread, Moving Leavers Profiles and Homes to another Location in Technical; Hi, When a student leaves we move their user account in AD to an OU called "Leavers", and then delete ...
  1. #1

    Join Date
    Jan 2013
    Posts
    7
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Moving Leavers Profiles and Homes to another Location

    Hi,

    When a student leaves we move their user account in AD to an OU called "Leavers", and then delete their profiles and homes. The profile location is in \\server\a-dProfiles$\username and the home location is \\server\a-dHomes$\username

    We want to continue moving leavers accounts to the OU, but once they are moved we want to move their profile and home to another location, for example, \\server\leaverProfiles$\username and \\server\leaverHomes$\username this is in case they return in the future and we can then just move their profile and home back.

    Is there a way of scripting the movement of the profile and home folders when their accounts are moved into the Leavers OU?

    Regards,

    Net-Eng

  2. #2

    Join Date
    Nov 2011
    Posts
    628
    Thank Post
    87
    Thanked 21 Times in 19 Posts
    Rep Power
    10
    Hi,

    Havnt done this myself but something i will be doing in the future.

    The way im probably going to do it is using a batch file with a for loop.



    Code:
    @echo off
    
    for %%T in (
    User1
    User2
    
    ) do (
    robocopy Path to home d\%%T Path to destination\%%T /MIR /R:2 /W:5
    
    )
    Just need to add the names to the list, one per line.
    And then find the right command to delete from the AD. Think you do this with the dsrm command.
    Last edited by dany2010; 25th January 2013 at 09:47 AM.

  3. #3

    Join Date
    Jan 2013
    Posts
    7
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Thanks for this, I will give it a go. Although I could do with a way to automate the list, or just delete profiles for the users in the specific OU - is this possible? With your method I would have to type/paste usernames in to the list wouldn't I?

SHARE:
+ Post New Thread

Similar Threads

  1. Moving Servers - Profiles and My Documents
    By benIT in forum Windows
    Replies: 13
    Last Post: 10th December 2009, 12:05 PM
  2. Copy files to another location
    By Chuckster in forum How do you do....it?
    Replies: 7
    Last Post: 23rd October 2009, 02:09 PM
  3. Moving RIS from 1 server to another
    By Zoom7000 in forum Windows
    Replies: 15
    Last Post: 10th February 2007, 12:25 AM
  4. Moving Exchange form one server to another
    By tosca925 in forum Windows
    Replies: 10
    Last Post: 22nd November 2006, 01:49 PM
  5. Moving Shared Folders and Home Drives
    By secman in forum Windows
    Replies: 4
    Last Post: 31st August 2006, 08:23 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •