ToolsFebruary 9, 20261 min readby 0xt0pus

net rpc

Samba utility for managing Windows remote resources including password changes and group membership


Net RPC

Description

Net rpc is used in Active Directory environments to manage group memberships and change user passwords remotely via RPC. It is particularly useful when you have GenericWrite or ForceChangePassword permissions.

Usage 1: Change User Password

Forcefully change the password of a target user when you have permissions.

Command:

net rpc password "TargetUser" "newP@ssword2022" -U "DOMAIN"/"ControlledUser"%"Password" -S "DomainController"

Usage 2: View Group Members

List members of a specific group.

Command:

net rpc group members Management -U certified/judith.mader%judith09 -S 10.10.11.41

Usage 3: Add User to Group

Add a user to a group when you have the permissions to do so.

Command:

net rpc group addmem Management judith.mader -U certified/judith.mader%judith09 -S 10.10.11.41