I have been looking for a code sample or discussion on how to disconnect a network printer IE \\servername\printer from a local PC and also a network share or mapped drive. So that when the application is run and it looks for currently mapped drives and printers and a user can disconnect them in the application and then have the app remap them as appropriate rather then going to the Windows interface and doing it. This is VB.net using Visual Studio 2005 Pro.