Here is another way without using a loop to check if a user is a member of a group.
Also I included my map function with an example to check to see if the drive mapped or not plus a option to remove an existing drive mapping before mapping a new drive...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.