Thanks sealeopard. Can someone explain why I'm not having any luck removing an existing mapped drive via my script?

I have switched servers and am trying to remap the users mapped drive(Drive K) to the new server. The Use K: /Del or /DELETE does not remove their presently mapped drive so the Use K: "\\server\folder" does not work. It works fine as long as they don't have a K drive mapped.

Thanks.