What’s the rule that users are visible in windows control panel?

  winapi, windows

I want to list users without WDAGUtilityAccount and other service accounts.
Just like the users list in the Windows Control Panel.

However, both wmic and NetUserEnum(UF_NORMAL_ACCOUNT) will show all users including WDAGUtilityAccount.

By my experience, the users shown in the Control Panel are users under Administrators / Users / Power Users / Guests, but I cannot find a document to prove this.

Is there a rule that filters out the service accounts like WDAGUtilityAccount?

Source: Windows Questions

LEAVE A COMMENT