Get Windows user rights with PHP or with PHP and external application

82 views Asked by At

I'm working on a Windows tool coded with PHP that proposes different options according to the user rights.

So, the tool needs to know first what are the user rights. I didn't find any PHP variable providing those information. I've found accesschk.exe but I didn't get any useful information.

First, I need to know if the user can install a service. So, I guess that I need to know if he is an administrator. Is there any CLI application that can get the user permissions ?

Thanks

0

There are 0 answers