Could be a lot of issues, you've not provided near enough information for us to help you much though.

What version of KiXtart?
What Network NT/AD?
What clients 9x/NT/WK2/XP/Vista?
Does KiX run from NETLOGON or from local system?

I would highly recommend against using the GOSUB as there are much better coding styles to replace it.

If the code is not too big please post the full script here so that we can assist you with it. You can remove any proprietary information before posting. Make sure you use the CODE TAGS when posting to keep the formatting of the script though.