+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 23
Windows Thread, ex pupils and staff accounts in Technical; Just a quick one on how long do you keep pupils and staff accounts on the network for after they ...
  1. #1

    Join Date
    Feb 2008
    Location
    south coast
    Posts
    173
    Thank Post
    0
    Thanked 2 Times in 1 Post
    Rep Power
    13

    ex pupils and staff accounts

    Just a quick one on how long do you keep pupils and staff accounts on the network for after they have left your workplace???

  2. #2

    Join Date
    Nov 2006
    Posts
    998
    Thank Post
    132
    Thanked 58 Times in 51 Posts
    Rep Power
    24
    We transfer old work to DVD for archiving. I don't think DVDs last longer than ten years, but it's unlikely that any ex-pupils will want the work after two or three.

  3. #3
    stratisphere's Avatar
    Join Date
    Apr 2007
    Posts
    295
    Thank Post
    33
    Thanked 87 Times in 31 Posts
    Rep Power
    30
    We deactivate accounts as soon as they leave and move them to an Archive OU. We then keep the accounts & files for a year. After that we delete them. If they need them after that it's a visit to our backups (after a short talk of "you should have got it when you left")

  4. #4
    Dom_'s Avatar
    Join Date
    Dec 2008
    Posts
    1,009
    Thank Post
    151
    Thanked 138 Times in 115 Posts
    Rep Power
    55

    Depends

    Student accounts is usually 2 years for us as we have a 6th form, the data has to stay for 3 years i think?

    Staff, depends on if they are supply or full time, supply we keep in a seperate container as they could come back, normal staff we usually leave for a month or clean up over 6 week hols.

  5. #5

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,101
    Thank Post
    512
    Thanked 2,311 Times in 1,787 Posts
    Blog Entries
    24
    Rep Power
    803
    A year for pupil data, no specific time for staff data. It varies on who the staffmember was. If it was, for example, the old office manager or the like then they stay forever (I spose the entire lot should really be moved into the new postholder's account but oh well), whereas if it's a TA then it goes pretty quickly - usually within a few months.

    Accounts are disabled as soon as they leave for both staff and pupils.
    Last edited by localzuk; 7th January 2009 at 10:54 AM. Reason: added account disable details

  6. #6
    Zimmer's Avatar
    Join Date
    Nov 2008
    Location
    Chadderton
    Posts
    116
    Thank Post
    10
    Thanked 10 Times in 10 Posts
    Rep Power
    13
    Staff personal storage space (Home Folder) and email .PST is kept on a spare file server for 6 months after HR have informed us of their last day. After that they get purged and the Active Directory account deleted.

    Student data is kept on tape for 12 months with the regular backup jobs - no additional storage is done.

    We keep all staff and student logon/logoff log files for 12 months.

    With students that have left we also keep the ISA Internet logs for 3 months too, I'd like to keep more but unfortunately storage is starting to get stupidly large!

  7. #7

    Join Date
    Aug 2007
    Location
    Deal, Kent
    Posts
    343
    Thank Post
    12
    Thanked 72 Times in 51 Posts
    Rep Power
    25
    We keep all leaver personal storage areas on a NAS drive, keep the account in AD (Disabled) for 1year, then remove (along with mailbox).

    The data is kept on the backup drive indefinately at current, once space is tight on the NAS we will start cycling it.

    Si

  8. #8

    elsiegee40's Avatar
    Join Date
    Jan 2007
    Location
    Kent
    Posts
    10,070
    Thank Post
    1,681
    Thanked 2,023 Times in 1,496 Posts
    Rep Power
    673
    Accounts disabled immediately. Home drive archived after about 3 months. Entire account disposed of after 12 months with permission from HT.
    Last edited by elsiegee40; 7th January 2009 at 01:47 PM.

  9. #9

    Join Date
    Jun 2008
    Posts
    142
    Thank Post
    19
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Without me starting a new thread (yet! )

    Has anyone got any tips on deleting users and home folders together?

    I inherited a system with a load of inactive users and their home folders / documents.

    On further inspection there seems to be some users without home folders thanks to them not being deleted when there was a migration. Also, some home folders exist that no longer have a user.

    As you can imagine, it's a bit of a mess at the moment and i don't know where to start without doing it manually

    Regards.

  10. #10

    Join Date
    Dec 2008
    Location
    Plymouth
    Posts
    63
    Thank Post
    6
    Thanked 10 Times in 7 Posts
    Rep Power
    13
    On Win32 Scripting.... Everything you need to get up and running you will find a script to delete orphaned home folders, plus a whole lot more!

    That specific script works a treat!

  11. #11
    robk's Avatar
    Join Date
    Nov 2005
    Location
    Ashbourne
    Posts
    657
    Thank Post
    165
    Thanked 124 Times in 103 Posts
    Blog Entries
    1
    Rep Power
    47
    Quote Originally Posted by stu1892 View Post
    Without me starting a new thread (yet! )

    Has anyone got any tips on deleting users and home folders together?

    I inherited a system with a load of inactive users and their home folders / documents.

    On further inspection there seems to be some users without home folders thanks to them not being deleted when there was a migration. Also, some home folders exist that no longer have a user.

    As you can imagine, it's a bit of a mess at the moment and i don't know where to start without doing it manually

    Regards.

    I have a bit of scripting that creates home directories from ou`s and moves old homedirectories if the user does not exist. How are your homedirectories organised?

    Robk

  12. #12
    Zimmer's Avatar
    Join Date
    Nov 2008
    Location
    Chadderton
    Posts
    116
    Thank Post
    10
    Thanked 10 Times in 10 Posts
    Rep Power
    13
    We remove our staff accounts manually, as it is only ever a couple a month or so.

    Due to us having approximately 14000 student accounts in AD at any given time we have no choice but to VB script the account generation and deletion process.

    I can't give you our script as it would require far to much modification to get it to work on another network. But as said by Tamarside you could probably knock up a quick VB script that will plod through AD and clock user accounts, orphan Home Folders can then be processed as you wish.

    ADDED:

    Just because I'm really nice here is a VB script you can use that will find all orphan Home Folders (We call them Z Drives by the way) and delete/move them. It will also compile a .CSV list for you at the same time. Please note that all network locations here are DFS shares but the script will work just as well with UNC paths

    Dim objFSO
    Dim objFolder
    Dim objSub
    Dim intAge

    Set objFSO = CreateObject ("Scripting.FileSystemObject")
    Set objFolder = objFSO.GetFolder ("\\yourdomain.ac.uk\studentusers$")
    Set objtxtfile = obJFSO.CreateTextFile ("orphaned.csv")
    For Each objSub in objFolder.SubFolders
    strUserPath = FindUser (objSub.Name)
    strName = "NO ACCOUNT IN A.D."
    If strUserPath <> "USER NOT FOUND" Then
    Set objUser = GetObject (strUserPath)
    strName = objUser.displayName
    End If

    '::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::
    ':::CReate text file of Orphaned Z drives & Move Z Drive:::
    '::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::
    On Error Resume Next
    If strName = "NO ACCOUNT IN A.D." Then
    If Not objsub.Name = "YDRIVE$" or objsub.Name = "modofficefiles$" Then <--- IGNORE THIS LINE FOR YOUR NETWORK!!!!
    objtxtfile.writeline objSub.Name
    objFSO.CopyFolder ("\\yourdomain.ac.uk\studentusers$\") & objSub.Name, ("\\yourdomain.ac.uk\orphanedZdrives$\")
    objFSO.DeleteFolder ("\\yourdomain.ac.uk\studentusers$\") & objSub.Name, TRUE
    End If
    End If

    Next
    MsgBox "Done"
    WScript.Quit (0)


    Function FindUser(strUser)
    Dim objDomain
    Dim oConnection
    Dim oRecordset
    Dim strQuery

    Set objDomain = GetObject ("LDAP://DC=yourdomain, DC=ac, DC=uk")
    Set oConnection = CreateObject("ADODB.Connection")
    Set oRecordset = CreateObject("ADODB.Recordset")
    oConnection.Provider = "ADsDSOObject"
    oConnection.Open "ADs Provider"

    strQuery = "<" & objDomain.ADsPath & ">;(&(objectClass=user)(samaccountname=" & strUser & "));adspath;subtree"
    Set oRecordset = oConnection.Execute(strQuery)

    if Not oRecordset.EOF Then
    FindUser = Replace (oRecordset.Fields(0).Name & ": " & oRecordset.Fields(0), "adspath: ", "")
    Else
    FindUser = "USER NOT FOUND"
    End If
    End Function
    Last edited by Zimmer; 7th January 2009 at 03:38 PM.

  13. #13
    Pottsey's Avatar
    Join Date
    Apr 2006
    Location
    Nottinghamsire
    Posts
    733
    Thank Post
    3
    Thanked 43 Times in 36 Posts
    Rep Power
    28
    Accounts get disabled a year after they have gone. Sometimes sooner if the username is needed by someone else. So far accounts have never been deleted. All homefolders are stored/archived.

  14. #14

    Join Date
    Jun 2008
    Posts
    142
    Thank Post
    19
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Thanks robk / tamarside.

    i'm new to scripting and i'm struggling to get one working. It just flashes up with a command prompt and instantly closes. This is the script i'm trying to run.

  15. #15
    robk's Avatar
    Join Date
    Nov 2005
    Location
    Ashbourne
    Posts
    657
    Thank Post
    165
    Thanked 124 Times in 103 Posts
    Blog Entries
    1
    Rep Power
    47
    Quote Originally Posted by stu1892 View Post
    Thanks robk / tamarside.

    i'm new to scripting and i'm struggling to get one working. It just flashes up with a command prompt and instantly closes. This is the script i'm trying to run.
    That script seems a bit over complicated, but should work. I am guessing you are double clicking the script? for debuging if you do the following you should be able to see the error message (or other output).

    open a command prompt (start/run/type cmd)
    cd to the directory the script is in
    enter cscript <name of script>

    You should be able to see whats going on.

    Robk

  16. Thanks to robk from:

    stu1892 (7th January 2009)

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Laptops for pupils ans staff use
    By markman in forum General Chat
    Replies: 4
    Last Post: 25th September 2008, 08:07 PM
  2. Setting up remote access to staff user accounts
    By firefox_2006 in forum How do you do....it?
    Replies: 9
    Last Post: 19th May 2008, 12:30 PM
  3. Replies: 11
    Last Post: 7th March 2008, 08:37 AM
  4. Replies: 3
    Last Post: 15th February 2008, 12:58 PM
  5. Replies: 3
    Last Post: 1st August 2007, 10:00 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
  •