From Michael's Information Zone
Jump to: navigation, 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