SCRIPTING
Hi everyone
Does anyone know of a way of extracting the names of workstations logged into a given server in such a way that it can be used as input for a shell script?
Thanks in advance
Daryl Sheppard
daryl_s@iprimus.com.au
Windows Forum
Hi everyone
Does anyone know of a way of extracting the names of workstations logged into a given server in such a way that it can be used as input for a shell script?
Thanks in advance
Daryl Sheppard
daryl_s@iprimus.com.au
by shmaltz
by shmaltz
Use %computername%
to test it goto a command prompt type:
" echo %computername% "
Don't know what OS you're on but try something using netstat:
netstat -a
will give a listing of local and remote machine DNS names, as well as protocols, ports, and session status.
netstat -a > myfile.txt
will direct the output to myfile.txt, after which you can use other scripting commands to strip out the information that you don't need.
Hope that helps -
This discussion is closed to new replies.
Sort by Trending