Everyone thanks for the help with all of the posts...

Lonkero,

While your change does fix the problem I was having with the script hanging. It seems to have disabled the part where the script changes the registry to relabel the network drives. This was the key reason I was using this function. Also when is XP supposed to be added? If you are not the right person to be asking forgive me, and please direct me to them.