Hot to Resolve Citrix Error Printer Autocreation Failure. Reason: AddPrinter() failed with status 0x5

In the Local Security Settings, under User Rights Assignment,
add the Ctx_cpsvcuser to the “Load and unload device drivers” policy.

If the problem reoccurs, there are two alternatives:
1) add CTX_CPSVCUSER to local Administrators group
2) set Citrix Print Manager Service to start with local service account