Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printer script 1

Status
Not open for further replies.

headsup7

IS-IT--Management
Mar 29, 2003
58
GB
Hi i need a quick printer set up script i think its call .VBS want it to publish one printer around whole domain as users log on.....

anyone thanks

I haven't failed, I've found 10,000 ways that don't work.
Thomas Edison (1847-1931)
Heads :)
 
This should do the job. Just make sure you change the name of the printer...

Code:
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\PrintServer1\Xerox300"
WshNetwork.SetDefaultPrinter "\\PrintServer1\Xerox300"

Got this straight from technet's script center. Follow this link:

 
thankyou for swift response ......75 done already :)

I haven't failed, I've found 10,000 ways that don't work.
Thomas Edison (1847-1931)
Heads :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top