Discussion Locked

Unmapping a network drive

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Does anyone know how you can UNMAP a network drive inside of a login script? For example, we have 3 different scripts that run, one general one, one group one and finally an individual user script, processed in that order. This way we customize whatgets mapped for different users.

Our general script maps a couple of drives common to just about everyone. The problem however is that now we are creating a few new users that we want to have a very restricted set of mapped drives and wanted to see if there was any way inside of either the group or user script that we could add a command that would UNMAP a drive that was assigned in the general script.

I appreciate any help that may be offered.

Mark Austin

5 replies

by bill_h

You could use the /DELETE parameter in a NET USE command as follows:

NET USE devicename /DELETE

where devicename = the mapped drive.

Type "NET USE HELP" at a command prompt to view all available options.

Hope this helps...

by tamj123

just add this line to yours logon script:

net use y: /d

notes: (y:) is the network mapped drive

hope this will help

This discussion is closed to new replies.