VMware Horizon Community
Alph4d0g007
Contributor
Contributor

View 4.5 and w2k8 print server

Hi@ all,

I'm trying to set up "location based printing" for VMware View with a windows 2008 printserver.

After 3 Days of reading manuals, rebooting, installing .print engine and a lot of hairpulling (I'm almost bald now) there's no printer connected to my printserver, that would automaticly install on my view clients.

here's what I done:

Installing a standard Win7 View VM from a linked-clone pool

Setting up a Printserver with the driver for x64 Systems installed and the printer connected to it.

loading the *.dll (dont know the actual name now) for the "autoconnect map additional printers [...]"

configuring the translation table.

The entries of my Table :

IP RangeClient NameMac AddressUser/GroupPrinter NamePrinter DriverIP Port/ThinPrint Port
****1HP Color LaserJet 4730 mfp\\192.168.1.70\1

My Printer on "srvconnect" is named "1".

The shared Printer Name is named "1"

The drivers for the Printer are loaded.

When I manually conenct my Win7 Client to the shared Printer it loads the driver from the Printserver and just works fine!

What the Hell am I doing wrong ???

when I manually run the "TPAutoConnect.exe -v -i VMware -a COM1" Iget :

TPAutoConnect User Agent, Copyright (c) 2010 ThinPrint AG, 7.17.519.7
Virtual channel initialized.
Client Type --> [0x00]: WIN32
Client reply --> [0x01]: Client accepted connection.
Length : 624    Count: 6   Default Printer ID : 5
Printer: PDF24   Class:     ID: 1
Printer: Lexware PDF-Export 3   Class:     ID: 3
Printer: HP Universal Printing PCL 6   Class:     ID: 4
Printer: HP Color LaserJet 4730mfp (192.168.1.53)   Class:     ID: 5 (*)
Printer: FreePDF   Class:     ID: 6
Printer: Fax   Class:     ID: 7
Virtual channel initialized.
Client Type --> [0x00]: WIN32
Client reply --> [0x01]: Client accepted connection.
Printer properties <HP Color LaserJet 4730mfp (192.168.1.53)>: Length : 3316   Count: 3   Options: 2
Virtual channel initialized.
Client Type --> [0x00]: WIN32
Client reply --> [0x01]: Client accepted connection.
Printer properties <PDF24>: Length : 1014   Count: 3   Options: 1
Virtual channel initialized.
Client Type --> [0x00]: WIN32
Client reply --> [0x01]: Client accepted connection.
Printer properties <Lexware PDF-Export 3>: Length : 13248   Count: 3   Options: 2
Virtual channel initialized.
Client Type --> [0x00]: WIN32
Client reply --> [0x01]: Client accepted connection.
Printer properties <HP Universal Printing PCL 6>: Length : 3316   Count: 3   Options: 2
Virtual channel initialized.
Client Type --> [0x00]: WIN32
Client reply --> [0x01]: Client accepted connection.
Printer properties <FreePDF>: Length : 1982   Count: 3   Options: 1
Virtual channel initialized.
Client Type --> [0x00]: WIN32
Client reply --> [0x01]: Client accepted connection.
Printer properties <Fax>: Length : 7328   Count: 3   Options: 2
IP           |Client     |Driver                        |Class|Type| ID|Printer-name
----------------------------------------------------------------------------
192.168.1.120|SEBASTIAN-X|HP Universal Printing PCL 6   |     |   0|  5|HP Color LaserJet 4730mfp (192.168.1.53)
192.168.1.120|SEBASTIAN-X|PDF24 PDF                     |     |   0|  1|PDF24
192.168.1.120|SEBASTIAN-X|Amyuni Document Converter 2.50|     |   0|  3|Lexware PDF-Export 3
192.168.1.120|SEBASTIAN-X|HP Universal Printing PCL 6   |     |   0|  4|HP Universal Printing PCL 6
192.168.1.120|SEBASTIAN-X|FreePDF_XP                    |     |   0|  6|FreePDF
192.168.1.120|SEBASTIAN-X|Microsoft Shared Fax Driver   |     |   0|  7|Fax
Create "HP Color LaserJet 4730mfp (192.168.1.53)#:5" from "TPOG!, Port: TPVM:" (188)....... OK
'HP Color LaserJet 4730mfp (192.168.1.53)#:5' ... is now the default Printer.
Create "PDF24#:1" from "TPOG!, Port: TPVM:" (156)....... OK
Create "Lexware PDF-Export 3#:3" from "TPOG!, Port: TPVM:" (281)....... OK
Create "HP Universal Printing PCL 6#:4" from "TPOG!, Port: TPVM:" (172)....... OK
Create "FreePDF#:6" from "TPOG!, Port: TPVM:" (156)....... OK
Create "Fax#:7" from "TPOG!, Port: TPVM:" (219)....... OK
IP=192.168.1.120; MAC=00-FF-B9-ED-38-1E; Client=SEBASTIAN-X; User-name=sebastian.rumpf     \\BRANDL\sebastian.rumpf     \\BRANDL\Domänen-Benutzer     \\\Jeder     \\VORDEFINIERT\Benutzer     \\VORDEFINIERT\Administratoren     \\NT-AUTORITÄT\INTERAKTIV     \\\KONSOLENANMELDUNG     \\NT-AUTORITÄT\Authentifizierte Benutzer     \\NT-AUTORITÄT\Diese Organisation     \\\LOKAL     \\BRANDL\Domänen-Admins     \\BRANDL\c     \\BRANDL\Administration     \\BRANDL\technik     \\BRANDL\Abgelehnte RODC-Kennwortreplikationsgruppe     \\Verbindliche Beschriftung\Hohe Verbindlichkeitsstufe
The printer port '\\srvconnect\1' does not exist.
Exiting with code.......(0)
VCServerAPI::Init(): Protocol = PCOIP
VCTransport::ProcessLocalMessage(): server local connect message from ''
VCServerAPI::Exit(): Protocol = UNKNOWN

Greez from Bavaria

Alph4d0g

0 Kudos
4 Replies
Alph4d0g007
Contributor
Contributor

doesn't anyone have a tutorial or something like that for me ?

0 Kudos
stephaneFR
Contributor
Contributor

Hi,

same problem; i want use Location Based Printing with print server but apparently should be specified in Autoconnect Map only printer ip

(ex. IP_172.20.0.10) and not : \\my_print_server\printer...

The functionality provided by VMware is very limited because it is impossible to use with print server !

Someone has an idea ???

Stéphane Denys.

0 Kudos
Alph4d0g007
Contributor
Contributor

The Location based printing feature with printserver, networkprinters etc only works with thinprint server.

It's a software you have to buy and there you have another dll to register with a new matrix, where networkprinters do work.

Greez

Alpha

PS: sorry for my bad english

0 Kudos
stephaneFR
Contributor
Contributor

I have finally done differently:


In the registry of the VM you can retrieve information about the physical terminal: HKEY_CURRENT_USER \ Volatile Environment.

In addition I arranged for our printers have almost the same name as the terminal
eg:
Terminal Name: DRS210-SerialN°
Name of the printer that should be attached: DRS210-impr

Then using a batch script I get the information of the host name  (registry key : ViewClient_Machine_Name) then I make a connection on my print server.

FOR /F "tokens=2* delims=     " %%A IN ('REG QUERY "HKEY_CURRENT_USER\Volatile Environment" /v ViewClient_Machine_Name') DO SET myname=%%B

::myname variable contains hostname of the terminal eg : DRS210-SerialN°

FOR /F "tokens=1,2 delims=-" %%A IN ('echo %myname%') DO SET physicalhost=%%A

::physicalhost variable contains the beginning of the hostname eg : DRS210

start \ \ printserver \%physicalhost%-impr)

In the end the script starts via GPO.

Bingo!

Stéphane.

0 Kudos