Objective 2. 9 – Configure Remote and/or Location-based Printing for View Desktops
For this objective I used the following resources:
- VMware View Administration documentation
- VMware ThinPrint GPO Configuration for Location-Based Printing Information Guide
Identify ThinPrint Services
There are two Windows services that are installed during the VMware View agent installation that handle the aspects of printing:
- TP AutoConnecct Service – Responsible for creating/mapping the users printers in the View Desktop
- TP VC Gateway Service – Responsible for delivery of print job and enables encryption and compression
Register .dll File
To enable Location-based Printing (LBT) you have to register the TPVMGPoACmap.dll. This .dll file needs to be copied to a domain controller in the environment. The file is located in the following directory on your View Connection Server:
<Installation_Directory>:\Program Files\VMware\VMware View\Server\extras\GroupPolicyFiles\ThinPrint
Two directories are display, one for 32-bit OS’s, the other for 64-bit. Copy the relevant file for your OS type:
For this demonstration I copied the 64-bit version to the C:\ThinPrint directory on my domain controller. Open a command prompt and change to the directory. Issue the regsvr32 TPVMGPoACmap.dll command to register the .dll file:
Import Location Printing ADM File
Combing both of these sections as one roles into the other.
With the TPVMGPoACmap.dll file registered on your domain controller launch the Group Policy Management console and create a new GPO. For this demonstration I created a GPO titled “View Location Based Printing”:
With the GPO created right click the GPO and select “Edit”. With the GPO open browse to Computer Configuration –> Policies –> Software Settings and select AutoConnect Map Additional Printers for VMware View:
In the right hand pane double click on “Configure AutoConnect Map Additional Printers”, this will display the configuration screen for LBP. In the upper right hand corner select the “Enabled” radial setting. Click “Apply” in the bottom right hand corner of the dialog screen:
Using the icons in the upper left corner of the dialog window you can add or remove printers that will configured. Each printer access is configured via the translation table. The chart below provides and overview of the columns and values that represented:
|IP Range||A translation rule that specifies a range of IP addresses for
To specify IP addresses in a specific range, use the following
For example: 10.112.116.0-10.112.119.255
To specify all of the IP addresses in a specific subnet, use the following notation:
For example: 10.112.4.0/22
This notation specifies the usable IPv4 addresses from
10.112.4.1 to 10.112.7.254.
Type an asterisk to match any IP address.
|Client Name||A translation rule that specifies a computer name.
For example: Mary’s Computer
Type an asterisk to match any computer name.
|MAC Address||A translation rule that specifies a MAC address. In the GPO
editor, you must use the same format that the client system
uses. For example:
Type an asterisk to match any MAC address.
|User/Group||A translation rule that specifies a user or group name.
For example: jdoe
Type an asterisk to match any user name or group.
|Printer Name||The name of the printer when it is mapped to the View
For example: PRINTER-2-CLR
The mapped name does not have to match the printer name
on the client system.
|Printer Driver||The name of the driver that the printer uses.
For example: HP Color LaserJet 4700 PS
IMPORTANT Because print jobs are sent directly from the
desktop to the printer, the printer driver must be installed on
|IP Port/ThinPrint Port||For network printers, the IP address of the printer prepended
For example: IP_10.114.24.1
|Default||Indicates whether the printer is the default printer.|
As I do not have a printer in my lab environment I pulled the below chart and explanation from page 170 of the VMware View Administration documentation to provide a configured example:
|IP Range||Client Name||MAC Address||User/Group||Printer Name||Printer Driver||IP Port/ThinPrint Port||Default|
|PRINTER-1-CLR||HP Color LaserJet 4700 PS||IP_10.114.24.1|
|PRINTER-2-CLR||HP Color LaserJet 4700 PS||IP_10.114.24.2||
The network printer specified in the first row will be mapped to a View desktop for any client system because asterisks appear in all of the translation rule columns. The network printer specified in the second row will be mapped to a View desktop only if the client system has an IP address in the range 10.112.116.140 through 10.112.116.145.