How to get the name of the windows default user group

access-control-listuser-managementuser-permissionswindows 7windows-xp

We want to change file permissions for the windows default user group.

The problem is, depending on windows version (xp,win 7) and language, the name of this default user group differs. Sometimes the name of the group is "Benutzer", sometimes it is "User".

How can I get this name programmatically?

Best Answer

You shouldn't be changing the name of the group. Rather, you should be referencing the group by its well-known SID. You can't guarantee what the names of built-in groups will be in other localized versions of Windows, or in future versions, but the well-known SIDs will stay the same.