4 replies
by moserjj
get the zero administration kit for windows nt server from microsoft.com.
http://www.microsoft.com/ntworkstation/downloads/Recommended/Featured/NTZAK.asp
there is a utility in there for adding printers. its almost identical to mapping drives, something like "file.exe net use \\server\printername"
i use it in a batch file like:
\\server\netlogon\file.exe \\server\printername
works great and has a few options with it
The utility in Zero Admin Kit is \i386\Tools\con2prt.exe. Below are the options.
H:\>con2prt /?
CON2PRT: Lets the user disconnect all existing connections to Windows NT printers and connect to newly specified Windows NT printers.
Usage: CON2PRT [ /? | /h | /f |
[/c \\printserver\share | /cd \\printserver\share]+]
where:
/? - displays usage.
/h - displays usage.
/f - deletes all existing printer connections.
/c - connects to \\printserver\share printer.
/cd - connects to \\printserver\share printer and sets it as the default
printer.
NOTE: /?, /h can only be the first parameter and if specified further
interpretation of the command line is stopped. /f can also only
be the first parameter, however it doesn't stop further
interpretation of the command line. Any number of /c and /cd
parameters can be specified however only the first /cd sets the
printer specified as the default.
Hint: Use --Net View \\printserver-- to determine available print shares.
Copy con2prt.exe into any server share accessable for anyone on your network and create a batch file as shown below.
\\servername\sharename\con2prt.exe /c \\servername\printername
Then email the batch file to a user or add it to a logon script.
by cody
I agree.
Con2prt.exe is probably the best and easiest solution. You can also use the "ADDPRINTER" command in KIX scripting as well which is quite nice.
Have a look here for some exampls on using the con2prt.exe usage: http://www.thisishelpful.com/con2prt-exe-map-delete-and-set-default-printer-a1.html.
If you're keen, use a KIX file as well. I use both and it works well. Have a look here also: http://www.thisishelpful.com/kix-login-script-to-map-printers-network-drives-and-setting-changes-a3.html.
Hope that ehlps you out.
This discussion is closed to new replies.
Trending IT Employment posts
Sort by Trending