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

Find deleted shared printer name in Server 2003

I recently installed a server with a name and IP address of an old server that is being EOLed due to it being old hardware. The old server was sharing a printer that close to 100 people used. It was deleted before I could get the share name of it so I could use that same name on the new server and not have people need to delete their printer and re-add it. Is there a way to check that in the registry under old control sets?
0
kirk_lesser
Asked:
kirk_lesser
  • 2
  • 2
1 Solution
 
dfxdeimosCommented:
Couldn't you just look at the properties of the printer that people have installed on their workstations?
0
 
ComputerTechieCommented:
I would use a vbs in the login script.
http://www.winguides.com/scripting/reference.php?id=132

ie

public function checkprinter(n)
Set WshNetwork = WScript.CreateObject("WScript.Network")
Set Printers = WshNetwork.EnumPrinterConnections

For i = 0 to Printers.Count - 1 Step 2
if (n = Printers.Item(i+1)) then
     checkprinter = true
     exit for
end if
Next
end function

Set WshNetwork = WScript.CreateObject("WScript.Network")
if (checkprinter("\\server\printer1")) then WshNetwork.RemovePrinterConnection "\\server\printer1"
if (checkprinter("\\server\printer2")) then WshNetwork.RemovePrinterConnection "\\server\printer2"
0
 
kirk_lesserAuthor Commented:
For the first question, no, as it cannot find the shared printer to bring up the properties. For the second, this seems to remove printers?
0
 
dfxdeimosCommented:
Check:

HKEY_LOCAL_MACHINE\SYSTEM\CURRENTCONTROLSET\SERVICES\LANMANSERVER \SHARES

on the old server to see if it has the old share name. If not, I am afraid I cannot help you. =[
0
 
kirk_lesserAuthor Commented:
That was it. I actually went to one of the older ControlSets and found it there. Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

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