net view shows all systems on the network, and then DF's command will give you the shares on a given system. You can also pipe the results to a text file.
Clutch, not that I argue with you, but just net view reads the cache i.e. it also shows all computers that have been powered on recently (the posters orig problem). DF's command returns an error code if the PC is off, real time, as it is polling that machine.
I find it strange that there (apparently) is no way to see only
currently active PC's on a LAN with one command. Same goes for connected shares, I guess. AFAIK, there isn't really an easy way to display all currently connected users either, except in some circumstances thru the task manager.
The most practical solution I've found to do this is to use a script or a batch file, pinging all the PC's of the LAN. There are also plenty of 3rd party apps that show connected computers, but I haven't found one that is both freeware and can automatically print the results to a file. A good one though is
Bopup, shows you all info in a window and can (manually) print to a file.
The reason I want to do this is that I use a great little app called
CoolMon (it is really cool) to show my system stats on the desktop, and I wanted to include the status of the PC's on my home LAN. Works fine know with a script & DLL off their site !
H.