Release Notes - Prncon

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 4

PRNCON.

EXE
Release Notes Version 11.11.09.1 (November 2011)

Introduction:...................................................................................................................................................... 2
Purpose:............................................................................................................................................................ 2
Operation notes:................................................................................................................................................ 2
Usage:............................................................................................................................................................... 2
Example:....................................................................................................................................................... 2
Alternate usage:............................................................................................................................................ 3
Supported Operating Systems:..................................................................................................................... 3
Tested Operating Systems:........................................................................................................................... 3
64 bit support................................................................................................................................................ 3
Sample Log file:............................................................................................................................................ 3
Trademark Notice:............................................................................................................................................. 4

Introduction:
PRNCON.EXE is as console application for removing and adding an hp network printers point-and-print
connection between a Windows client workstation and a print server. Driver information is stored in a log
file when adding or removing point-and-print connected network printers.
Note: PRNCON.EXE does not remove the printer driver from the client or print server.

Purpose:
When printer driver files are upgraded on the print server, it is necessary to synchronize the client printer
driver files with the print server to ensure that the client can print properly and utilize all new features
provided by the upgraded print driver. If the client has an active connection to the print server at the time
the print driver files are upgraded, the print driver files installed on the client may be locked and will not
update until the user logs off the workstation and logs in again. In some cases, this process of logging off
and back in may not be sufficient to resynchronize all driver files with the print server.
Hewlett-Packard created the PRNCON.EXE tool to automate the process of remotely removing and
reestablishing a network point-and-print connection and logging the results.

Operation notes:
PRNCON operates on hp drivers only. PRNCON checks the name of the driver associated with the
printer, and if the driver name does not contain HP or Hewlett (case ignored) the printer will be
bypassed.

Usage:
prncon -s <server_name> -p <printer_name> -f <trace_file> -a|-d [w <milliseconds>]
<server_name> - Print server name, without "\\".
<printer_name> - Printer name as defined on server.
<trace_file> - Name of trace file, including complete path. If the f option is not specified, the
default trace file is: Default trace file is: %TEMP%\prncon.trc
-a - Used to add a printer connection.
-d - Remove a printer connection.
<milliseconds> - Number of milliseconds to wait between delete and add operations

Default is 0 milliseconds
-? Display command line help
Notes:
The printer has to be shared on the server; <printer_name> is not the SHARE name.
It has been observed that some clients will not properly synch up with the settings on the print
server unless there is a time lapse between the delete and add operations. If this behavior is
observed, it is recommended to start with a 3 second wait period (-w 3000).

Example:
To remove connection:
prncon -s prnsvr123 -p "HP LaserJet 4000 PCL 6" -f "%temp%\prncon.log" -d
To add a connection:
prncon -s prnsvr456 -p "HP LaserJet 4000 PCL 6" -f "%temp%\prncon.log" -a

Alternate usage:
Running PRNCON.EXE without any switches will reset all point-and-print connections between the client
and the print server(s)

Supported Operating Systems:


All operating systems supported by the HP Universal Print driver.

Tested Operating Systems:


This application has been tested with Windows XP, Windows Vista, and Windows 7

64 bit support
PRNCON is a 32 bit application, but it will run on 64 bit systems.

Sample Log file:


1.
2.

------ PRNCON.exe Starting on Machine : CWDCN070D6B, Time : Tuesday, May 25, 2010 16:15:08 -----PRNCON version 10.05.24.1 :

3.
4.
5.
6.
7.

Command line: prncon


GetPrinterConnections:
GetPrinterConnections:
GetPrinterConnections:
GetPrinterConnections:

\\RSM0NAM01.nam.corp.hp.com\CPP-LGR66-2-2B1D skipped: Server Name is NULL


Adding printer \\RSM0NAM01\CPP-2-1B-1@\\RSM0NAM01
Adding printer \\RSM0NAM01\CPP-66-2-3E-3@\\RSM0NAM01
\\RSM0NAM01\CPP-66-2-3E-Xerox238 skipped: Not an HP driver

8. ***************** Existing Printer Info **************


9. Printer Connection: \\RSM0NAM01\CPP-2-1B-1
10. Printer Name is :\\RSM0NAM01\CPP-2-1B-1
11. Server Name is : \\RSM0NAM01
12. Printer Driver is :
HP Universal Printing PS (v5.0)
13.
************** Existing Driver Version Details ****************
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.

Environment
: Windows NT x86
Driver File
: C:\WINNT\System32\spool\DRIVERS\W32X86\3\PSCRIPT5.DLL
Data File
: C:\WINNT\System32\spool\DRIVERS\W32X86\3\hpcu091s.ppd
Config File
: C:\WINNT\System32\spool\DRIVERS\W32X86\3\hpmdp091.dll
File - C:\WINNT\System32\spool\DRIVERS\W32X86\3\PSCRIPT5.DLL
Time Stamp
- Wednesday, August 26, 2009 16:47:32
Language
- English
File Version - 0.3.7600.16385
Prod Version - 6.1.7600.16385
File - C:\WINNT\System32\spool\DRIVERS\W32X86\3\hpmdp091.dll
Time Stamp
- Wednesday, September 02, 2009 04:02:30
Language
- English
File Version - 0.3.1540.66
Prod Version - 5.0.1.42
********************************************
'\\RSM0NAM01\CPP-2-1B-1' Printer Connection has been deleted
********************************************
Connecting to printer \\RSM0NAM01\CPP-2-1B-1
***************** New Printer Info **************
Printer Name is :\\RSM0NAM01\CPP-2-1B-1
Server Name is : \\RSM0NAM01
Printer Driver is :
HP Universal Printing PCL 5 (v4.7)
************** New Driver Details ************
Environment
: Windows NT x86
Driver File
: C:\WINNT\System32\spool\DRIVERS\W32X86\3\PSCRIPT5.DLL
Data File
: C:\WINNT\System32\spool\DRIVERS\W32X86\3\hpcu091s.ppd
Config File
: C:\WINNT\System32\spool\DRIVERS\W32X86\3\hpmdp091.dll
File - C:\WINNT\System32\spool\DRIVERS\W32X86\3\PSCRIPT5.DLL
Time Stamp
- Wednesday, August 26, 2009 16:47:32
Language
- English

44.
File Version - 0.3.7600.16385
45.
Prod Version - 6.1.7600.16385
46. File - C:\WINNT\System32\spool\DRIVERS\W32X86\3\hpmdp091.dll
47.
Time Stamp
- Wednesday, September 02, 2009 04:02:30
48.
Language
- English
49.
File Version - 0.3.1540.66
50.
Prod Version - 5.0.1.42
51. ------ PRNCON.exe Stopping Trace on Machine : CWDCN070D6B, Time : Tuesday, May 25, 2010 16:15:40
------

Line 1: Starting time and machine name


Line 2: PRNCON version
Line 3: Command line
Line 4-7: Enumeration of all the network printers on the client
Line 4: This printer was skipped because the printer did not appear to be a legitimate network printer.
Line 5-6: Network printers flagged for deletion and re-connection.
Line 7: This printer was skipped because it is not an hp printer.
Line 9-12: The printer and driver name of the first printer scheduled for deletion and re-connection.
Line 14-27: Driver information for the first printer.
Line 27: This is the version of the driver currently being used for this printer. It may be the same version
as on the print server if synchronization happened automatically.
Line 29: Indication that the printer was successfully deleted
Line 31: The connection to the printer was successfully re-established
Line 32-50: Information on the new driver. By comparing lines 27 and 50, we see that the driver versions
are the same, indicating that the synchronization had already happened automatically.
Line 51: Stop date and time

Trademark Notice:
Microsoft, Windows XP, Windows Vista and Windows 7 are registered trademarks of Microsoft, Inc. in the
U.S. and other countries.

You might also like