This is just a script I run for my users who complain alot about the computer[s] running slow. The script just reboots the computer.
REM -===- VERSION 1.01 -===-
@ECHO
OFF
ECHO ====================================================================
ECHO FixMost of IT
ECHO.
ECHO Please note this script should fix most of your problems
Echo.
ECHO Press any key to continue, or press Ctrl-C to Cancel.
ECHO ====================================================================
ECHO.
Pause.
CLS
ver|find "Windows XP" > NUL
if errorlevel 1 goto 2K
ECHO Windows XP Detected.
shutdown /r
goto END
:2K
ver|find "Windows 2000" >NUL
if errorlevel 1 goto 2k3
ECHO Windows 2000 Detected.
shutdown /r
goto END
:2K3
ver|find "Version 5.2" >NUL
if errorlevel 1 goto Win7
ECHO Windows 2003 Detected.
shutdown /r
:Win7
ver|find "Version 6.1" >NUL
if errorlevel 1 goto ERR
ECHO Windows 7 Detected.
shutdown /r
goto END
:END
ECHO.
ECHO ====================================================
ECHO Your computer will run great after this reboot
ECHO Computer will now reboot
ECHO JIMMY IS A GENIUS
ECHO ====================================================
Echo.
Pause
EXIT