Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

content.ie5 cleaning script?

  • 07-06-2005 12:34pm
    #1
    Registered Users, Registered Users 2 Posts: 1,775 ✭✭✭


    I have many PCs throughout my network that have multiple users logging into them. Therefore I have MANY profiles under documents and settings. I have so many that I am now seeing 40Gb hard drives getting eaten up with temporary internet files. In particular I would like to delete the following folder: c:\documents and settings\%username%\local settings\temporary internet folders\content.ie5. What I would like to have is a simple script that I could run on the hard drive that would delete the folder named "content.ie5" from each profile. I have admin rights but don't want to spend the time going through 80 or 90 profiles manually. I will create a GPO that will set the temporary internet files to delete upon exist (from Explorer) but that won't help with those who don't log onto a particular machine again.


Comments

  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 93,583 Mod ✭✭✭✭Capt'n Midnight


    oddly enough I did one earlier today for TEMP - will post later..

    Not tidied up - but once debugged should be runable using psexec on remote PC's but you'd have to sort out the user.dump bit too.
    CD %userprofile%
    cd ..
    dir /B>Dirlst
    
    for /F "tokens=*" %%i in (dirlst) do del /S /Q /F "%%i\Local Settings\Temp"
    for /F "tokens=*" %%i in (dirlst) do del /S /Q /F "%%i\Local Settings\Temporary Internet Files"
    
    :manual removal of other junk 
    Del /S /P user.dmp
    


  • Registered Users, Registered Users 2 Posts: 1,775 ✭✭✭Spacedog


    I was thinking something along the lines of a script I could run on the server that will delete the temp stuff, like:

    deltree /Y c:\documents and settings\*\local settings\Temporary Internet Files\content.IE5/*

    cmd doesn't allow wildcards in the middle of the string though :(

    looking on the net for a script, I'd have thouht it'd be a fairly common problem


  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 93,583 Mod ✭✭✭✭Capt'n Midnight


    Deltree only works on win9X - which doesn't have user profiles unless you like inflicting pain on yourself.

    Which version of windows - and have you looked at the script above ???


  • Registered Users, Registered Users 2 Posts: 1,775 ✭✭✭Spacedog


    I have now, silly me, I only read the beginning of it before, using win2K so that script looks good, I'll give it a go, thanks captn' :)


Advertisement