• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1406
  • 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

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

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