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

Printer Problem

Status
Not open for further replies.

vfear

Technical User
Feb 9, 2001
159
US
on my users work stations they are running win2k and I need to set a default printer in windows.. but I also need to give them the option of using another printer.. I added the ports for both printers and installed both drivers.. but I need to know how can I set a specific printer of the two to default for every user who logs on the machine.. please help
 
Can't you just right click the printer and choose "set as default"? Visit www.netwerkin.com
MCSE 2000, MCSA, MCP, A+
 
no because it will only set default for the user you are logged on as... please help
 
Here, the following script demonstrates how to set a default printer. The first step creates a Network Object. Then the SetDefaultPrinter method sets the default value. The SetDefaultPrinter method takes a single parameter, the name of the printer and uses the UNC path of the printing device.


' VBScript.
Dim net
Set net = CreateObject("WScript.Network")
net.SetDefaultPrinter "\\ServerName\PrinterName"


Hope this helps...
Visit www.netwerkin.com
MCSE 2000, MCSA, MCP, A+
 
any other ideas.. I cant change log in script.. just need some type of maybe a reg hack.. I just need to make every user have the same default printer not each user having different.. any ideas??
 
You can't use a logon script but you can H4xx0r the registry? No offense, but I just gave you a sample of how to accomplish your task, what's the problem? Visit www.netwerkin.com
MCSE 2000, MCSA, MCP, A+
 
HI,

You can use con2prt.exe which is useful for installaing the soecific network printer from command line and as well as you can set that printer as a default printer.This utility comes with ZAk i.e. Zero Administration kit.You can download it from MS site od search for the utility on Google.
It is very simple to install the specific printer for the user and set as default printer in login script.

HTH Aslam
 
If you really want a reg hack, you could use the

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows] to set the default printer for the current user, but this would be very time consuming. You may be able to find a similar key in the HKLM, but I'm not sure? I would use a script... Visit www.netwerkin.com
MCSE 2000, MCSA, MCP, A+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top