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
959 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)
ID: 39634634
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
ID: 39634643
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
ID: 39634658
Thx for the quick response. That did the trick.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
Resolve DNS query failed errors for Exchange
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 give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

867 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

18 Experts available now in Live!

Get 1:1 Help Now