Skip to content

Instantly share code, notes, and snippets.

@dstaulcu
dstaulcu / windowsCleanupProfileCreateEx.vbs
Last active February 18, 2016 07:11
Automate creation of cleanup task profile and execute corresponding tasks. This is a fork of example code in https://gallery.technet.microsoft.com/scriptcenter/Cleanup-Windows-581c1933 having cleanup tasks of interest to a particular case.
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()
@dstaulcu
dstaulcu / get-remoteprocmon.bat
Last active October 17, 2015 21:18
get-remoteprocmon
@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