SparkMonkeyHellion
Banned
- Messages
- 546
- Location
- Guantanomo Bay, Cuba
Okay, I've exported a list of all our machines from Active Directory, which I then opened in Excel and added "echo y| ping " to the column to the left of the machine names and ">> machineinfo.txt" to the right, and then exported that as .txt and saved it into a .bat
Clever huh?
So now I can get all the info for our machines, see which ones are alive and which ones aren't. But the output looks terribly cluttered as the ">>" command simply outputs the entire PING result into the text file.
So what I'm looking for is some way to just quickly say "%computername% is alive/dead" in a .txt file.
Any ideas?
Clever huh?
So now I can get all the info for our machines, see which ones are alive and which ones aren't. But the output looks terribly cluttered as the ">>" command simply outputs the entire PING result into the text file.
So what I'm looking for is some way to just quickly say "%computername% is alive/dead" in a .txt file.
Any ideas?