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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

add printer via email attachment

Status
Not open for further replies.

steve626

IS-IT--Management
Jul 20, 2007
2
0
0
US
Hi everyone

just the other day i noticed one of our IT guys from a remote office email a printer file via outlook to add a printer. it went as an attachment so the user clicks on it and it adds the printer instead of having to manually walk over and add it. does anyone know how to do that?? thanks in advance.
 
does anyone know how to do that??
yes...

do I know how: No... but probably through a script and the usage of NET USE or through RUNDLL32 PRINTUI.DLL ...


have a read:
Ben
"If it works don't fix it! If it doesn't use a sledgehammer..."
How to ask a question, when posting them to a professional forum.
Only ask questions with yes/no answers if you want "yes" or "no"
 
.VBS script most likely:

'// Name: setprint.vbs
'// Description: Add a network printer and make it the default

Set WshNetwork = CreateObject("WScript.Network")

'// Adds the printer. Substitute your server name and printer share.
WshNetwork.AddwindowsPrinterConnection "\\servername\printername"

'// Makes the specified printer the default.
WshNetwork.SetDefaultPrinter "\\servername\printername"


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top