Page 1 of 1 1
Topic Options
#116411 - 2004-03-19 12:45 PM Delete hung profiles from my terminal servers
Curious Offline
Getting the hang of it

Registered: 2004-02-16
Posts: 61
Hey!

I use kix 4.22 and have a problem with users who log on our terminal-servers and log off. Occasionaly their profile doesn't delete. This is a common problem I see on the net, and we'we done quite some things to solve this.Things are better, but the problem occurs now and then. What I was thinking to do, was to use kix to check the server when the user log on their local machine (before terminalserver is launched) and then delete the directory. Then the problem of files being in use is gone - as the user have logged off the day before (probably), and the dir can be deleted.

One of my main problems is that most our comp's use Win-95, and the rd/rmdir/del isn't sufficient, as the profile-directory contains both hidden and system-files.I also thought of using attrib -h -r, but was hoping to find an easier way of doing this (don't know if this will solve it either).Also the kix del command has problems doing what I want. Rd/rmdir for 2000 would have solved this easily, but it isn't a way to run this command on the win-95 comp I suppose.

In addition - can anyone tell me exactely what the '>nul 2>nul' does? Why isn't '> nul' sufficient?

Look forward to good hints and tips. And as I am quite a newbie, plz spell it out to me

Jon
_________________________
I was placed on earth to do a job. Right now I have so much to do, I will never die..

Top
#116412 - 2004-03-19 01:07 PM Re: Delete hung profiles from my terminal servers
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
A far better (and simpler) method if you are not a 24x7 shop is to restart the terminal server(s) overnight and then run a purge to clean up temporary files and profiles.

For example, schedule a restart for 01:00, and housekeeping for 02:00.

You can use DELPROF from the resource kit as part of the auto-housekeeping, but in my experience it misses quite a few profiles so every now and again you will want to have a look in the profiles directory and clean up manually.

Profiles should not ever get left behind unless you have a blue-screen or similar catastrophic failure - in which case you want to run the housekeeping tidy up routines on restart.

Hung users should not stop the profiles being copied back and deleted as this is handled by the system. As soon as you log the hung user off via server manager the system will deal with the profile.

Terminal server runs much more smoothly and stably with regular restarts, and will save you a load of aggravation in the long run.

Top
#116413 - 2004-03-19 01:31 PM Re: Delete hung profiles from my terminal servers
Curious Offline
Getting the hang of it

Registered: 2004-02-16
Posts: 61
Yea, I know that! I forgot to mention that I restart all our term-servers every night, that's why the profile is possible to delete without jerking with processes and registry.

Our local experts has been involved in trying to solve this issue, but they couldn't help us any further. I've used a tool named uphclean - made by a microsoft-engineer, but as I said, still not 100 %.

What is a fact, is that sometimes when a totally new profile is generated, the profile is ok under documents and settings on the respective term-server, but when the user logs off, (takes more than 10-15 secs), this is a symphtom that the system doesn't manage to write the roaming profile back to our fileserver. And this has 100% certain nothing to do with local rights on this server. By the way.. we also use citrix on out term-servers. And you know.. we can't always be there to log off a hung user through server manager as the user's are way to inpatient to wait for our help. But this is correct, this "fixes" most issues for this user. What I want to do, is fix the other problems, regardless of what caused it - as long as the profile is still hung.

The delprof-tool I have noticed, and was thinking of using this, but as you said yourself, it doesn't seem 100% reliable.

What do you propose to use as household-tools? Besides the delprof-tool?

Jon
_________________________
I was placed on earth to do a job. Right now I have so much to do, I will never die..

Top
#116414 - 2004-03-19 01:56 PM Re: Delete hung profiles from my terminal servers
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
You must fix your roaming profile problem.

If you cannot write your roaming profile back to your file servers then you have a major problem, and you need to deal with that first.

Use NT policies and make sure that you disable the "slow network" option so that your users cannot opt to use a local profile if the file server is busy - it is probably local profiles that are causing the problems.

Also set policies so that things like Temporary Internet file, temp files, JAR caches and so-on are not copied around with the roaing profile. Disable things like the briefcase on the desktop, and lock the desktop down so that numpty users don't drop large files onto it.

I try to ensure that roaming profiles are no larger than 3MB. Every now and again someone will find a way around the controls and complain that logging on takes ages - on investigation you find that they've managed to bloat their roaming profile to 50MB.

I find that delprof is fine most of the time, but about once a month we'll do a manual purge of old profiles in \WTSRV\Profiles - make sure you don't remove "All Users" and "Default User" though!

Top
#116415 - 2004-03-19 02:28 PM Re: Delete hung profiles from my terminal servers
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Here is something that we use with two Citrix boxes that are a little elderly and do not have enough space..
Re- Help with folder cleanup

What we do is look for profiles that are over two days old and remove these.

We have been using it about two weeks now and is working great..

Just uncomment out the line to RD /S /Q.. You should then be off and rolling. If you have a "Documents and Settings", you will need to change to that folder as well.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.179 seconds in which 0.116 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org