A lot of time I need to know who owns a PC that connecting to database etc.
I used to use nbtstat but it's not always tell me the answer. now I use wmic.
C:\windows\system32>wmic.exe /node:pcname computersystem get username
UserName
domainname\jsun
thanks to this link:
https://community.spiceworks.com/how_to/40336-use-cmd-to-return-the-logged-in-user-of-a-remote-computer
I used to use nbtstat but it's not always tell me the answer. now I use wmic.
C:\windows\system32>wmic.exe /node:pcname computersystem get username
UserName
domainname\jsun
thanks to this link:
https://community.spiceworks.com/how_to/40336-use-cmd-to-return-the-logged-in-user-of-a-remote-computer
Comments
Post a Comment