The command-line tool rpcclient, which originates from the Samba suite, provides direct access to Windows systems over MS-RPC. Its capabilities range from enumerating domain accounts, shares, and privileges to performing write operations on SAM and LSA. Pentesters, auditors, and administrators can therefore use it to analyze Active Directory environments in detail.
Originally created to verify the correctness of MS-RPC implementations inside Samba, rpcclient gradually became a permanent fixture in the standard toolkit of red-team operators and corporate security teams. It remains state-of-the-art for many tasks. From a Linux workstation the tool grants immediate access to the SAM, LSA, NETLOGON, SRVSVC, SPOOLSS, and additional named pipes without any detour through graphical management consoles.
Practical command examples
The following sections illustrate typical invocations against a domain controller and group the commands according to their primary use case.
- Domain account and group enumeration
- Share and session listing
- Privilege and policy inspection
- Direct modification of SAM and LSA data when authorized
Security professionals continue to rely on these techniques because they deliver rapid, scriptable insight into Active Directory configurations and potential misconfigurations.

