Windows Scripting
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationWindows Scripting

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 30th, 2004, 10:38 AM
xavierv xavierv is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 2 xavierv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Lightbulb Automating Add Printer Wizard

Hi Guys,

I would like to automate the Add Printer Wizard in Windows so
that the user is redirected to the Find Printer Wizard directly
in order to search for printers in Active Directory based on
the location. I have not foudn any documentation in Microsoft´s
sources so you are my last hope.

Thanks a lot for any idea you can post.

Reply With Quote
  #2  
Old March 31st, 2004, 12:45 AM
Mike_Patton's Avatar
Mike_Patton Mike_Patton is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: NY
Posts: 43 Mike_Patton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 16 m 32 sec
Reputation Power: 5
Send a message via AIM to Mike_Patton Send a message via Yahoo to Mike_Patton
I can't answer your question.....

But at work I automate all printer installs via
Active Directory's Group Policy using a vbs script

You can apply multiple printers to an OU that will install
when your users log on.
This way your users never have to enter the add printer wizard.

Here is the script. Just create a text file with the
below text and rename it to .vbs


Code:
 
'-------------------------------------------
' Printer Install
'-------------------------------------------

Dim net
Set net = CreateObject("WScript.Network") 
net.AddWindowsPrinterConnection "\\nyprnt\printj1"
  
'-------------------------------------------
' You can add multiple printers and shortcuts 
' by copying the above data and editing the paths
' Rob
'-------------------------------------------



I know this isn't exacty what you were looking for but hopefully it helps..


Also you can configure Active Directory to just
populate printers within the current domain..
This way when a user clicks the find button it doesn't
populate printers in remote offices... If this is what your trying to do
let me know cause I have a book with a walkthrough for that...
I'll type it in for you....

Rob

Last edited by Mike_Patton : March 31st, 2004 at 09:58 AM.

Reply With Quote
  #3  
Old November 26th, 2004, 06:20 AM
MĒtz MĒtz is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: Gloucester, UK
Posts: 1 MĒtz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi, I just found this forum as I was looking for exactly what you wrote in this post! A simple script / VB way of adding printers.

I want to do what you say you do , ie add printers to users remotely, and this script works a treat. I would be interested in any more info you can give me, especially on confuguring the group policy, and also is there a way of :

1. obtaining all the printer share names from a specific server
2. changing the printer's properties once added.

I am quite good with VB / VBA, but new to VBScript, although i recognise the similarities...

Cheers!

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationWindows Scripting > Automating Add Printer Wizard


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT