Skip to content

Instantly share code, notes, and snippets.

@deejay7
Created September 26, 2018 15:28
Show Gist options
  • Select an option

  • Save deejay7/a371bc531d0587a39f444c259665cf72 to your computer and use it in GitHub Desktop.

Select an option

Save deejay7/a371bc531d0587a39f444c259665cf72 to your computer and use it in GitHub Desktop.
Get uptime from list of servers
@Echo off
setlocal EnableDelayedExpansion
cls
echo Running Uptime
for /F %%i in (Servers.txt) do (
c:\server\tools\uptime.exe \\"%%i" >>UptimeReport.txt
)
Echo .
Echo DONE!!!
::c:\server\tools\uptime.exe
:: Author : JD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment