[python-win32] LocalService, COM

Dahlstrom, Roger RDahlstrom at directedge.com
Thu Oct 31 17:45:36 CET 2013


Because both LocalService and NetworkService have minimal privileges on the local computer, while LocalSystem, admin, and guest have more extensive privileges.

From: python-win32 [mailto:python-win32-bounces+rdahlstrom=directedge.com at python.org] On Behalf Of Tore Klars
Sent: Thursday, October 31, 2013 12:00 PM
To: python-win32 at python.org
Subject: [python-win32] LocalService, COM

I'm debugging a COM issue with pythoncom: a Python program is unable communicate
with VirtualBox over COM when run under the LocalService or NetworkService
Windows accounts. The same program can communicate with VirtualBox without issue
under the LocalSystem, administrator, and Guest accounts.

Under LocalService and NetworkService, this line

  win32com.client.Dispatch('VirtualBox.VirtualBox')

raises

  com_error(-2147024891, 'Access is denied.', None, None)

Why are the LocalService and NetworkService accounts unable to communicate with
VirtualBox over COM?

Thank you.

________________________________
DISCLAIMER:
This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this in error, please immediately notify me and permanently delete the original and any copy of any e-mail and any printout thereof. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. Direct Edge may, at its discretion, monitor and review the content of all e-mail communications.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20131031/dae43fe6/attachment.html>


More information about the python-win32 mailing list