Find deleted shared printer name in Server 2003

Posted on 2009-04-15
Last Modified: 2012-05-06
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?
Question by:kirk_lesser
    LVL 15

    Expert Comment

    Couldn't you just look at the properties of the printer that people have installed on their workstations?
    LVL 23

    Expert Comment

    I would use a vbs in the login script.


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

    Author Comment

    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?
    LVL 15

    Accepted Solution



    on the old server to see if it has the old share name. If not, I am afraid I cannot help you. =[

    Author Closing Comment

    That was it. I actually went to one of the older ControlSets and found it there. Thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Wish Marketing would stop bothering you?

    Is your marketing department constantly asking for new email signature updates? Are they requesting a different design for every department? Do they need yet another banner added? Don’t let it get you down! There is an easy way to manage all of these requests...

    Some time ago I faced the need to use a uniform folder structure that spanned across numerous sites of an enterprise to be used as a common repository for the Software packages of the Configuration Manager 2007 infrastructure. Because the procedu…
    Remote Apps is a feature in server 2008 which allows users to run applications off Remote Desktop Servers without having to log into them to run the applications.  The user can either have a desktop shortcut installed or go through the web portal to…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now