Difference between revisions of "Qeury Windows Computer for Active User Accounts"
Jump to navigation
Jump to search
Michael.mast (talk | contribs) (Created page with "<ref>https://serverfault.com/questions/195510/determine-logged-on-user-on-windows-computer-from-linux</ref> <pre> net rpc registry enumerate "HKEY_USERS" -W <workgroup or doma...") |
Michael.mast (talk | contribs) |
||
Line 2: | Line 2: | ||
<pre> | <pre> | ||
net rpc registry enumerate "HKEY_USERS" -W <workgroup or domain> -S <server name> -U '<username>@<domain>' | net rpc registry enumerate "HKEY_USERS" -W <workgroup or domain> -S <server name> -U '<username>@<domain>' | ||
− | + | </pre> | |
+ | On the windows computer | ||
+ | <ref>https://www.lifewire.com/how-to-find-a-users-security-identifier-sid-in-windows-2625149</ref> | ||
+ | <pre> | ||
+ | wmic useraccount where name="USER" get sid | ||
</pre> | </pre> |
Latest revision as of 12:41, 24 April 2017
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