|
Posted by Roger Abell [MVP] on March 18, 2006, 11:34 am
Please log in for more thread options
You want such as what IsMember does ?
Why not look at the groups the account has direct membership in,
and then look at the membership of the local Administrators group,
and, if no matches fall out immediately then span the membership
trees forward from the account's memberships and/or backward
from the groups within Administrators. If you are lucky this is for
a single domain forest, or at least a forest without trusts, at least
if you want a fully general solution. You could use either WMI
or the ADSI Ldap provider to get at the info.
That said, I certainly hope that the install docs for the software
indicate the (I assume) requirement that the service be run in
context of account that is an Administrators member.
When I buy software, and after the fact find this out as it was
not listed in the pre-purchase requirements disclosure, I am very
unhappy and invariably send the software back. Most third-party
services should be able to run without that.
> Hi all,
>
> I am developer an installer and I need to verify if the account a user
> enters to run a service is an administrator account (local or domain). Do
> you
> know which functions of the API can I use? Is there any documentation
> about
> this?
>
>
> Thanks in advance.
>
> Omar Vera
|