Hello all,

Im setting up a script that will map drives if a user is in a particualar Domain group and disconnect drives if they are not. That sounds fairly straight forward but I have run into a bit of a problem...

I want to check that the drive is mapped to what Im expecting before I disconnected.

My question is, can I check the servername and share of a mapped network drive and if so, how?

Thanks,
Terry.