SOLVED

Error when i add printer

%3CLINGO-SUB%20id%3D%22lingo-sub-1313938%22%20slang%3D%22en-US%22%3EError%20when%20i%20add%20one%20printer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1313938%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%3C%2FP%3E%3CP%3EI'm%20trying%20to%20add%20a%20printer%20on%20the%20Universal%20Cloud%20Connector%20program%20(0.20.7380.21779)%20on%20windows%20server%202019%20v1809%20build%2017763.1158%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E-%20%3CEVENT%20xmlns%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fwin%2F2004%2F08%2Fevents%2Fevent%22%3E%0A-%20%3CSYSTEM%3E%0A%20%20%3CPROVIDER%20name%3D%22Microsoft-Windows-PrintConnector%22%20guid%3D%22%7Bf22577b2-5121-585a-50b1-a4fde8a4413a%7D%22%3E%3C%2FPROVIDER%3E%20%0A%20%20%3CEVENTID%3E2%3C%2FEVENTID%3E%20%0A%20%20%3CVERSION%3E0%3C%2FVERSION%3E%20%0A%20%20%3CLEVEL%3E2%3C%2FLEVEL%3E%20%0A%20%20%3CTASK%3E65532%3C%2FTASK%3E%20%0A%20%20%3COPCODE%3E0%3C%2FOPCODE%3E%20%0A%20%20%3CKEYWORDS%3E0x8000f00000000000%3C%2FKEYWORDS%3E%20%0A%20%20%3CTIMECREATED%20systemtime%3D%222020-04-16T19%3A36%3A06.706278300Z%22%3E%3C%2FTIMECREATED%3E%20%0A%20%20%3CEVENTRECORDID%3E144%3C%2FEVENTRECORDID%3E%20%0A%20%20%3CCORRELATION%3E%3C%2FCORRELATION%3E%20%0A%20%20%3CEXECUTION%20processid%3D%229124%22%20threadid%3D%229076%22%3E%3C%2FEXECUTION%3E%20%0A%20%20%3CCHANNEL%3EMicrosoft-Windows-PrintConnector%2FOperational%3C%2FCHANNEL%3E%20%0A%20%20%3CCOMPUTER%3ESRVPRN2%3C%2FCOMPUTER%3E%20%0A%20%20%3CSECURITY%20userid%3D%22S-1-5-18%22%3E%3C%2FSECURITY%3E%20%0A%20%20%3C%2FSYSTEM%3E%0A-%20%3CEVENTDATA%3E%0A%20%20%3CDATA%20name%3D%22reason%22%3EException%20when%20sending%20registration%20request%20for%20PRN_TES%20System.Exception%3A%20StatusCode%3A%20403%2C%20ReasonPhrase%3A%20'Forbidden'%2C%20Version%3A%201.1%2C%20Content%3A%20System.Net.Http.StreamContent%2C%20Headers%3A%20%7B%20x-content-type-options%3A%20nosniff%20X-MSEdge-Ref%3A%20Ref%20A%3A%207B59B2072AE5477D814D94B486781DAA%20Ref%20B%3A%20VIEEDGE1117%20Ref%20C%3A%202020-04-16T19%3A36%3A18Z%20Cache-Control%3A%20no-store%2C%20must-revalidate%2C%20no-cache%2C%20max-age%3D0%20Date%3A%20Thu%2C%2016%20Apr%202020%2019%3A36%3A17%20GMT%20Set-Cookie%3A%20UserRegion%3Deurope%3B%20path%3D%2F%3B%20samesite%3Dlax%3B%20httponly%20Content-Length%3A%200%20%7D%20at%20ProxyLibrary.RegisterHelper.%3CSENDREGISTRATIONREQUEST%3Ed__9.MoveNext()%3C%2FSENDREGISTRATIONREQUEST%3E%20%0A%20%20%3C%2FDATA%3E%0A%20%20%3C%2FEVENTDATA%3E%3C%2FEVENT%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E-%20%3CEVENT%20xmlns%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fwin%2F2004%2F08%2Fevents%2Fevent%22%3E%0A-%20%3CSYSTEM%3E%0A%20%20%3CPROVIDER%20name%3D%22Microsoft-Windows-PrintConnector%22%20guid%3D%22%7Bf22577b2-5121-585a-50b1-a4fde8a4413a%7D%22%3E%3C%2FPROVIDER%3E%20%0A%20%20%3CEVENTID%3E8%3C%2FEVENTID%3E%20%0A%20%20%3CVERSION%3E0%3C%2FVERSION%3E%20%0A%20%20%3CLEVEL%3E2%3C%2FLEVEL%3E%20%0A%20%20%3CTASK%3E65526%3C%2FTASK%3E%20%0A%20%20%3COPCODE%3E0%3C%2FOPCODE%3E%20%0A%20%20%3CKEYWORDS%3E0x8000f00000000000%3C%2FKEYWORDS%3E%20%0A%20%20%3CTIMECREATED%20systemtime%3D%222020-04-16T19%3A36%3A06.706450300Z%22%3E%3C%2FTIMECREATED%3E%20%0A%20%20%3CEVENTRECORDID%3E145%3C%2FEVENTRECORDID%3E%20%0A%20%20%3CCORRELATION%3E%3C%2FCORRELATION%3E%20%0A%20%20%3CEXECUTION%20processid%3D%229124%22%20threadid%3D%229076%22%3E%3C%2FEXECUTION%3E%20%0A%20%20%3CCHANNEL%3EMicrosoft-Windows-PrintConnector%2FOperational%3C%2FCHANNEL%3E%20%0A%20%20%3CCOMPUTER%3ESRVPRN2%3C%2FCOMPUTER%3E%20%0A%20%20%3CSECURITY%20userid%3D%22S-1-5-18%22%3E%3C%2FSECURITY%3E%20%0A%20%20%3C%2FSYSTEM%3E%0A-%20%3CEVENTDATA%3E%0A%20%20%3CDATA%20name%3D%22reason%22%3ERegister%20printer%20start%3A%20PRN_TES%20Sending%20Registration%20Request...%20System.Exception%3A%20StatusCode%3A%20403%2C%20ReasonPhrase%3A%20'Forbidden'%2C%20Version%3A%201.1%2C%20Content%3A%20System.Net.Http.StreamContent%2C%20Headers%3A%20%7B%20x-content-type-options%3A%20nosniff%20X-MSEdge-Ref%3A%20Ref%20A%3A%207B59B2072AE5477D814D94B486781DAA%20Ref%20B%3A%20VIEEDGE1117%20Ref%20C%3A%202020-04-16T19%3A36%3A18Z%20Cache-Control%3A%20no-store%2C%20must-revalidate%2C%20no-cache%2C%20max-age%3D0%20Date%3A%20Thu%2C%2016%20Apr%202020%2019%3A36%3A17%20GMT%20Set-Cookie%3A%20UserRegion%3Deurope%3B%20path%3D%2F%3B%20samesite%3Dlax%3B%20httponly%20Content-Length%3A%200%20%7D%20at%20ProxyLibrary.RegisterHelper.%3CSENDREGISTRATIONREQUEST%3Ed__9.MoveNext()%20---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%20at%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%20at%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%20at%20ProxyLibrary.Register.%3CREGISTERPRINTER%3Ed__27.MoveNext()%3C%2FREGISTERPRINTER%3E%20%0A%20%20%3C%2FSENDREGISTRATIONREQUEST%3E%0A%20%20%3C%2FDATA%3E%3C%2FEVENTDATA%3E%3C%2FEVENT%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1314340%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20when%20i%20add%20printer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1314340%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F588635%22%20target%3D%22_blank%22%3E%40vi_das%3C%2FA%3E%2C%26nbsp%3Bwhen%20using%20the%20Universal%20Print%20Connector%20program%2C%20the%20user%20account%20used%20to%20log-in%20during%20the%20launch%20of%20the%20app%20needs%20to%20be%20a%20Printer%20Admin%20role%20or%20Global%20Admin%20role%20in%20AAD.%26nbsp%3B%20Additionally%2C%20please%20ensure%20the%20user%20account%20has%20been%20assigned%20a%20Universal%20Print%20license.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHTH%2C%3C%2FP%3E%0A%3CP%3EJimmy%3C%2FP%3E%3C%2FLINGO-BODY%3E
Regular Visitor

Hi all

I'm trying to add a printer on the Universal Cloud Connector program (0.20.7380.21779) on windows server 2019 v1809 build 17763.1158

 

 

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Microsoft-Windows-PrintConnector" Guid="{f22577b2-5121-585a-50b1-a4fde8a4413a}" /> 
  <EventID>2</EventID> 
  <Version>0</Version> 
  <Level>2</Level> 
  <Task>65532</Task> 
  <Opcode>0</Opcode> 
  <Keywords>0x8000f00000000000</Keywords> 
  <TimeCreated SystemTime="2020-04-16T19:36:06.706278300Z" /> 
  <EventRecordID>144</EventRecordID> 
  <Correlation /> 
  <Execution ProcessID="9124" ThreadID="9076" /> 
  <Channel>Microsoft-Windows-PrintConnector/Operational</Channel> 
  <Computer>SRVPRN2</Computer> 
  <Security UserID="S-1-5-18" /> 
  </System>
- <EventData>
  <Data Name="reason">Exception when sending registration request for PRN_TES System.Exception: StatusCode: 403, ReasonPhrase: 'Forbidden', Version: 1.1, Content: System.Net.Http.StreamContent, Headers: { x-content-type-options: nosniff X-MSEdge-Ref: Ref A: 7B59B2072AE5477D814D94B486781DAA Ref B: VIEEDGE1117 Ref C: 2020-04-16T19:36:18Z Cache-Control: no-store, must-revalidate, no-cache, max-age=0 Date: Thu, 16 Apr 2020 19:36:17 GMT Set-Cookie: UserRegion=europe; path=/; samesite=lax; httponly Content-Length: 0 } at ProxyLibrary.RegisterHelper.<SendRegistrationRequest>d__9.MoveNext()</Data> 
  </EventData>
  </Event>
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Microsoft-Windows-PrintConnector" Guid="{f22577b2-5121-585a-50b1-a4fde8a4413a}" /> 
  <EventID>8</EventID> 
  <Version>0</Version> 
  <Level>2</Level> 
  <Task>65526</Task> 
  <Opcode>0</Opcode> 
  <Keywords>0x8000f00000000000</Keywords> 
  <TimeCreated SystemTime="2020-04-16T19:36:06.706450300Z" /> 
  <EventRecordID>145</EventRecordID> 
  <Correlation /> 
  <Execution ProcessID="9124" ThreadID="9076" /> 
  <Channel>Microsoft-Windows-PrintConnector/Operational</Channel> 
  <Computer>SRVPRN2</Computer> 
  <Security UserID="S-1-5-18" /> 
  </System>
- <EventData>
  <Data Name="reason">Register printer start: PRN_TES Sending Registration Request... System.Exception: StatusCode: 403, ReasonPhrase: 'Forbidden', Version: 1.1, Content: System.Net.Http.StreamContent, Headers: { x-content-type-options: nosniff X-MSEdge-Ref: Ref A: 7B59B2072AE5477D814D94B486781DAA Ref B: VIEEDGE1117 Ref C: 2020-04-16T19:36:18Z Cache-Control: no-store, must-revalidate, no-cache, max-age=0 Date: Thu, 16 Apr 2020 19:36:17 GMT Set-Cookie: UserRegion=europe; path=/; samesite=lax; httponly Content-Length: 0 } at ProxyLibrary.RegisterHelper.<SendRegistrationRequest>d__9.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at ProxyLibrary.Register.<RegisterPrinter>d__27.MoveNext()</Data> 
  </EventData>
  </Event>

 

1 Reply
best response confirmed by Saurabh_Bansal (Microsoft)
Solution

@vi_das, when using the Universal Print Connector program, the user account used to log-in during the launch of the app needs to be a Printer Admin role or Global Admin role in AAD.  Additionally, please ensure the user account has been assigned a Universal Print license.

 

HTH,

Jimmy