Determine rights and privileges on Windows.

Colin Brown cbrown at metservice.com
Fri May 28 02:17:15 EDT 2004


"Peter Schmiedeskamp" <pschmied at yahoo.com> wrote in message
news:mailman.369.1085675362.6949.python-list at python.org...
> Hello, I'm writing a python program (in Windows) from
> which I would like to determine whether or not either:
> 1. The user has administrative access on the current
> PC.
> or (better)
> 2. The currently running process has administrative
> access.

Hi Peter

It may be worth having a look at WMI  (Google "python wmi").

Cheers
Colin Brown
PyNZ






More information about the Python-list mailing list