Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4755
  • Last Modified:

how to delete orphaned print shares

2003 SP1 running terminal services - around 50 users on-line.
recently installed laserjet 4240n - qty 13
worked fine for a few weeks
just updated driver from PC5 to PC6
came in and these 13 printers were 'gone'

now seem to have orphaned printer shares for these 13 printers
try to delete the shares with following:

Net Share xxx /DELETE  
System error 1801 has occurred.

The printer name is invalid.

The printer was defined, became 'orphaned' (not sure how) but now I can go back and define but when I go to share using orig "xxx" shared named it gives:

Share name already exists.

It does work with diff shared name but applications are semi hard coded to orig share name.  And, I don't want to have a bunch of obsolete shares left.

QUESTION:  how do I delete orphaned print shares?  Is it done in active directory or on the server?

Note - I have toggled the Print spooler on the server.  This is a production terminal server so I can't just reboot during the day.
0
alpertgrp
Asked:
alpertgrp
  • 3
  • 2
1 Solution
 
aissimCommented:
Check this registry key:
HKLM \ System \ CurrentControlSet \ Services \ lanmanserver \ Shares

You may be able to delete the orphaned printers from there.
0
 
alpertgrpAuthor Commented:
if I delete from there will it update active directory?
0
 
aissimCommented:
I would delete them there first. If they don't remove themselves from AD (which they should) then you can use something like ADSIEDIT.msc to remove them manually from AD.

Using ADSIEDIT.msc you'd navigate to Domain -> DC=<yourdomain>,DC=com -> drill down to the OU that contains your print server -> when you click on the server in the left pane, the printer shares should show in the resultant window on the right.
0
 
alpertgrpAuthor Commented:
Restart of "Server" service and "Print Spooler" seems to have deleted the old Share Names - however, since I had to get these printers up/running ASAP I did re-install using new name and new Share name.  I'm going to watch over the next few days to make sure we are stable the go back and delete the 'old' / 'obsolete' / 'orphaned' entries.
0
 
aissimCommented:
Good deal - thanks for the update.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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