Qeury Windows Computer for Active User Accounts

From Michael's Information Zone
Jump to navigation Jump to search

[1]

net rpc registry enumerate "HKEY_USERS" -W <workgroup or domain> -S <server name> -U '<username>@<domain>'

On the windows computer [2]

wmic useraccount where name="USER" get sid