Jaan Posted June 30, 2021 Posted June 30, 2021 (edited) Not sure if this is in the right area. Had a support call today.... along the lines of "Hi i can't download or save anything to my area, says disk full. I have removed any files i no longer need and deleted files from my downloads folder. Can you help please? I first thought was wow! a full description of the issue and a please! Anyway i half expect the user to have misplaced a ripped divx movie they had put in their desktop folder.... File server resources report 99% quota usage. Whilst wild card searching their area all looked fine. When i unhid folders i discovered some "recycle bin" icons that were huge (equal to their 5gb quota). We don't have a recycle bin presented to the users as we have local profiles with folder redirection. If you delete it.... its gone (#backups shadow copies, different issue) My questions are why do i have these folders on my server, they must have come from redirected folders and how do i ensure they are either deleted or emptied. I must have missed something when i setup the redirections. cheers Here's a pic, Edited June 30, 2021 by Jaan
StephenPink Posted June 30, 2021 Posted June 30, 2021 You know I spotted this a few years ago, and never quite managed to figure out the cause - but also decided it was a nice feature to have (in case someone has deleted something accidentally, and previous versions didn't catch it). However when space is low, I wrote a little Powershell to iterate through and remove them. Tried posting it but couldn't get it to keep the carriage returns/new lines so looked horrendous, but happy to share if interested. Cheers, Stephen 1
Koldov Posted June 30, 2021 Posted June 30, 2021 @Jaan There are some old posts on here that might help... one has this code... YMMV, UAYOR $studirs = gci d:\Students\ -Recurse -Directory -Attributes h -Filter `$RECYCLE.BIN foreach ($stu in $studirs ) { $dir = $stu.FullName echo $dir $colItems = (Get-ChildItem $dir -recurse | Measure-Object -property length -sum) "{0:N2}" -f ($colItems.sum / 1MB) + " MB" $total += $colItems.Sum Remove-Item $dir -Recurse -Force } $totaldel = "{0:N2}" -f ($total / 1gb) echo "Total Deleted $totaldel GB" http://www.edugeek.net/forums/windows-server-2016/189227-recycle-bin-users-areas.html#post1618639 http://www.edugeek.net/forums/windows-7/89932-students-getting-hidden-recycle-bin-their-user-area.html 2
Koldov Posted June 30, 2021 Posted June 30, 2021 I also regularly look for and delete office temp files such as '$lesson plan Year6.docx' But only in the holidays just in case... and it's only bytes per file but I'm sure it adds up eventually unless there's another way they get cleared out... dir /ah /s E:\~*.* E:\ is our staff drive share. 1
synaesthesia Posted June 30, 2021 Posted June 30, 2021 Have done the above very recently but limited to files created prior to 1 month ago - ~ prefixes quite a few autorecovery documents which have often got people out of a tight spot with our help! Certainly worth doing - I think my method was searching on ~$*.* or something.
Warwick_Tech Posted July 30, 2021 Posted July 30, 2021 Adding a useful CMD prompt I found for deleting Temp files and Thumbs.db pushd "d:\mydir" & del /f /s /a /q desktop.ini thumbs.db ~$* & popd D:\mydir being your home areas
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now