How to check a service account is built-in network service account? -


I have to check that the service account (xxx \ yyy $) has a built-in network service account. In a way, I am thinking that the account name is compared with "domainName \ hostname $"; if it is equal then there is a network service account; not otherwise.

I believe that some simple APIs (C / C ++) can help me anyone know this?

You have to compare the actual SID.

View in Microsoft, where you will find:

SID: S-1-5-20

Name: NT Authority

P> Description: Network Service


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -