Solved

On a Windows 2008r2 server, how can I remove ghost drive mappings that were left behind from a drive that was externally attached?

Posted on 2013-11-08
3
949 Views
Last Modified: 2013-11-08
On my Windows 7 machine I go into Windows Explorer\Network
I get a list of computers.

I click on the Windows 2008r2 Server, then I see a list of its shared drive mappings.

Some of the drive mappings are live and still available and some are ghost drive mappings that no longer exist. The ghost drive mappings were previously being shared by the Windows 2008r2 Server, but the drives have been removed but the mappings still show up.
0
Comment
Question by:Created
3 Comments
 
LVL 38

Expert Comment

by:Hypercat (Deb)
Comment Utility
You need to remove the drive mappings on the server through the management console. Using the traditional Computer Management console, you'd open up Shared Folders/Shares and then delete the ones pointing to resources that no longer exist.
0
 
LVL 6

Accepted Solution

by:
RaithZ earned 500 total points
Comment Utility
You should be able to use the net share command to see the list of shares, and then use it to delete a share that goes to a path that doesn't exist anymore.  

Command Syntax:
The syntax of this command is:

NET SHARE
sharename
          sharename=drive:path [/GRANT:user,[READ | CHANGE | FULL]]
                               [/USERS:number | /UNLIMITED]
                               [/REMARK:"text"]
                               [/CACHE:Manual | Documents| Programs | BranchCach
e | None]
          sharename [/USERS:number | /UNLIMITED]
                    [/REMARK:"text"]
                    [/CACHE:Manual | Documents | Programs | BranchCache | None]
          {sharename | devicename | drive:path} /DELETE
          sharename \\computername /DELETE

Open in new window


So the command would be something like this:

net share \\paththat\doesntexist /delete
0
 

Author Closing Comment

by:Created
Comment Utility
Thx for the quick response. That did the trick.
0

Featured Post

New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

Join & Write a Comment

I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now