Solved

Is there a way to empty everyones recycle bin?

Posted on 2001-08-20
23
588 Views
Last Modified: 2010-04-13
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
Comment
Question by:lpenrod
  • 9
  • 5
  • 5
  • +3
23 Comments
 
LVL 4

Expert Comment

by:darrenburke
Comment Utility
you could hack in the option to delete files immediately so that they never go into the recycle bin.

0
 
LVL 3

Author Comment

by:lpenrod
Comment Utility
I am going to do something like that in the future.  I just need to clean up the space now.
0
 
LVL 10

Expert Comment

by:Longbow
Comment Utility
0
 
LVL 16

Expert Comment

by:GUEEN
Comment Utility
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
 
LVL 3

Author Comment

by:lpenrod
Comment Utility
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
 
LVL 16

Accepted Solution

by:
GUEEN earned 100 total points
Comment Utility
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
 
LVL 16

Expert Comment

by:GUEEN
Comment Utility
Login script (executing a batch file) or imaging are the only two methods I am aware of.
0
 
LVL 25

Expert Comment

by:dew_associates
Comment Utility
lpenrod, why aren't you running disk cleanup from disk management?

Dennis
0
 
LVL 3

Author Comment

by:lpenrod
Comment Utility
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
 
LVL 16

Expert Comment

by:GUEEN
Comment Utility
Ipenrod - Do you answer 'female' posted questions or do you only answer 'male' posted questions?
0
 
LVL 25

Expert Comment

by:dew_associates
Comment Utility
Run it from a MMC snapin across all volumes
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 3

Author Comment

by:lpenrod
Comment Utility
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
 
LVL 3

Author Comment

by:lpenrod
Comment Utility
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
 
LVL 25

Expert Comment

by:dew_associates
Comment Utility
I presume that you are logged on as an admin and have rights to span the entire volume or volumes?
0
 
LVL 3

Author Comment

by:lpenrod
Comment Utility
Yes.  I did it as administrator, full rights.
0
 
LVL 10

Expert Comment

by:Longbow
Comment Utility
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
 
LVL 3

Author Comment

by:lpenrod
Comment Utility
That pulls 100% CPU for up to 10 mins which is not acceptable on a terminal server.
0
 
LVL 16

Expert Comment

by:GUEEN
Comment Utility
What Service packs have you applied?
0
 
LVL 3

Author Comment

by:lpenrod
Comment Utility
I have installed SP1.  I want to install SP2, but I have a space problem.
0
 
LVL 25

Expert Comment

by:dew_associates
Comment Utility
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
 
LVL 25

Expert Comment

by:dew_associates
Comment Utility
lpenrod???
0
 
LVL 3

Author Comment

by:lpenrod
Comment Utility
I have come to the conclusion that there is not.
0
 

Expert Comment

by:cscadmin
Comment Utility
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

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now