+ Post New Thread
Results 1 to 5 of 5
How do you do....it? Thread, Deleting Users in Technical; Back in the days when we had RM CC3, deleting users was as simple as opening the Management Console, highlighting ...
  1. #1
    enjay's Avatar
    Join Date
    Apr 2007
    Location
    Reading, Berkshire, UK
    Posts
    4,497
    Thank Post
    282
    Thanked 196 Times in 167 Posts
    Rep Power
    76

    Deleting Users

    Back in the days when we had RM CC3, deleting users was as simple as opening the Management Console, highlighting the user and clicking "Delete" - now we've gone vanilla, it seems I need to go to ADUC, the directory which contains the profiles and the one which contains the document folders, deleting them from each one in turn. Is there any easier way to delete users?

  2. #2

    X-13's Avatar
    Join Date
    Jan 2011
    Location
    /dev/null
    Posts
    9,840
    Thank Post
    669
    Thanked 2,189 Times in 1,493 Posts
    Blog Entries
    19
    Rep Power
    901
    Remove from AD and make a script to remove/make any [un]needed folders?

  3. #3
    Jamman960's Avatar
    Join Date
    Sep 2007
    Location
    London/Kent
    Posts
    1,002
    Thank Post
    190
    Thanked 199 Times in 159 Posts
    Rep Power
    48
    are we talking about deleting single users or whole year groups once they've left?

    By default there isn't an easier way, you could probably script it though.

    I generally setup networks to have user profiles and documents folders organised into intakes labeled with their absolute latest leaving year so that once they leave its just a case of deleting the parent folder. I usually also setup accounts to expire at some point during the summer hols in the year they are due to leave

  4. #4

    SYSMAN_MK's Avatar
    Join Date
    Sep 2005
    Posts
    4,012
    Thank Post
    490
    Thanked 1,345 Times in 731 Posts
    Rep Power
    429
    I use the following script. Set up an OU that you can move old users to. Disable the accounts and run the script.

    Edit to suit your set-up

    Code:
    @echo off 
    setlocal 
      
    REM Name of the server which hosts home folders 
    set HomeServer=%SERVER-NAME-GOES-HERE%
      
    REM Distinguished Name of the Ready To Delete OU 
    set DelOU="OU=ToDelete,OU=Users,DC=domain,DC=local" 
      
    for /F "tokens=*" %%G in ('dsquery user "OU=ToDelete,OU=Users,DC=domain,DC=local" -o samid -disabled') do ( 
    
    REM Path to Home DIR
     rd /s /q "E:\Users\Pupils\%%G
    REM Path to Profile DIR
     rd /s /q "E:\Profiles\Pupils\%%G
    
    )
    Use at your own risk!

  5. #5
    enjay's Avatar
    Join Date
    Apr 2007
    Location
    Reading, Berkshire, UK
    Posts
    4,497
    Thank Post
    282
    Thanked 196 Times in 167 Posts
    Rep Power
    76
    Quote Originally Posted by Jamman960 View Post
    are we talking about deleting single users or whole year groups once they've left?
    Both, although it is the individual users that are most time-consuming, since year groups are all held within the same parent folder anyway.



SHARE:
+ Post New Thread

Similar Threads

  1. problems deleting users
    By DirtySnipe in forum EduGeek Joomla 1.5 Package
    Replies: 1
    Last Post: 12th March 2009, 01:47 PM
  2. Replies: 0
    Last Post: 20th August 2007, 03:20 PM
  3. Replies: 10
    Last Post: 4th June 2007, 01:56 PM
  4. Deleting User Profiles
    By Gordie in forum Scripts
    Replies: 4
    Last Post: 19th June 2006, 04:41 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
  •