Anyone know how to determine the workstation names that users are loged onto? I have 400 users, and I need to know the workstation names they are logged onto. server manager tells me, but I need something I can run at the command prompt.
date /T >> \\*server*\*directory*\%COMPUTERNAME%.log
time /T >> \\*server*\*directory*\%COMPUTERNAME%.log
echo %USERNAME% >> \\*server*\*directory*\%COMPUTERNAME%.log
echo "====================== " >> \\*server*\*directory*\%COMPUTERNAME%.log
For what you want to do just juxtapose the %computername% and %username% and you'll get a whole bunch of text files in a directory showing when and where the users have logged on.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.