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
970 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

770 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