Created
September 26, 2018 15:28
-
-
Save deejay7/a371bc531d0587a39f444c259665cf72 to your computer and use it in GitHub Desktop.
Get uptime from list of servers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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