Cannot detect USB Printer non admin account

Hi All

When calling the GetZebraDriverPrinters method in UsbDiscoverer on Windows .Net I am finding that it only detects printers when the application is running with administrator permissions or with a local admin account. As soon as I run it under a domain account that has restrictions that cannot be overridden then I find that it cannot detect a local printer even though the user is able to see the printer installed via its driver and send test prints from the Control Panel's Devices and Printers window.

Does the LinkOS SDK make use of a different mechanism that is impacted by the user account's privilege level and how can I override this?

Kind regards

Hello Peter,

Are you able to communicate with printer using ZebraDesigner tool that is running it under a domain account? Could you please to check it.

Dmitry Prokhorov

Software Engineer, Kutir Mobility

Posted on behalf of Zebra Technologies

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Hi Dmitry

I have tried with Zebra Designer on the same workstation with the same account and Zebra Designer is able to see the Printer.

Kind regards

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Hi Peter,

In case Zebra Designer is working ok with the same account it looks like a cause of your problem not in the LinkOS SDK.

Dmitry Prokhorov

Software Engineer, Kutir Mobility

Posted on behalf of Zebra Technologies

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Peter,

What version of Windows and of the LinkOS SDK are you using?

Javier Molina

Technical Architect, Kutir Mobility

Posted on behalf of Zebra Technologies

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Hi there,

i have the same problem. I'm using windows 10 and zebra link_os sdk v2, our printer is GK420t. We need to print via usb, because the our working place is not connected to the network.

I tried it in Java and in C#: if I am logged in as admin, I can print without problems from my Java or C# program. But once a standard user with restricted privileges is logged in under windows (which is usually the case), I can no longer print. The getZebraDriverPrinters() method still returns the printer, but a connection can no longer be established.

However, via the normal Windows Print dialog it is possible to print a test page, even with the restricted user.

Is there a solution?

Yours sincerely,

Ruth Neeßen

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Hello Ruth,

Could you please to check a version of your Link OS SDK and update it to most recent one?

It could be already fixed issue.

Dmitry Prokhorov

Software Engineer, Kutir Mobility

Posted on behalf of Zebra Technologies

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Hello, Dmitry,

Thank you so much for your answer. I removed the old library and downloaded the SDK again. The problem still exists. Do you have any idea how to solve it? We need the software quite urgently.

Thanks a lot!

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Did you manage to find a solution? I am having the same issue.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Hello Masood,

It's mainly a Windows security issue.  Windows is blocking use of the USB HID interface to non admin users.  There may be settings in the account that can be adjusted to allow for direct USB, but there isn't much that can be done in the SDK.  The only other option is to switch the connection type to Driver rather than direct USB.  There are limitations to the driver interface, mainly speed, but it will allow for USB connections that should be able to get past the Windows security properly.

 

Alexander Palchikov
Software Engineer, Kutir Mobility
Posted on behalf of Zebra Technologies

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’