• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 276
  • Last Modified:

Easiest way to disconnect mapped network drives on user PCs

Hi all :)

I am upgrading/migrating some of our windows servers from 2003 to 2012.

I am currently doing our main file server that most users have three mapped drives to: S:  H: G:

Obviously I will update the login scripts to point these drives to the new server when I am ready but what is the easiest way to first make sure the existing mappings are disconnected on all the users PCs?

2 Solutions
John HurstBusiness Consultant (Owner)Commented:
In your script or in your GPO, have a line before mapping a folder that says NET USE X: /Delete where X is the drive you are going to map. This seems to work well.
in your login scripts simply disconnect those drives if the already exist:

 net use x: /delete
Then map them
tracyprierAuthor Commented:
...just like that :) thanks guys
You can disconnect then connect your network drives with:

net use s: /delete
net use h: /delete
net use g: /delete

net use s: \\server\fileshare
net use h: \\server\fileshare
net use g: \\server\fileshare

Open in new window


Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now