+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
Windows Thread, Emptying Pupil User Areas in Technical; Hi all, My boss (network manager), has got the crazy idea of emptying student areas for years 7-9 at the ...
  1. #1

    Join Date
    Sep 2005
    Posts
    153
    Thank Post
    1
    Thanked 4 Times in 4 Posts
    Rep Power
    18

    Emptying Pupil User Areas

    Hi all,

    My boss (network manager), has got the crazy idea of emptying student areas for years 7-9 at the end of the year, because the work is not needed for the following year, and should be handed in/in student card folders. This is also to get rid of games, and to save disk space on the servers (fair enough).

    However I have 600+ students to do, and don't want to delete everything from their areas, just work, pictures, office documents etc. since they have favourites redirected to their home areas. I also don't want to have to setup the shares again, using a script or otherwise.

    I had thought of using some sort of DEL script, with a list of possible file extensions to include:
    *.doc
    *.xls
    *.fla
    *.swf
    *.jpg
    *.bmp
    *.gif
    *.png
    etc etc etc

    Has anyone heard of or used a tool, which has extended delete properties over the built in delete command line function?

    Regards
    Mark

  2. #2
    sharkster's Avatar
    Join Date
    Nov 2007
    Location
    Middlesbrough
    Posts
    149
    Thank Post
    23
    Thanked 26 Times in 21 Posts
    Rep Power
    18
    cant you just log on to the server with the kids work. search for "files and folders" in the area that the kids save their work. and then just look for the extention you want.
    it will load each file then just select all and delete.
    i know its not a script and will take a bit of time for the machine to search over 600+ folders but its one way, shouldn't be that long also

  3. #3
    joe90bass's Avatar
    Join Date
    Oct 2007
    Location
    S Wales
    Posts
    1,349
    Thank Post
    322
    Thanked 107 Times in 96 Posts
    Rep Power
    50
    Before deleting anything I would be inclined to check with staff that the work is definitely not needed! There are some cases where courses start in year 9, and portfolis are built up over years of work!!

    If you have quotas set on their home directories then space shouldn't be an issue.

  4. #4
    DSapseid's Avatar
    Join Date
    Feb 2007
    Location
    West Sussex
    Posts
    1,152
    Thank Post
    130
    Thanked 54 Times in 47 Posts
    Rep Power
    37
    Im not sure if it scans for those docs but what about edusweep EduSweep

  5. #5


    Join Date
    Oct 2006
    Posts
    3,409
    Thank Post
    184
    Thanked 356 Times in 285 Posts
    Rep Power
    148
    Ignore, wont work
    Last edited by j17sparky; 3rd July 2008 at 08:44 AM.

  6. #6
    Unvalidated User
    Join Date
    Nov 2007
    Location
    the Pub
    Posts
    255
    Thank Post
    7
    Thanked 11 Times in 10 Posts
    Rep Power
    0
    id either do a search and get the relevant teacher to confirm all is ok to delete (but move them somewhere in case )
    Get the teachers to announce to the class to delete any old work (although I know they just want it done without any work on their behalf lol).

    Like said as long as you got quotas setup they cant exceed any space arrangment and as soon as pupils/staff complain tell them to delete work they dont use anymore.

    I always go through a few checks with a pupil to make sure they have tryed to delete mp3,old work etc. before I give them a space increase. This also make them aware of how it works.

    You could also sort any work lists out by last access/mod times etc. but above it safer IMO.

  7. #7
    zag
    zag is offline
    zag's Avatar
    Join Date
    Mar 2007
    Posts
    3,732
    Thank Post
    892
    Thanked 414 Times in 348 Posts
    Blog Entries
    12
    Rep Power
    85
    Yeh I would go the manual way and get the ICT teacher at the last/first lesson to ask all kids to manually clean their user areas. This will show up any files that they need to keep and move the responsibility away from you

    It should only take a class 5 minutes to clean their user areas themselves. I think its a good idea btw.

  8. #8

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,154
    Thank Post
    114
    Thanked 527 Times in 450 Posts
    Blog Entries
    2
    Rep Power
    123
    Assuming the top level folder for home drives is d:\home then you can do:

    del d:\home\*.doc /s /q
    del d:\home\*.xls /s /q

    etc

    I think I'd definitely want an archive of this before you start - just in case!

    I've got an idea that this won't find hidden files so you might want to do:

    attrib -r -h -s d:\*.doc /s
    attrib -r -h -s d:\*.doc /s

    etc first just to clear the hidden, system etc flags

  9. #9
    Sirbendy's Avatar
    Join Date
    Nov 2005
    Posts
    2,298
    Thank Post
    8
    Thanked 202 Times in 153 Posts
    Rep Power
    109
    script to kill off media files, .tmps, URLs, SWFs etc etc, the rest off to a USB hard disk or DVD media for archive..my suggestion.

    Its what we do. We get the LEA to dump the accounts off the server onto a seperate "archive" drive, and keep for 2-3 years. Winzip is your friend there as well.

    Out and out removal has bitten us in the bum before..

  10. #10

    Join Date
    Sep 2005
    Posts
    153
    Thank Post
    1
    Thanked 4 Times in 4 Posts
    Rep Power
    18
    Forgot to mention that I will be backing them all up first onto DVD!

    Yes, good point about other courses/subjects, needs to be checked first.

    Regards
    Mark

  11. #11


    Join Date
    Oct 2006
    Posts
    3,409
    Thank Post
    184
    Thanked 356 Times in 285 Posts
    Rep Power
    148
    Forgot to mention the reason why my script wouldnt work, and one which people seem to be forgetting is that you need to differantiate between what is last years work and what is new.

    Best way imo is to get the teachers to get the kids to delete everything they dont need

  12. #12

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,236
    Thank Post
    1,057
    Thanked 1,067 Times in 624 Posts
    Rep Power
    740
    You could use Agent Ransack from the Admin Bar and do a search on the said file types, when it's finished searching, just highlight the files and delete them....

    I do this a few times a term for .tmp files etc

    Or - [ as posted yesterday ]
    Use this AutoIT script - get the pupils to create a folder called 'keep me' or knock up a quick batch file which will do it automatically - get them to copy over any work they want to keep in that folder. Then at the end of term run this script - it will delete all files apart from any that are in the keep me folder.

    Code:
    $search = FileFindFirstFile("*.*")
    ; Check if the search was successful
    If $search = -1 Then
        MsgBox(0, "Error", "No files/directories matched the search pattern")
        Exit
    EndIf
    
    While 1
        $file = FileFindNextFile($search)
        If @error <> 0 Then ExitLoop
        If $file = "keep me" Then ContinueLoop
        If $file = "." Or $file = ".." Then ContinueLoop
        If StringInStr(FileGetAttrib(@SCRIPTDIR & "\" & $file) , "D") Then
            DirRemove($file, 1)
        Else
            FileDelete(@SCRIPTDIR & "\" & $file)
        EndIf
    WEnd
    FileClose($search)
    Let me know if you want it compiled into an .exe
    Last edited by mattx; 3rd July 2008 at 10:06 AM.

  13. #13


    Join Date
    Sep 2007
    Location
    UK
    Posts
    5,325
    Thank Post
    1,380
    Thanked 849 Times in 542 Posts
    Rep Power
    639
    I repeatedly ask staff to get their kids to delete their unwanted work and it just never happens. So I emailed the staff to say I was having a cleanout and to let me know what they wanted keeping. "Everything!" was the answer so for the last three years I have been copying "Everything" to dvd and then deleting it from the server. I told the staff that if they needed anything restoring just call me and I would do it straight away. In three years I haven't been asked once.

  14. #14
    andyrodger50's Avatar
    Join Date
    Mar 2007
    Location
    Kings Lynn, Norfolk
    Posts
    37
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    16
    This seems a little excessive to delete games and just save space.

    We run a simple delete script on user logon which removes *.mp3, *.exe, *.tmp etc. And of course we have disk quotas in place also.

    I feel sorry for you, as deleting everything is going to cost you no end of work. Just imagine having to restore all those files from however many DVDs you will end up with with them backed up on. Because you know theres going to be loads of people approaching you saying "oh but i need that file from last year and I can't find it".

  15. #15
    bizzel's Avatar
    Join Date
    Jul 2007
    Location
    Cambridge
    Posts
    654
    Thank Post
    102
    Thanked 204 Times in 72 Posts
    Rep Power
    51
    You can use Edusweep for this. It's not by design but it'd be safe to do. Version 2 will have custom lists but for now, you can try the following:

    • Grab the software
    • Update the definitions
    • Browse to the 'definitions' folder
    • Open scripts.def in notepad (ignore custom.def)
    • Replace the filetypes there with the ones you want to scan for
    • In Edusweep, run a scan with only the scripts definitions active and the scan type set to immediately delete.

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

Similar Threads

  1. DPA +User Areas
    By Dos_Box in forum School ICT Policies
    Replies: 43
    Last Post: 5th December 2007, 11:54 AM
  2. User areas + User share permissions.
    By Dos_Box in forum Windows
    Replies: 6
    Last Post: 11th September 2007, 11:17 AM
  3. Moving user areas (RM CC3)
    By CheeseDog in forum Wireless Networks
    Replies: 11
    Last Post: 18th September 2006, 10:42 AM
  4. User Areas - Shares!?!
    By wesleyw in forum How do you do....it?
    Replies: 7
    Last Post: 23rd August 2006, 01:07 PM
  5. User Network Areas and Profiles
    By wesleyw in forum Windows
    Replies: 7
    Last Post: 21st June 2006, 12:40 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
  •