nerdexam
GIAC

GCIH · Question #828

An incident handler runs the following command on a Windows system. What information will be displayed? net localgroup administrators

The correct answer is B. Accounts with local administrative privileges. net localgroup administrators lists all accounts that are members of the local Administrators group on a Windows system, regardless of login state.

Reconnaissance, Scanning, and Enumeration

Question

An incident handler runs the following command on a Windows system. What information will be displayed? net localgroup administrators

Options

  • AAdministrators with remote connections to the system
  • BAccounts with local administrative privileges
  • CLocal admin account tied to running processes
  • DLocal and domain admins that are currently logged onto the system

How the community answered

(66 responses)
  • A
    2% (1)
  • B
    88% (58)
  • C
    8% (5)
  • D
    3% (2)

Why each option

net localgroup administrators lists all accounts that are members of the local Administrators group on a Windows system, regardless of login state.

AAdministrators with remote connections to the system

net localgroup administrators reports group membership, not active remote connections; 'net session' is the appropriate command to view remote connections.

BAccounts with local administrative privilegesCorrect

The 'net localgroup administrators' command queries the local Security Accounts Manager (SAM) database and returns every user and group account that is a member of the built-in local Administrators group. This includes both local accounts and domain accounts that have been added to the local group, and it shows membership independent of whether those accounts are currently active or connected.

CLocal admin account tied to running processes

net localgroup administrators shows group membership, not which processes are running under administrative accounts; tools like 'tasklist /v' provide that process-level detail.

DLocal and domain admins that are currently logged onto the system

net localgroup administrators lists all group members regardless of login state; 'query user' or 'net session' would show only currently logged-on users.

Concept tested: Windows local group membership enumeration

Source: https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc725622(v=ws.11)

Topics

#Windows commands#net localgroup#local group enumeration#privilege enumeration

Community Discussion

No community discussion yet for this question.

Full GCIH Practice