[python-win32] User login details when running a service

Waseem Afser waseem.afser at gmail.com
Sat Apr 11 09:32:09 EDT 2020


Is there any possible method to get the logged in user's username from a
windows service ?

FYI: getpass.getuser() and other similar methods return the computer name
instead of the username of the user when the script runs as a service.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20200411/e70de59d/attachment.html>


More information about the python-win32 mailing list