CompTIA PenTest+ PT0-002 Practice Question
During an internal penetration test, you have gained a shell on a Windows server. Now, you aim to perform enumeration to identify domain users for potential lateral movement. What command should you use to list all users in the domain?
Get-LocalUser
dsquery
netstat -an
net user /domain