Brilliant! This solved the problem for me that I've been struggling with! When I changed the registry value, code that had just not worked, began working. I'll either fix the registry on the other systems that were plagued by this or use the code to set the env variable to remedy this. Thanks a ton.