Remove a network printer using vbscript

Posted on 2005-04-12
Last Modified: 2012-08-14

I have a vbscript login script that adds windows printers from a Windows 2003 print server using the "WSHNetwork.AddWindowsPrinterConnection" command.  I was just wondering if there is a similar command that can be used to remove a network printer.  i tried "WSHNetwork.DeleteWindowsPrinterConnection" and "WSHNetwork.RemoveWindowsPrinterConnection" but neither of them seemed to work.  I'm a total vbscript n00b so i apologize if this question is lame.  Thanks in advance for the help!

Question by:uucutech
    LVL 9

    Expert Comment


    I had just participated in that thread :)
    LVL 9

    Expert Comment

    (was easier to post a link to that PAQ than to copy/paste relevant info...lots of good stuff there including use of WSH)

    LVL 9

    Accepted Solution

    In case you (or a future solution searcher) is unable to view that link, the most relative info on that post is at

    Author Comment

    More than enough information between those 2 links to earn you the points.

    Thanks a lot for your help!
    LVL 9

    Expert Comment

    You're welcome!

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    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…

    755 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

    25 Experts available now in Live!

    Get 1:1 Help Now