Printer Auto-creation Fails with 0x5 Error Code

Printer Auto-creation Fails with 0x5 Error Code

book

Article ID: CTX130767

calendar_today

Updated On:

Description

Printer auto-creation fails. Error code 0x5 appears in the event viewer.

Resolution

To resolve the issue, assign the local service account Full Control in the printer server properties.

To assign the local service account Full Control, complete the following procedure:

  1. Verify the account that the Citrix Print Manager Service is running as. This should be the local service account. If it is not the local service account, complete the following procedure to change it:

    1.  Enter Local Service in This Account field.

    2. Clear the passwords field.

    3. Press OK.
      Note: You get two prompts, click OK and the password is recreated for that account.

  1. Click Devices and Printers from the Control Panel.

  1. Click any printer to display the print server properties option.

  1. Click Print Server Properties in the menu bar, as shown in the following screen shot:
    User-added image

  1. In the Printer Server Properties dialog, click the Security tab.
  1. Verify that the local service account is listed and has full control. Other permissions include:
  • Everyone Group: Print and View Printer

  • Creator Owner Group: Manage Documents

  • Local Administrators: Full Control
    User-added image

  1. Restart the print spooler service, which also restarts the Citrix Print Manager Service.


Problem Cause

The error code 0x5 implies access denied. This issue occurs if the local service account has not been assigned the appropriate permissions in the printer server properties.

Citrix Print Manager Service (cpsvc) manages the creation of printers and driver usage within XenApp sessions. This service runs in the local service account on the server. By default the local service account is assigned full control to the print server but if the print spooler service is stopped during the XenApp installation or if there is a group policy preventing access for modifying the ACL then the correct permissions are not assigned for the Citrix Print Manager service.

Issue/Introduction

This article provides resolution to the failure of printer auto-creation with error code 0x5.