You are missing a final ENDIF..

quote:

Warning KIXSTRIP: 1 error in block structure. missing statement(s).
- do:until [0:0]
- for|each:in|to:step|next [0|0:0|0:0|0]
- function:endfunction [0:0]
-ERROR- - if:else:endif [4:2:3]
- select:case:endselect [0:0:0]
- while:loop [0:0]
4 block_structures found.
Informative KIXSTRIP: no UDF's found.
Warning KIXSTRIP: some lines contains errors or possible errors.

This is confusing.. Are you meaning to say that there is no desktop?

IF 0=Exist($destkop)

Again, this really needs to be a GPO and Jens is right in the Registry Key containing "Policies" is a red-flag to this.

HTH,

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