how to get remote Workstation / VDI / server user logon dates

1

I have seen in another thread that the command ...

wmic netlogin get name, fullname, lastlogon

... will show us log on information on a Windows workstation. Do we have a similar command for remote workstations?

Background users requests resource but will not release them if not used anymore. If there is no log on since a while the resource could be released.

Peter Boehm

Posted 2015-01-05T23:50:06.863

Reputation: 11

1You can run wmic against a remote computer with the /node switch. E.g. wmic /node:computer_name netlogin get name, fullname, lastlogon – None – 2015-01-06T00:01:53.673

Answers

0

query user /server:<server>

STTR

Posted 2015-01-05T23:50:06.863

Reputation: 6 180

The issue with "query" is that it allows to see the current logons only but not the logons in the past. – Peter Boehm – 2015-01-06T19:53:53.360