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

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

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
Created
Asked:
Created
1 Solution
 
Hypercat (Deb)Commented:
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
 
RaithZCommented:
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
 
CreatedAuthor Commented:
Thx for the quick response. That did the trick.
0

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

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