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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top