Each "IF" requires an "ENDIF". You are missing a "ENDIF". Also have you installed the KXRPC service on your domain controller? Simply placing the kxrpc.exe in NETLOGON is not sufficient. See the manual.
_________________________
Home page: http://www.kixhelp.com/hb/