Intend to come up with a batch script that will verify which servers I am currently logged into.
Seen all the powershell scripts but would like help getting this to work.
Script name is login.bat username to verify
for /f %%? in (servers.log)) do
('qwinsta /server:%i | find %1 ')
( 'echo %pathName% is logged into %? ') >output.log
Thanks in advance