Thanks a lot Don. That worked fine. However I would like to make absolute certain that when the user logs out all his/her shares are disconnected. I now you can use the "use <drive letter>: /delete" for every single drive letter that I want to map. I just wondered if there are any easier ways of doing this.

To give you an idea along the lines i'm thinking of would be. the command line used in NT. i.e.
net use g: \\pdc\sharename /persistent:No

Many thanks for your help