I have a script which does a great job of using the uptime.exe to output a barebones uptime number. I am wanting to use a VBScript to do the same task and have it acquire hostnames from "servers.txt". The text file has one servername per line.
Uptime.exe <servername> is the syntax for remote access.
I am inluding the existing shell script below.
for /f "tokens=6,7,8,10 delims=, " %%a in ('"uptime.exe"') do (
if %hh% LSS 10 set hh=0%hh%
if %mm% LSS 10 set mm=0%mm%
echo Uptime: %Uptime%