c# - How to check a particular user has log on as service right programmatically -


for application check whether particular user has log on service right? how programmatically? checked in internet , not find out resource

thanks

upul

do have token account? if can call gettokeninformation tokeninformationclass == tokenprivileges. return list of privileges associated token , whether or not have been activated.

if account isn't logged in , can't token, becomes harder. can't query privileges allowed account let alone privileges of account's groups bring token. need logon account retrieve token , follow previous advice.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -