How can I identify what users have printers mapped from a particular print server?

Posted on 2012-08-24
Last Modified: 2012-08-27
I think the title says it all...
We are retiring an old print server.  Have changed login scripts to map printers to the new print server but if anybody had manually mapped a printer that is not normally covered by the script then this mapping will no longer work.  Is there a way to determine if anybody still has printers mapped to the old server?
Question by:RickCurtis
    LVL 1

    Expert Comment

    LVL 1

    Expert Comment

    Or you can use this code below

    Option Explicit 
    Dim objNetwork1, strUNCPrinter1 
    strUNCPrinter1 = "\\my-print\my-printer2" 
    Set objNetwork1 = CreateObject("WScript.Network" ) 
    objNetwork1.RemovePrinterConnection strUNCPrinter1 
    'Deletes second printer 

    Open in new window

    LVL 13

    Accepted Solution

    I would suggest using con2prt.exe, which quickly remove all old, non-existent printers from users profile.


    Author Closing Comment

    While this solution gets me to where I does not actually answer my original question.  I wanted to create a list of user accounts *before* actually doing anything.  All responses jumped straight to the "action item" of deleting connections.  Still Con2PRT is a useful utility!  Thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Trying to figure out group policy inheritance and which settings apply where can be a chore.  Here's a very simple summary I've written which might help.  Keep in mind, this is just a high-level conceptual overview where I try to avoid getting bogge…
    I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    779 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