psloggedon timeout question.
Posted
by
user60707
on Server Fault
See other posts from Server Fault
or by user60707
Published on 2010-11-18T11:36:42Z
Indexed on
2010/12/21
8:55 UTC
Read the original article
Hit count: 282
pstools
Hi guys, I have a list of machine names from my network that I have put in a batchfile to run through the list and show me who is logged onto each.
psloggedon \machineA psloggedon \machineB psloggedon \machineC psloggedon \machineD psloggedon \machineE psloggedon \machineF
Psloggedon works fine, however when it hits a machine that isnt actually on the network, it hangs for a good 30 - 60 seconds before moving onto the next machine...I was just wondering if there was any way to speed this up so that if it hits a machine that isnt on the network, it moves onto the next machine in the list much quicker.
I have read in other places that this could be possible by adding a ping -n loop into the command but im not sure how to get that to work? any ideas guys?
Many thanks in advance. Jimmy
© Server Fault or respective owner