shadowbrokers-exploits/windows/Resources/Ep/Scripts/Scheduler.eps.bak

32 lines
904 B
PostScript
Raw Normal View History

#--------------------------------------------------------
# File: Scheduler.eps
#
# Start State: Assumes SYSTEM/ADMIN privs
# End State: Scheduler information is returned
# Errors:
# Comments:
#
# Modifications:
# 05/18/01 Created
#--------------------------------------------------------
ifnot (prompt "Do you wish to perform a Scheduler survey of the target?") {
echo "Aborting script...";
return false;
}
# check for any tasks that are scheduled in the near-term
`scheduler -local`;
echo "";
echo "Check if anything set to run during the next hour...";
echo "";
pause;
ifnot(`dir *.job -path c:\\winnt\\tasks`) {
echo "run dir on the following TasksFolder directory to obtain a complete task list";
`regquery -hive l -subkey "Software\\Microsoft\\SchedulingAgent" -value TasksFolder`;
}
echo "scheduler-Survey is complete";
pause;
return true;