2.2.1.15.2 SharedPrinter Element
The <SharedPrinter> inner element refers to a printer made available as a network resource.
Attribute name |
Description |
---|---|
action |
(optional) If specified, the value MUST be C, D, R, or U, corresponding to Create, Delete, Replace, and Update. If unspecified, the default value is U.
|
location |
(optional) A text description of the location of this local printer. |
path |
MUST be set to a fully qualified UNC path of a shared printer. |
comment |
(optional) A text comment describing this local printer. |
default |
(optional) MUST be set to 1 to set this printer as the local default printer. |
skipLocal |
(optional) MUST be set to 1 to bypass changing the default printer if a local printer is configured on the computer. |
deleteAll |
(optional) MUST be set to 1 to delete all shared printer connections. |
port |
MUST be set to a local port to which the shared connection is to be mapped. |
persistent |
(optional) MUST be set to 1 if the shared printer connection is to be persistent. |
deleteMaps |
(optional) MUST be set to 1 to allow shared printer connections from all local ports. This setting applies only when the preference item's action is set to Delete. |
username |
(optional) MUST be set to the user name used to connect to the printer driver share. |
cpassword |
(optional) MUST be set to the password for the username used to connect to the printer driver share. The password is encrypted using an AES-derived encryption key when the preference is created, and decrypted in the client during client processing. |