ok it comes up with the error message.

error : missing endfunction for [writelog2]!
script \\*.local\netlogon\agtbslogon.kix