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

Printing (Scripts) 1

Status
Not open for further replies.

VLADY218

Technical User
Feb 7, 2003
133
US
He everyone,

I am trying to make a local printer script for a computer under windows 2000. Does anyone know where I can download con2prt.exe and what I have to do to get it to work. Ive tried to map it using the MAP LPT1 but that was a no go. So Ive heard con2prt works great, but I cant download it and get it to work.

Any help would be great

Thank you all and keep the computers up
 
You can download it from
==>However, if you are running 2000, Microsoft recommends the below from
==> rundll32
Some enterprise configurations require clients to connect to network printers during an unattended setup. Microsoft facilitates this with the rundll32 command, which allows printers to be installed from the command line. This is particularly useful when you need to add or remove printers from a group of users by means of a logon script.

The rundll32 command provides greater control than older supplemental utilities such as Con2prt.exe, which allowed only for the addition and deletion of networked printers. For example, the rundll32 command allows local printers to be modified and deleted. It also allows you to add printer connections by computer rather than by user as the Add Printer Wizard does. The result is that you can control all aspects of the end user's printing experience by running a local or remote batch file or logon script containing rundll32 commands.

The case-sensitive syntax for the rundll32 command is:

rundll32 printui.dll,PrintUIEntry <options>

Examples of useful options include:

rundll32 printui.dll,PrintUIEntry /il /c\\computer

This installs a printer for the user logged on a remote computer named computer by running the Add Printer Wizard. You can also type:

rundll32 printui.dll,PrintUIEntry /ga /c\\computer /n\\print_server\printer

This adds a connection to print_server/printer for all users on a remote computer named computer.

The available options for rundll32 are shown in Figure 4.17

===>
kip
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top