Thx for all the advice, but still i am having trouble to get this to work, the creation of the regestry key is succesfull but i cannot get the copying of files to work.
here is my KiX script, any sugestions ??

code:
 IF INGROUP ("sintas") <> 0
$sDatabaseSource="\\FS1\Profiles$\groups\sintas\data\"
$sDatabaseDestination="\\fs1\randers-reb$\userdata\"+@USERID+"\applikation data\addon\"
If Not Exist($sDatabaseDestination)
Copy $DatabaseSource $sDarabaseDestination /s
$sintasreg = "HKCU\Software\Add-On Products\exchange central\paths"
IF KEYEXIST ($sintasreg) = 0
ADDKEY ($sintasreg)
ENDIF
IF (WriteValue($sintasreg,"DefaultDatabase","\\fs1\randers-reb$\userdata\"+@USERID+"\applikation data\addon\","REG_SZ") <> 0 )
? "Warning KIX: Error status @error (@serror)"
ENDIF
ENDIF
ENDIF

_________________________
One by one the Pinguins came and took my sanity away.