2025-12-04 / Log: enumerating_users_groups_windows

Enumerating Users & Groups (Windows)

Enumerating Users & Groups (Windows)

Classification: Host & Network Penetration Testing / Post-Exploitation
Target: Windows host (Meterpreter via Rejetto HFS)

1. Executive Summary

After exploiting Rejetto HFS, we enumerate the Windows host’s users, privileges and groups — identifying the current context, logged-on users, local accounts and privileged-group membership (Administrators, Remote Desktop Users).

2. Foothold & Current User

Meterpreter via Rejetto HFS

getuid
getprivs

Current user

Current user privileges (admin)

3. Logged-on Users

run post/windows/gather/enum_logged_on_users

enum_logged_on_users — SIDs and usernames

shell
whoami /priv

Shell — user and privileges

query user

Currently logged-on users

4. Local Accounts

net user

All local accounts

net user administrator

Specific account details

net user guest

Guest account (inactive)

5. Groups

net localgroup

Local groups

net localgroup Administrators

Administrators group members

6. Notes

Membership in Administrators (full control), Remote Desktop Users (RDP logon) and backup/privileged groups directly informs privilege escalation and lateral movement.