I am going to change the net use and replace as you have suggested and see.
The script is run from the network by using a batch file to look for the kix32.exe the line in the batch file are: \\serverY\NETLOGON\KixScript\Kix32.exe \\ServerY\NETLOGON\KixScript\Sami.kix.
------------------------------------------