LBP Setting UI is a name translation table that identifies printers and defines associated translation rules. Location-based printing maps local printers to remote desktops.

Table 1. Translation Table Columns and Values
Column Description
Default Indicates whether the printer is the default printer. By default, this value is not selected.
Name The name or Universal Naming Convention (UNC) path of the printer when it is mapped to the remote desktop.

For example: PRINTER-2-CLR

The mapped name does not have to match the printer name on the client system.

Labels A label can be the physical location, city, or another description that helps distinguish printers. For example: Floor 7.
IP Range A translation rule that specifies a range of IP addresses for client systems.

To specify IP addresses in a specific range, use the following notation:

ip_address-ip_address

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:

ip_address/subnet_mask_bits

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 (the default value) to match any IP address.

Important: In an IPv6 mixed-mode environment, add two IP address ranges for one printer (one range for IPv4 addresses and another range for IPv6 addresses) to ensure that the printer appears in remote sessions regardless of which protocol Horizon Client uses to connect.
Client Name A translation rule that specifies a computer name. The maximum length is 1024 characters.

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:
  • Windows clients use hyphens: 01-23-45-67-89-ab
  • Linux clients use colons: 01:23:45:67:89:ab

Type an asterisk to match any MAC address.

User/Group A translation rule that specifies a user or group name.

To specify a particular user or group, use the following notation:

\\domain\user_or_group

Examples for a user: \\mydomain\Mary and Mary

Example for a group: \\localdomain\Sales

A user can belong to many groups and groups consist of multiple users. Location-based printing supports the group types that Microsoft supports in the domain.

The fully qualified domain name (FQDN) is not supported notation for the domain name. Type an asterisk to match any user or group name.

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 remote desktop to the printer, the printer driver must be installed on the remote desktop.
IP Port For network printers, the IP address of the printer prepended with IP_ or the host name of the printer. The default port is 9100.

You can specify a non-default port by appending the port number to the IP address.

For example, for IPv4: IP_10.114.24.1:9104

For example, for IPv6: IP_1:1:1:1::1:PORT_9100

You use the buttons that appear above the column headings to add, delete, and move rows and save and import table entries. Each button has an equivalent keyboard shortcut. Mouse over each button to see a description of the button and its equivalent keyboard shortcut. For example, to insert a row at the end of the table, click the first table button or press Alt+A. Click the last two buttons to import and save table entries.

Note: Location-based printing policies that use the MAC Address or client name are not supported if you use HTML Access to connect to remote desktops.

The following table shows an example of two translation table rows.

Table 2. Location-Based Printing Group Policy Setting Example
Default Name Labels IP Range Client Name Mac Address User/Group Printer Driver IP Port
PRINTER-1-CLR Floor 7 * * * * HP Color LaserJet 4700 PS IP_10.114.24.1
X PRINTER-2-CLR Floor 7 10.112.116.140-10.112.116.145 * * * HP Color LaserJet 4700 PS IP_10.114.24.2

The network printer specified in the first row will be mapped to a remote 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 remote desktop only if the client system has an IP address in the range 10.112.116.140 through 10.112.116.145.