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
Post a Comment