Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2666
  • Last Modified:

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
0
uucutech
Asked:
uucutech
  • 4
1 Solution
 
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
 
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
 
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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