I'm not familiar with scripting. I have a task at hand which requires to check server uptimes to make sure if they were actually re-booted when they suppose to.
I was going through Google Search and have found an idea of an
input.txt file, which contains all server names and
output.txt, which contains the result.
The issue is that each server has a unique general login. e.g login name is
domain\server1, password is
server1domain. My input file is like:
domain\server1, server1domain domain\server2, server2domain domain\sevrer3, server3domain
I would like to use
serverinfo /s | find "uptime" >>c:\output.txt, and
output.txt I would like to be:
domain\server1 uptime <uptime of server> domain\server2 uptime <uptime of server> domain\server3 uptime <uptime of server>
and so on until end of
Could someone create a very basic batch file?