at the beginning, my script was written for NT 4.
with your code, i have made changes so that it also works on recent OS.

sure that SMS is not the only application that doesn't appreciate profile removal. it's just an example.
but I mention it because we have the problem. if we delete a profile without deleting the SMS log files,
publications are not posted again to the user and he has no specific application.

i also verify profiles in the registry because sometime, when a user logs on a workstation,
his profile is created with a .000 (or .001, .002, ...).
If I clear properly the profiles directory AND the registry, i have not the problem.
_________________________
Christophe