Hi Glenn:

Thanks for responding. The function is:

$dc=setDrive("H:","\\servername\Users\%USERNAME%","User Folder",0)

The 0 on the end maps the drive. If you use a 1 in it's place it will disconnect what was previously mapped and remap accordingly.

My main goal is to have a function for removing a drive. Say for instance I no longer want L to be mapped, how do I get rid of it?

Thanks!

Mary