Hi Allen, Thanks for your reply. I'm working with existing logon scripts and I'm trying to make a process using kix script to capture user's information such as computername ,logon date and etc... and pass it to the batch file and write it to sql server. I found a very easy and fast way to write to sql server using the existing batch file used for logon script.