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
Option Explicit | |
On Error Resume Next | |
' Fork from https://gallery.technet.microsoft.com/scriptcenter/Cleanup-Windows-581c1933 | |
' allowing for definition of desired cleanup tasks | |
SetRegKeys | |
DoCleanup | |
Sub DoCleanup() |
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 | |
echo. | |
REM check usage | |
if not exist .\procmon.exe goto ERR_RES | |
if not exist .\psexec.exe goto ERR_RES | |
set HOSTNAME=%1 | |
if not defined HOSTNAME goto USAGE | |
REM check to see if remote host is online |