I need lots of help here. I have a list of computers in a text file and I want to remotely query those computers (using reg query) and then have three different outputs to a text file depending on the result...for example:

1. If the registry key exists, output to text file "This key exists."
2. If the registry key does not exist, output to file "This key does not exist."
3. If the computer is inaccessible (turned off) output "This computer is turned off."

Any ideas?