Disconnect Mapped Drives

G

Guest

Guest
Archived from groups: microsoft.public.win2000.group_policy (More info?)

Is there a policy that can disconnect any mapped drives when the user logs
off or shuts down?

Thanks,
Jasper
 
G

Guest

Guest
Archived from groups: microsoft.public.win2000.group_policy (More info?)

Hi Jasper,

You could add a logoff script to a group policy that removes drives. Here is
a sample that removes a mapped drive letter I:

'##SCRIPT START
Dim oWshNetwork

Set oWshNetwork=CreateObject("WScript.network")

oWshNetwork.RemoveNetworkDrive "i:",True

'##SCRIPT END

Regards

Niclas Lindblom




"Jasper Recto" <jrecto99@yahoo.com> wrote in message
news:u2SgUYDPEHA.2452@TK2MSFTNGP11.phx.gbl...
> Is there a policy that can disconnect any mapped drives when the user logs
> off or shuts down?
>
> Thanks,
> Jasper
>
>