Hi John,

First, what errors are you having? Second, a few comments and questions.

1. You define $domsvr and $appsvr, but never use them.
2. In my experience users don't pay attention to login screens. So, other than saying, "Please wait," I wouldn't bother.
3. You use the same drive letters over and over. I assume a person can only be in one of these groups? If so, you'd be better off using a select statement. With the IFs, the script has to test each one. With a Select, it just tests until it finds one that matches (so put the most often hit one first, etc).
4. You don't need to put INGROUP("something")=1, just INGROUP("something") will work.
5. Add some error checking after each mapping. Write the errors to a log rather than the screen.

Let us know what errors you are seeing.

Regards,

Brad