Hello Glenn,

really appreciate your help and the time you spent, analyzing my problem!

With your suggestions I was able to refine my code and now, whenever a drive does not get mapped for whatever reason, I will see a clear and understandable error message.

I yet did not had the time to fully test my script in an production environment, but I am sure your additions will help a lot to speed up debugging in the future.

thanks again
regards
Martin