• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 269
  • Last Modified:

Get, Add and remove printers on network

Hello,

I have a problem on VB. I would like to get all printers throught my network, include printers attached on network, removes and adds them and get properties.

E.g. : on one workstation (NT4), I want to get network printer, remove driver and add another drivers on remote.

Is it possible and how ?

Thanks by advance.
0
esohier
Asked:
esohier
  • 4
  • 3
1 Solution
 
esohierAuthor Commented:
May be more difficult ?
0
 
Bob LearnedCommented:
There is the Window Scripting Host.  You can access it in your VB6 program, by adding a reference to wshom.ocx, which is normally in the System folder for your operating system.  Look at the WshNetwork class.  It has methods to enumerate, add, and remove printers.
0
 
esohierAuthor Commented:
Where can I found this file ?

I've already install the wmicore and scr56en.exe files, but, I don't see the class.
0
Technology Partners: 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!

 
Bob LearnedCommented:
For me, wshom.ocx is in C:\Windows\System32 (XP).
0
 
esohierAuthor Commented:
That's Ok.

Where can I found methods and properties of this object (web site ?) ?
0
 
Bob LearnedCommented:
RTF Document:  Using the Windows Scripting Host Without Scripting
http://www.vbug.co.uk/magazine/2001/download/UsingWSH.doc
0
 
esohierAuthor Commented:
Thanks.
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

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