It works perfectly more often than not. Even so, you can find conditions wherever this even now fails with 'ret = 5' ("Access Denied"). Retrying infinitely would not enable. I have no idea why It is really unreliable, but I have the sensation that Windows Explorer is attempting by itself to log in concurrently, using a Erroneous username/password (