@echo off
set me=logon
for /F %%S in (myservers.txt) do (@echo %%S && @query session /SERVER:%%S
|
find "%me%")
- Change `me` to your domain logon
- create myservers.txt with a list of the servers you want to limit your search to, then save it in the same folder as this script.
No comments:
Post a Comment