if your script is getting larger, you would do good if you considered adding some logging in to it, just a simple:
 Code:
 run "%comspec% /c echo doing office registry mod %time% >> %temp%\logon.log"


would suffice.
add those lines after the parts and examine the log to see where it is taking the long time to execute.
do remember to start your script with something like "echo logon start >" (instead of >>) so the log won't keep on accumulating in size.
_________________________
!

download KiXnet