psloggedon timeout question
- by user60707
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