You need to look into/modify the following..
Code:

IF $profile_remove='YES'
$index=0
$keyname=EnumKey($profilelocation,$index)
WHILE @error=0
IF $keyname<>@userid $rc=DelTree($profilelocation+'\'+$keyname)
ENDIF
$index=$index+1
$keyname=EnumKey($profilelocation,$index)
LOOP
ENDIF


That is, you need to remove the offending profile and re-generate it, correct?

Also, I have some simplified code to do alot of this. I will try to remember to post it when I get into work. I have been pretty slammed lately with an imaging rollout project.

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