Q: How to setup a network printer for all users on NT/w2k/xp?
A: 1. You can add the printer into a user and then copy the user's profile into the default user. All new logon users will have the same printer settings.
2. If you use NT, you may use net use command to map the printer to LPT#.
3. If you have w2k/xp, you may want to use rundll32 printui.dll,PrintUIEntry command line.
Robert Lin, MS-MVP, MCSE & CNE
Windows, Network, Internet, VPN, Routing and How to at
Can this be used to set up network printers as well? I am reviewing the documentation from the site, as well as from Microsoft, but am having difficulty getting the command line correct. I think I'm just not getting the command line correct, but then, i'm not that familiar with it either. Here's what I tried, rundll32 printui.dll,printuientry /in /c\\domain\server\printername. Would I have to specifiy the printer driver for a printer that would be recognized by Windows already? I know I'm missing something, can you help me fill in the gaps? I'm a PC technician and am trying to save myself and the other techs alot of trouble of having to visit workstations with 4 different users/profiles to install a new printer. I'd like to push this to our network team to get done with the login scripts.
After much searching etc etc, I found this
* * * * * * * * * *
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
sPrintPath = "\\servername\printername"
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
* * * * * * * * * *
Save the above without the *, change the server and printer name and save as a .vbs file. I used a .bat file to run it, used the bat file as a logon script and put both files in the NETLOGON directory. Works for me on Win2k Server & Win2k Pro clients.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.