[python-win32] determine the default printer from RDP

john johnf at jfcomputer.com
Tue Feb 25 20:50:11 EST 2020


Hi,

I need a way to determine the default printer (on the users computer) 
from a RDP session.

The user logs on to a RDP session and win32print.GetDefaultPrinter() 
returns a blank.  That makes sense on the RDP session because there 
aren't any default printers.  RDP printing is directed to the default 
printer on the users desktop.

Is there a way to get the default printer from the RDP session.

Johnf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20200225/fc12dd30/attachment.html>


More information about the python-win32 mailing list