• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 654
  • Last Modified:

Is there a way to empty everyones recycle bin?

I have a Windows 2000 server running Terminal Services and Citrix 1.8a.  I have a lot of space being used by the recycle bin.

The server is out of space.  Is there a way to empty EVERYONES recycle bin without having to log in as each user or without putting something in the login script?

In a multiuser environment like terminal server, when the OS runs out of space, does it empty everyones recycle bin automatically?
0
lpenrod
Asked:
lpenrod
  • 9
  • 5
  • 5
  • +3
1 Solution
 
darrenburkeCommented:
you could hack in the option to delete files immediately so that they never go into the recycle bin.

0
 
lpenrodAuthor Commented:
I am going to do something like that in the future.  I just need to clean up the space now.
0
 
LongbowCommented:
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
GUEENCommented:
Have you considered imaging software?
You could configure these options in an image very easily.

You could have your login script run a batch file something like this:
attrib -s -h %systemdrive%\recycled
attrib -s -h -r %systemdrive%\recycled\*.*
del %systemdrive%\recycled\*.*
attrib +s +h %systemdrive%\recycled
but I know that deletion that way would perhaps be highly frowned upon by MS
0
 
lpenrodAuthor Commented:
Longbow,

I have already tried that tool, but it will only clean for the user that is logged in and not everyone.  The only way to make it work for everyone is to put it in a login script, which I would like to try and avoid.
0
 
GUEENCommented:
Question:
The server is out of space.  Is there a way to empty EVERYONES recycle bin without having to log in
as each user or without putting something in the login script?

No there is not.
0
 
GUEENCommented:
Login script (executing a batch file) or imaging are the only two methods I am aware of.
0
 
dew_associatesCommented:
lpenrod, why aren't you running disk cleanup from disk management?

Dennis
0
 
lpenrodAuthor Commented:
I tried it long before posting a message here, it only cleaned up the recycle bin of the user I was logged in as (one of the administrator accounts).
0
 
GUEENCommented:
Ipenrod - Do you answer 'female' posted questions or do you only answer 'male' posted questions?
0
 
dew_associatesCommented:
Run it from a MMC snapin across all volumes
0
 
lpenrodAuthor Commented:
shekerra:  I am sorry I did not respond to you.  I would like to see if someone knows something you don't (not a jab at females :)

Dew:  I think I tried that, but I will give it a shot.
0
 
lpenrodAuthor Commented:
Dew:

I went into MMC - Disk Management and right-clicked on a drive and chose properties and then Disk Cleanup.  It will only clean up stuff for the person that I am logged in as.

Am I doing something wrong?
0
 
dew_associatesCommented:
I presume that you are logged on as an admin and have rights to span the entire volume or volumes?
0
 
lpenrodAuthor Commented:
Yes.  I did it as administrator, full rights.
0
 
LongbowCommented:
Hi Lpenrod,

Please resume the problem now ?

Here how to use Cleanmgr.exe in a batch.
http://www.jsiinc.com/sube/tip2100/rh2178.htm

Longbow


0
 
lpenrodAuthor Commented:
That pulls 100% CPU for up to 10 mins which is not acceptable on a terminal server.
0
 
GUEENCommented:
What Service packs have you applied?
0
 
lpenrodAuthor Commented:
I have installed SP1.  I want to install SP2, but I have a space problem.
0
 
dew_associatesCommented:
lpenrod, according to a response we received from Microsoft, you can't span disks or volumes to do this from the console. It must be done from the users logon script.

Dennis
0
 
dew_associatesCommented:
lpenrod???
0
 
lpenrodAuthor Commented:
I have come to the conclusion that there is not.
0
 
cscadminCommented:
I realize this topic was closed with "no answer" a long while ago, but in case anyone wants a solution, I use TreeSize to manage disk space. Treesize shows the recycle bins (and the size of each bin) for all Citrix users. You can easily delete the content of all recycle bins or just select the big ones. Especially useful for users no longer here whose profile data we still want to keep (just not the recycle bin stuff).
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 9
  • 5
  • 5
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now