Remove a network printer using vbscript

Hello,

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!

UUCUTECH
uucutechAsked:
Who is Participating?
 
fixnixCommented:
In case you (or a future solution searcher) is unable to view that link, the most relative info on that post is at http://64.233.187.104/search?q=cache:9-SMgGJw3cgJ:dbforums.com/arch/196/2003/2/673671+%22delete+all+printers%22+%22logon+script%22+%2B2003&hl=en&lr=lang_en
0
 
fixnixCommented:
check http://www.experts-exchange.com/Networking/Q_21384635.html

I had just participated in that thread :)
0
 
fixnixCommented:
(was easier to post a link to that PAQ than to copy/paste relevant info...lots of good stuff there including use of WSH)

0
 
uucutechAuthor Commented:
More than enough information between those 2 links to earn you the points.

Thanks a lot for your help!
0
 
fixnixCommented:
You're welcome!
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.

All Courses

From novice to tech pro — start learning today.