Sometimes we want to know who is the logged on user on some windows station.
A simple way to check it is to use wmic command:
WMIC /NODE: xxx.xxx.xxx.xxx COMPUTERSYSTEM GET USERNAME
Will return the username currently logged into xxx.xxx.xxx.xxx
or
WMIC /NODE: "workstation_name" COMPUTERSYSTEM GET USERNAME
will return the username currently logged into "workstation_name"
Open command line: Start > type "cmd" (without quotes) and press enter.
Type the WMIC commands I wrote above, you should receive something like this:
Type the WMIC commands I wrote above, you should receive something like this:
אין תגובות:
הוסף רשומת תגובה