Disconnect Mapped Drives

  • Thread starter Thread starter Jasper Recto
  • Start date Start date
J

Jasper Recto

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

Thanks,
Jasper
 
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
 
Back
Top