Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- TITLE Utility Batch
- color 0a
- C:
- CD\
- ::: Batch made by Dan _ __,----'~~~~~~~~~`-----.__
- ::: . . `//====-_ ___,-' `
- ::: -. \_|// . /||\\ `~~~~`---.___./
- ::: ______-==. _-~o~ \/ ||| \\ _,'`
- ::: __,--' ,=='||\=_ ;_--~/_-'|- |`\ \\ ,'
- ::: _-' ' | \\`. '-'~7 /- / || `\. /
- ::: .' //// || | \\ \_ / /- / || \ /
- ::: / ____ O-O--= | \\.`-_/ /|- _/ ,|| \ /
- ::: ,-' ( ^ _/\_ --_ \ `==-/ `| \'--===-' _/`
- ::: /\~-\/ \ `-| /| )-'\~' _,--~'
- ::: /|`/ _ \_ \ '-~~\_/ | | `\_ ,~ /\
- ::: / | : U_/ / / \ \__ \/~ `\__
- ::: \(__:__ \_/ _,-' _/'\ ,-'~____-'`-/ ``===\
- ::: =@===== ((->/' \|||' `. ~`-/ , _||
- ::: | | \_ ~\ `^---|__i__i__\--~'_/
- ::: / | | __-^-_ `) \-.______________,-~'
- ::: / /| | //,-'~~`__--^- |-------~~~~~'
- ::: | | | | //,--~~`-\
- ::: |__| |__|
- ::: /#_) |#\
- CLS
- :Peram1
- CLS
- SET /P dnumber=Please Enter DNumber or IP Address:
- CLS
- SET /P user=Please Enter the username:
- CLS
- xcopy "C:\Transfer\HTA\Batch\Other material\Batch\Ip.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
- GOTO MMENU
- :MMENU
- CLS
- ECHO ============= MAIN MENU =============
- ECHO -------------------------------------
- ECHO **** Caller: %user% ****
- ECHO **** Device: %dnumber% ****
- ECHO -------------------------------------
- ECHO 1. Enter new Caller Details
- ECHO -------------------------------------
- ECHO 2. Scripts to be run on the device
- ECHO 3. Remote Scripts
- ECHO -------------------------------------
- ECHO ==========PRESS 'Q' TO QUIT==========
- ECHO .
- SET MINPUT=
- SET /P MINPUT=Please select a number:
- IF /I '%MINPUT%'=='1' GOTO Peram1
- IF /I '%MINPUT%'=='2' GOTO LMenu
- IF /I '%MINPUT%'=='3' GOTO RMenu
- IF /I '%MINPUT%'=='tic' GOTO Tictac
- IF /I '%MINPUT%'=='Q' GOTO Quit
- CLS
- ECHO ============INVALID INPUT============
- ECHO -------------------------------------
- ECHO Please select a number from the Main
- ECHO Menu [1-3] or select 'Q' to quit.
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE > NUL
- GOTO MMENU
- :LMENU
- CLS
- ECHO ===================== Scripts for Device =====================
- ECHO --------------------------------------------------------------
- ECHO 1. IP Config
- ECHO 2. GP Update
- ECHO 3. Clean Up
- ECHO 4. Toggle Proxy
- ECHO 5. Get Shared Drives
- ECHO 6. Outlook OST Refresh
- ECHO 7. Map or Remove Shared Drive
- ECHO 8. DVD Disable/Enable
- ECHO 9. SFC Scan Fix (Run As Admin, On your profile)
- ECHO 10. Ip Release / Renew
- ECHO 11. Tools
- ECHO 12. Network Reset and Clear
- ECHO 13. Rebuild Search Index (Run As Admin, On your profile)
- ECHO 14. Printer Spool Clear and reset
- ECHO 15. Clear Outlook Auto Complete (From or To, Cc, Bcc)
- ECHO 16. IE With No Add-ons
- ECHO 17. Enable .net Framework 3.5 (Run As Admin, On your profile)
- ECHO --------------------------------------------------------------
- ECHO ==========PRESS 'M' for Main Menu or 'Q' for Quit ============
- ECHO .
- SET LINPUT=
- SET /P LINPUT=Please select a number:
- IF /I '%LINPUT%'=='1' GOTO LSelection1
- IF /I '%LINPUT%'=='2' GOTO LSelection2
- IF /I '%LINPUT%'=='3' GOTO LSelection3
- IF /I '%LINPUT%'=='4' GOTO LSelection4
- IF /I '%LINPUT%'=='5' GOTO LSelection5
- IF /I '%LINPUT%'=='6' GOTO LSelection6
- IF /I '%LINPUT%'=='7' GOTO LSelection7
- IF /I '%LINPUT%'=='8' GOTO LSelection8
- IF /I '%LINPUT%'=='9' GOTO LSelection9
- IF /I '%LINPUT%'=='10' GOTO LSelection10
- IF /I '%LINPUT%'=='11' GOTO LSelection11
- IF /I '%LINPUT%'=='12' GOTO LSelection12
- IF /I '%LINPUT%'=='13' GOTO LSelection13
- IF /I '%LINPUT%'=='14' GOTO LSelection14
- IF /I '%LINPUT%'=='15' GOTO LSelection15
- IF /I '%LINPUT%'=='16' GOTO LSelection16
- IF /I '%LINPUT%'=='17' GOTO LSelection17
- IF /I '%LINPUT%'=='M' GOTO MMenu
- IF /I '%LINPUT%'=='Q' GOTO Quit
- CLS
- ECHO ============INVALID INPUT============
- ECHO -------------------------------------
- ECHO Please select a number from the Main
- ECHO Menu [1-17] or select 'M' for main
- ECHO menu or 'Q' for Quit.
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE > NUL
- GOTO MMENU
- :RMENU
- CLS
- ECHO ===================== Remotely Run Scripts ==================
- ECHO -------------------------------------------------------------
- ECHO 1. Kill Task
- ECHO 2. Connection test
- ECHO 3. VCT-Outlook Add-in Fix
- ECHO 4. Back and Restore
- ECHO 5. Kick User
- ECHO 6. Ping User
- ECHO 7. VCT not opening
- ECHO 8. Add Desktop Shortcuts
- ECHO 9. Bitlocker Reset Lockout
- ECHO 10. CMS Fix Exception ID 39
- ECHO 11. Clean Prosecutor App
- ECHO 12. CMS Clean Up
- ECHO 13. NSLookup
- ECHO 14. Insufficient Memory Fix
- ECHO 15. OST Refresh
- ECHO 16. GPResult (Computer Or User Policy)
- ECHO ------------------------------------------------------------
- ECHO ==========PRESS 'M' for Main Menu or 'Q' for Quit ==========
- ECHO .
- SET RINPUT=
- SET /P RINPUT=Please select a number:
- IF /I '%RINPUT%'=='1' GOTO RSelection1
- IF /I '%RINPUT%'=='2' GOTO RSelection2
- IF /I '%RINPUT%'=='3' GOTO RSelection3
- IF /I '%RINPUT%'=='4' GOTO RSelection4
- IF /I '%RINPUT%'=='5' GOTO RSelection5
- IF /I '%RINPUT%'=='6' GOTO RSelection6
- IF /I '%RINPUT%'=='7' GOTO RSelection7
- IF /I '%RINPUT%'=='8' GOTO RSelection8
- IF /I '%RINPUT%'=='9' GOTO RSelection9
- IF /I '%RINPUT%'=='10' GOTO RSelection10
- IF /I '%RINPUT%'=='11' GOTO RSelection11
- IF /I '%RINPUT%'=='12' GOTO RSelection12
- IF /I '%RINPUT%'=='13' GOTO RSelection13
- IF /I '%RINPUT%'=='14' GOTO RSelection14
- IF /I '%RINPUT%'=='15' GOTO RSelection15
- IF /I '%RINPUT%'=='16' GOTO RSelection16
- IF /I '%RINPUT%'=='M' GOTO MMenu
- IF /I '%RINPUT%'=='Q' GOTO Quit
- CLS
- ECHO ============INVALID INPUT============
- ECHO -------------------------------------
- ECHO Please select a number from the Main
- ECHO Menu [1-16] or select 'M' for main
- ECHO menu or 'Q' for Quit.
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE > NUL
- GOTO MMENU
- REM ------------------------------------------------------------local Scripts---------------------------------------------------------------------------------------
- :LSelection1
- CLS
- ECHO ============= Please Wait =============
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- timeout /T 3 /NOBREAK>NUL
- xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\ip.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
- ECHO ==============THANKYOU===============
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :LSelection2
- CLS
- ECHO ============= Please Wait =============
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- timeout /T 3 /NOBREAK>NUL
- xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\gp.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
- ECHO ==============THANKYOU===============
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :LSelection3
- CLS
- ECHO ==============THANKYOU===============
- ECHO ------IE is about to be Closed-------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- CLS
- ECHO ============= Please Wait =============
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- timeout /T 3 /NOBREAK>NUL
- taskkill /S %dnumber% /F /IM iexplore.exe /T
- xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\Clean Up.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
- rd /s /q \\%dnumber%\C$\Temp\
- rd /s /q \\%dnumber%\C$\Windows\Temp\
- rd /s /q \\%dnumber%\C$\Users\%user%\AppData\Local\Temp\
- timeout /T 3 /NOBREAK>NUL
- mkdir \\%dnumber%\C$\Temp\
- mkdir \\%dnumber%\C$\Windows\Temp\
- mkdir \\%dnumber%\C$\Users\%user%\AppData\Local\Temp\
- ECHO ==============THANKYOU===============
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :LSelection4
- CLS
- ECHO ============= Please Wait =============
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- timeout /T 3 /NOBREAK>NUL
- xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\Proxytoggle.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
- ECHO ==============THANKYOU===============
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :LSelection5
- CLS
- ECHO ============= Please Wait =============
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- timeout /T 3 /NOBREAK>NUL
- xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\Drives.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
- ECHO ==============THANKYOU===============
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :LSelection6
- CLS
- ECHO ============= Please Wait =============
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- timeout /T 3 /NOBREAK>NUL
- xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\OutlookOSTResfresh.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
- ECHO ==============THANKYOU===============
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :LSelection7
- CLS
- ECHO ============= Please Wait =============
- timeout /T 3 /NOBREAK>NUL
- xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\map.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
- ECHO ==============THANKYOU===============
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :LSelection8
- CLS
- ECHO ============= Please Wait =============
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- timeout /T 3 /NOBREAK>NUL
- xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\DVDDE.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
- ECHO ==============THANKYOU===============
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :LSelection9
- CLS
- ECHO ============= Please Wait =============
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- timeout /T 3 /NOBREAK>NUL
- xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\sfcs.bat" "\\%dnumber%\C$" /E /I /Q /H
- ECHO ==============THANKYOU===============
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :LSelection10
- CLS
- ECHO ============= Please Wait =============
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- timeout /T 3 /NOBREAK>NUL
- xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\IPR.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
- ECHO ==============THANKYOU===============
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :LSelection11
- CLS
- ECHO ============= Please Wait =============
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- timeout /T 3 /NOBREAK>NUL
- xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\Run Me.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
- xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\Tools.bat" "\\%dnumber%\C$\" /E /I /Q /H
- ECHO ==============THANKYOU===============
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :LSelection12
- CLS
- ECHO ============= Please Wait =============
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- timeout /T 3 /NOBREAK>NUL
- xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\Networkreset.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
- ECHO ==============THANKYOU===============
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :LSelection13
- CLS
- ECHO ============= Please Wait =============
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- timeout /T 3 /NOBREAK>NUL
- xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\Index.bat" "\\%dnumber%\C$" /E /I /Q /H
- ECHO ==============THANKYOU===============
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :LSelection14
- CLS
- ECHO ============= Please Wait =============
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- timeout /T 3 /NOBREAK>NUL
- xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\Printspoolreset.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
- ECHO ==============THANKYOU===============
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :LSelection15
- CLS
- ECHO ============= Please Wait =============
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- timeout /T 3 /NOBREAK>NUL
- xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\ClearAutoFrom.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
- ECHO ==============THANKYOU===============
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :LSelection16
- CLS
- ECHO ============= Please Wait =============
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- timeout /T 3 /NOBREAK>NUL
- xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\IEnoADD.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
- ECHO ==============THANKYOU===============
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :LSelection17
- CLS
- ECHO ============= Please Wait =============
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- timeout /T 3 /NOBREAK>NUL
- xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\Enable Framework 3.5.bat" "\\%dnumber%\C$" /E /I /Q /H
- ECHO ==============THANKYOU===============
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO MMENU
- REM ------------------------------------------------------------End of local Scripts---------------------------------------------------------------------------------------
- REM -------------------------------------------------------------Tic Tac Toe------------------------------------------------------------------------------------
- :Tictac
- @ECHO OFF
- :BEGIN
- REM Skill level
- set sl=
- cls
- echo Tic Tac Toe (Q to quit)
- echo.
- echo.
- echo Pick your skill level (press a number)
- echo.
- echo (1) Easy
- echo (2) Average Mental Case
- echo (3) Oversized Ego
- CHOICE /c:123q /n > nul
- if errorlevel 4 goto MMENU
- if errorlevel 3 set sl=3
- if errorlevel 3 goto layout
- if errorlevel 2 set sl=2
- if errorlevel 2 goto layout
- set sl=1
- :LAYOUT
- REM Player turn ("x" or "o")
- set pt=
- REM Game winner ("x" or "o")
- set gw=
- REM No moves
- set nm=
- REM Set to one blank space after equal sign (check with cursor end)
- set t1=
- set t2=
- set t3=
- set t4=
- set t5=
- set t6=
- set t7=
- set t8=
- set t9=
- :UPDATE
- cls
- echo (S to set skill level) Tic Tac Toe (Q to quit)
- echo.
- echo You are the X player.
- echo Press the number where you want to put an X.
- echo.
- echo Skill level %sl% 7 8 9
- echo 4 5 6
- echo 1 2 3
- echo.
- echo : :
- echo %t1% : %t2% : %t3%
- echo ....:...:....
- echo %t4% : %t5% : %t6%
- echo ....:...:....
- echo %t7% : %t8% : %t9%
- echo : :
- if "%gw%"=="x" goto winx2
- if "%gw%"=="o" goto wino2
- if "%nm%"=="0" goto nomoves
- :PLAYER
- set pt=x
- REM Layout is for keypad. Change CHOICE to "/c:123456789sq /n > nul"
- REM for numbers to start at top left (also change user layout above).
- CHOICE /c:789456123sq /n > nul
- if errorlevel 11 goto MMENU
- if errorlevel 10 goto begin
- if errorlevel 9 goto 9
- if errorlevel 8 goto 8
- if errorlevel 7 goto 7
- if errorlevel 6 goto 6
- if errorlevel 5 goto 5
- if errorlevel 4 goto 4
- if errorlevel 3 goto 3
- if errorlevel 2 goto 2
- goto 1
- :1
- REM Check if "x" or "o" already in square.
- if "%t1%"=="x" goto player
- if "%t1%"=="o" goto player
- set t1=x
- goto check
- :2
- if "%t2%"=="x" goto player
- if "%t2%"=="o" goto player
- set t2=x
- goto check
- :3
- if "%t3%"=="x" goto player
- if "%t3%"=="o" goto player
- set t3=x
- goto check
- :4
- if "%t4%"=="x" goto player
- if "%t4%"=="o" goto player
- set t4=x
- goto check
- :5
- if "%t5%"=="x" goto player
- if "%t5%"=="o" goto player
- set t5=x
- goto check
- :6
- if "%t6%"=="x" goto player
- if "%t6%"=="o" goto player
- set t6=x
- goto check
- :7
- if "%t7%"=="x" goto player
- if "%t7%"=="o" goto player
- set t7=x
- goto check
- :8
- if "%t8%"=="x" goto player
- if "%t8%"=="o" goto player
- set t8=x
- goto check
- :9
- if "%t9%"=="x" goto player
- if "%t9%"=="o" goto player
- set t9=x
- goto check
- :COMPUTER
- set pt=o
- if "%sl%"=="1" goto skill1
- REM (win corner to corner)
- if "%t1%"=="o" if "%t3%"=="o" if not "%t2%"=="x" if not "%t2%"=="o" goto c2
- if "%t1%"=="o" if "%t9%"=="o" if not "%t5%"=="x" if not "%t5%"=="o" goto c5
- if "%t1%"=="o" if "%t7%"=="o" if not "%t4%"=="x" if not "%t4%"=="o" goto c4
- if "%t3%"=="o" if "%t7%"=="o" if not "%t5%"=="x" if not "%t5%"=="o" goto c5
- if "%t3%"=="o" if "%t9%"=="o" if not "%t6%"=="x" if not "%t6%"=="o" goto c6
- if "%t9%"=="o" if "%t7%"=="o" if not "%t8%"=="x" if not "%t8%"=="o" goto c8
- REM (win outside middle to outside middle)
- if "%t2%"=="o" if "%t8%"=="o" if not "%t5%"=="x" if not "%t5%"=="o" goto c5
- if "%t4%"=="o" if "%t6%"=="o" if not "%t5%"=="x" if not "%t5%"=="o" goto c5
- REM (win all others)
- if "%t1%"=="o" if "%t2%"=="o" if not "%t3%"=="x" if not "%t3%"=="o" goto c3
- if "%t1%"=="o" if "%t5%"=="o" if not "%t9%"=="x" if not "%t9%"=="o" goto c9
- if "%t1%"=="o" if "%t4%"=="o" if not "%t7%"=="x" if not "%t7%"=="o" goto c7
- if "%t2%"=="o" if "%t5%"=="o" if not "%t8%"=="x" if not "%t8%"=="o" goto c8
- if "%t3%"=="o" if "%t2%"=="o" if not "%t1%"=="x" if not "%t1%"=="o" goto c1
- if "%t3%"=="o" if "%t5%"=="o" if not "%t7%"=="x" if not "%t7%"=="o" goto c7
- if "%t3%"=="o" if "%t6%"=="o" if not "%t9%"=="x" if not "%t9%"=="o" goto c9
- if "%t4%"=="o" if "%t5%"=="o" if not "%t6%"=="x" if not "%t6%"=="o" goto c6
- if "%t6%"=="o" if "%t5%"=="o" if not "%t4%"=="x" if not "%t4%"=="o" goto c4
- if "%t7%"=="o" if "%t4%"=="o" if not "%t1%"=="x" if not "%t1%"=="o" goto c1
- if "%t7%"=="o" if "%t5%"=="o" if not "%t3%"=="x" if not "%t3%"=="o" goto c3
- if "%t7%"=="o" if "%t8%"=="o" if not "%t9%"=="x" if not "%t9%"=="o" goto c9
- if "%t8%"=="o" if "%t5%"=="o" if not "%t2%"=="x" if not "%t2%"=="o" goto c2
- if "%t9%"=="o" if "%t8%"=="o" if not "%t7%"=="x" if not "%t7%"=="o" goto c7
- if "%t9%"=="o" if "%t5%"=="o" if not "%t1%"=="x" if not "%t1%"=="o" goto c1
- if "%t9%"=="o" if "%t6%"=="o" if not "%t3%"=="x" if not "%t3%"=="o" goto c3
- REM (block general attempts) -----------------------------------------------
- if "%t1%"=="x" if "%t2%"=="x" if not "%t3%"=="x" if not "%t3%"=="o" goto c3
- if "%t1%"=="x" if "%t5%"=="x" if not "%t9%"=="x" if not "%t9%"=="o" goto c9
- if "%t1%"=="x" if "%t4%"=="x" if not "%t7%"=="x" if not "%t7%"=="o" goto c7
- if "%t2%"=="x" if "%t5%"=="x" if not "%t8%"=="x" if not "%t8%"=="o" goto c8
- if "%t3%"=="x" if "%t2%"=="x" if not "%t1%"=="x" if not "%t1%"=="o" goto c1
- if "%t3%"=="x" if "%t5%"=="x" if not "%t7%"=="x" if not "%t7%"=="o" goto c7
- if "%t3%"=="x" if "%t6%"=="x" if not "%t9%"=="x" if not "%t9%"=="o" goto c9
- if "%t4%"=="x" if "%t5%"=="x" if not "%t6%"=="x" if not "%t6%"=="o" goto c6
- if "%t6%"=="x" if "%t5%"=="x" if not "%t4%"=="x" if not "%t4%"=="o" goto c4
- if "%t7%"=="x" if "%t4%"=="x" if not "%t1%"=="x" if not "%t1%"=="o" goto c1
- if "%t7%"=="x" if "%t5%"=="x" if not "%t3%"=="x" if not "%t3%"=="o" goto c3
- if "%t7%"=="x" if "%t8%"=="x" if not "%t9%"=="x" if not "%t9%"=="o" goto c9
- if "%t8%"=="x" if "%t5%"=="x" if not "%t2%"=="x" if not "%t2%"=="o" goto c2
- if "%t9%"=="x" if "%t8%"=="x" if not "%t7%"=="x" if not "%t7%"=="o" goto c7
- if "%t9%"=="x" if "%t5%"=="x" if not "%t1%"=="x" if not "%t1%"=="o" goto c1
- if "%t9%"=="x" if "%t6%"=="x" if not "%t3%"=="x" if not "%t3%"=="o" goto c3
- REM (block obvious corner to corner)
- if "%t1%"=="x" if "%t3%"=="x" if not "%t2%"=="x" if not "%t2%"=="o" goto c2
- if "%t1%"=="x" if "%t9%"=="x" if not "%t5%"=="x" if not "%t5%"=="o" goto c5
- if "%t1%"=="x" if "%t7%"=="x" if not "%t4%"=="x" if not "%t4%"=="o" goto c4
- if "%t3%"=="x" if "%t7%"=="x" if not "%t5%"=="x" if not "%t5%"=="o" goto c5
- if "%t3%"=="x" if "%t9%"=="x" if not "%t6%"=="x" if not "%t6%"=="o" goto c6
- if "%t9%"=="x" if "%t7%"=="x" if not "%t8%"=="x" if not "%t8%"=="o" goto c8
- if "%sl%"=="2" goto skill2
- REM (block sneaky corner to corner 2-4, 2-6, etc.)
- if "%t2%"=="x" if "%t4%"=="x" if not "%t1%"=="x" if not "%t1%"=="o" goto c1
- if "%t2%"=="x" if "%t6%"=="x" if not "%t3%"=="x" if not "%t3%"=="o" goto c3
- if "%t8%"=="x" if "%t4%"=="x" if not "%t7%"=="x" if not "%t7%"=="o" goto c7
- if "%t8%"=="x" if "%t6%"=="x" if not "%t9%"=="x" if not "%t9%"=="o" goto c9
- REM (block offset corner trap 1-8, 1-6, etc.)
- if "%t1%"=="x" if "%t6%"=="x" if not "%t8%"=="x" if not "%t8%"=="o" goto c8
- if "%t1%"=="x" if "%t8%"=="x" if not "%t6%"=="x" if not "%t6%"=="o" goto c6
- if "%t3%"=="x" if "%t8%"=="x" if not "%t4%"=="x" if not "%t4%"=="o" goto c4
- if "%t3%"=="x" if "%t4%"=="x" if not "%t8%"=="x" if not "%t8%"=="o" goto c8
- if "%t9%"=="x" if "%t4%"=="x" if not "%t2%"=="x" if not "%t2%"=="o" goto c2
- if "%t9%"=="x" if "%t2%"=="x" if not "%t4%"=="x" if not "%t4%"=="o" goto c4
- if "%t7%"=="x" if "%t2%"=="x" if not "%t6%"=="x" if not "%t6%"=="o" goto c6
- if "%t7%"=="x" if "%t6%"=="x" if not "%t2%"=="x" if not "%t2%"=="o" goto c2
- :SKILL2
- REM (block outside middle to outside middle)
- if "%t2%"=="x" if "%t8%"=="x" if not "%t5%"=="x" if not "%t5%"=="o" goto c5
- if "%t4%"=="x" if "%t6%"=="x" if not "%t5%"=="x" if not "%t5%"=="o" goto c5
- REM (block 3 corner trap)
- if "%t1%"=="x" if "%t9%"=="x" if not "%t2%"=="x" if not "%t2%"=="o" goto c2
- if "%t3%"=="x" if "%t7%"=="x" if not "%t2%"=="x" if not "%t2%"=="o" goto c2
- if "%t1%"=="x" if "%t9%"=="x" if not "%t4%"=="x" if not "%t4%"=="o" goto c4
- if "%t3%"=="x" if "%t7%"=="x" if not "%t4%"=="x" if not "%t4%"=="o" goto c4
- if "%t1%"=="x" if "%t9%"=="x" if not "%t6%"=="x" if not "%t6%"=="o" goto c6
- if "%t3%"=="x" if "%t7%"=="x" if not "%t6%"=="x" if not "%t6%"=="o" goto c6
- if "%t1%"=="x" if "%t9%"=="x" if not "%t8%"=="x" if not "%t8%"=="o" goto c8
- if "%t3%"=="x" if "%t7%"=="x" if not "%t8%"=="x" if not "%t8%"=="o" goto c8
- :SKILL1
- REM (just take a turn)
- if not "%t5%"=="x" if not "%t5%"=="o" goto c5
- if not "%t1%"=="x" if not "%t1%"=="o" goto c1
- if not "%t3%"=="x" if not "%t3%"=="o" goto c3
- if not "%t7%"=="x" if not "%t7%"=="o" goto c7
- if not "%t9%"=="x" if not "%t9%"=="o" goto c9
- if not "%t2%"=="x" if not "%t2%"=="o" goto c2
- if not "%t4%"=="x" if not "%t4%"=="o" goto c4
- if not "%t6%"=="x" if not "%t6%"=="o" goto c6
- if not "%t8%"=="x" if not "%t8%"=="o" goto c8
- set nm=0
- goto update
- :C1
- set t1=o
- goto check
- :C2
- set t2=o
- goto check
- :C3
- set t3=o
- goto check
- :C4
- set t4=o
- goto check
- :C5
- set t5=o
- goto check
- :C6
- set t6=o
- goto check
- :C7
- set t7=o
- goto check
- :C8
- set t8=o
- goto check
- :C9
- set t9=o
- goto check
- :CHECK
- if "%t1%"=="x" if "%t2%"=="x" if "%t3%"=="x" goto winx
- if "%t4%"=="x" if "%t5%"=="x" if "%t6%"=="x" goto winx
- if "%t7%"=="x" if "%t8%"=="x" if "%t9%"=="x" goto winx
- if "%t1%"=="x" if "%t4%"=="x" if "%t7%"=="x" goto winx
- if "%t2%"=="x" if "%t5%"=="x" if "%t8%"=="x" goto winx
- if "%t3%"=="x" if "%t6%"=="x" if "%t9%"=="x" goto winx
- if "%t1%"=="x" if "%t5%"=="x" if "%t9%"=="x" goto winx
- if "%t3%"=="x" if "%t5%"=="x" if "%t7%"=="x" goto winx
- if "%t1%"=="o" if "%t2%"=="o" if "%t3%"=="o" goto wino
- if "%t4%"=="o" if "%t5%"=="o" if "%t6%"=="o" goto wino
- if "%t7%"=="o" if "%t8%"=="o" if "%t9%"=="o" goto wino
- if "%t1%"=="o" if "%t4%"=="o" if "%t7%"=="o" goto wino
- if "%t2%"=="o" if "%t5%"=="o" if "%t8%"=="o" goto wino
- if "%t3%"=="o" if "%t6%"=="o" if "%t9%"=="o" goto wino
- if "%t1%"=="o" if "%t5%"=="o" if "%t9%"=="o" goto wino
- if "%t3%"=="o" if "%t5%"=="o" if "%t7%"=="o" goto wino
- if "%pt%"=="x" goto computer
- if "%pt%"=="o" goto update
- :WINX
- set gw=x
- goto update
- :WINX2
- echo You win!
- echo Play again (Y,N)?
- CHOICE /c:ynsq /n > nul
- if errorlevel 4 goto MMENU
- if errorlevel 3 goto begin
- if errorlevel 2 goto MMENU
- goto layout
- :WINO
- set gw=o
- goto update
- :WINO2
- echo Sorry, You lose.
- echo Play again (Y,N)?
- CHOICE /c:ynsq /n > nul
- if errorlevel 4 goto MMENU
- if errorlevel 3 goto begin
- if errorlevel 2 goto MMENU
- goto layout
- :NOMOVES
- echo There are no more moves left!
- echo Play again (Y,N)?
- CHOICE /c:ynsq /n > nul
- if errorlevel 4 goto MMENU
- if errorlevel 3 goto begin
- if errorlevel 2 goto MMENU
- goto layout
- REM ------------------------------------------------------------------------------------------------------------------------------------------------------------------
- REM -------------------------------------------------------------------Remote Scripts---------------------------------------------------------------------------------------
- :RSelection1
- CLS
- ECHO ============= Kill Task ===================
- ECHO -------------------------------------------
- ECHO 1. Kill Task by PID
- ECHO 2. Kill Task by Name
- ECHO -------------------------------------------
- ECHO 3. IE
- ECHO 4. VCT
- ECHO -------------------------------------------
- ECHO ==========PRESS 'M' For Main Menu==========
- ECHO .
- SET KINPUT=
- SET /P KINPUT=Please select a number:
- IF /I '%KINPUT%'=='1' GOTO killp
- IF /I '%KINPUT%'=='2' GOTO killn
- IF /I '%KINPUT%'=='3' GOTO IE
- IF /I '%KINPUT%'=='4' GOTO VCT
- IF /I '%KINPUT%'=='M' GOTO MMenu
- CLS
- ECHO ============INVALID INPUT=============
- ECHO --------------------------------------
- ECHO Please select a number from the Main
- ECHO Menu [1-4] or select 'M' to Mail Menu.
- ECHO --------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE=======
- PAUSE > NUL
- GOTO RSelection1
- :killp
- CLS
- tasklist /S %dnumber%
- SET /P PID=Please Enter PID of task you wish to Kill:
- taskkill /S %dnumber% /PID %PID%
- ECHO .
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE > NUL
- GOTO RSelection1
- :killn
- CLS
- tasklist /S %dnumber%
- SET /P name=Please Enter the Name of task you wish to Kill:
- taskkill /S %dnumber% /IM %name%
- ECHO .
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE > NUL
- GOTO RSelection1
- :IE
- CLS
- taskkill /S %dnumber% /F /IM iexplore.exe /T
- ECHO .
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE > NUL
- GOTO RSelection1
- :VCT
- CLS
- taskkill /S %dnumber% /F /IM communicator.exe /T
- ECHO .
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE > NUL
- GOTO RSelection1
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :RSelection2
- CLS
- SET /P server=Please Enter the Server name:
- xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\pitrl.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
- mkdir "C:\Users\%username%\Desktop\%user%\%dnumber%\Tests"
- ping %server% > "C:\Users\%username%\Desktop\%user%\%dnumber%\Tests\S-U-Tests.txt"
- ping %dnumber% >> "C:\Users\%username%\Desktop\%user%\%dnumber%\Tests\S-U-Tests.txt"
- tracert %server% >> "C:\Users\%username%\Desktop\%user%\%dnumber%\Tests\S-U-Tests.txt"
- tracert %dnumber% >> "C:\Users\%username%\Desktop\%user%\%dnumber%\Tests\S-U-Tests.txt"
- ECHO .
- ECHO =============Please Read=============
- ECHO -------------------------------------
- ECHO Please Run the batch file pitrl.bat
- ECHO Located on the user Desktop
- ECHO The result ran from here are located:
- ECHO %userprofile%\Desktop\%U%\%Dnumber%
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE > NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :RSelection3
- CLS
- ECHO ================Please Read================
- ECHO -------------------------------------------
- ECHO The User is about to be Logged out.
- ECHO Please take an alternative Contact
- ECHO Number and Inform them you will call back.
- ECHO -------------------------------------------
- ECHO =========PRESS ANY KEY TO CONTINUE=========
- ECHO .
- PAUSE>NUL
- rwinsta /server:%dnumber% 1
- rwinsta /server:%dnumber% 2
- CLS
- ECHO The user has now been logged out, starting to move files...
- timeout /t 3 /NOBREAK>nul
- rmdir /q /s "<\\%dnumber%\c$\Program Files (x86)\Level 3\Outlook Add-in for VCT for Desktop>"
- CLS
- ECHO Please Wait...
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- timeout /t 5 /NOBREAK>nul
- CLS
- xcopy "\\10.1.34.20\c$\Transfer\HTA\Batch\Other material\VCTAddinFix" "\\%dnumber%\c$\Program Files (x86)\Level 3" /H /E /Q /I
- CLS
- ECHO Command has completed the file transfer
- timeout /t 2 /NOBREAK>nul
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :RSelection4
- CLS
- ECHO ============= MAIN MENU =============
- ECHO -------------------------------------
- ECHO 1. Backup
- ECHO 2. Recover
- ECHO -------------------------------------
- ECHO ==========PRESS 'Q' TO QUIT==========
- ECHO.
- SET BOPTION=
- SET /P BOPTION=Please select a number:
- IF /I '%BOPTION%'=='1' GOTO BSelection1
- IF /I '%BOPTION%'=='2' GOTO BSelection2
- IF /I '%BOPTION%'=='Q' GOTO BQuit
- CLS
- ECHO ============INVALID OPTION============
- ECHO -------------------------------------
- ECHO Please select a number from the Main
- ECHO Menu [1-2] or select 'Q' to quit.
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE > NUL
- GOTO RSelection4
- :BSelection1
- mkdir "c:\Users\%username%\Desktop\%user%\%dnumber%\Desktop"
- mkdir "c:\Users\%username%\Desktop\%user%\%dnumber%\Signatures"
- mkdir "c:\Users\%username%\Desktop\%user%\%dnumber%\Settings"
- xcopy "\\%dnumber%\C$\Users\%user%\Desktop" "c:\Users\%username%\Desktop\%user%\%dnumber%\Desktop" /E /I /Q /H
- xcopy "\\%dnumber%\C$\Users\%user%\appdata\Roaming\Microsoft\Signatures" "c:\Users\%username%\Desktop\%user%\%dnumber%\Signatures" /E /I /Q /H
- xcopy "\\%dnumber%\C$\Users\%user%\AppData\Roaming\Microsoft\Outlook" "c:\Users\%username%\Desktop\%user%\%dnumber%\Settings" /E /I /Q /H
- ECHO.
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE > NUL
- GOTO RSelection4
- :BSelection2
- xcopy "c:\Users\%username%\Desktop\%user%\%dnumber%\Desktop" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
- xcopy "c:\Users\%username%\Desktop\%user%\%dnumber%\Signatures" "\\%dnumber%\C$\Users\%user%\Appdata\Roaming\Microsoft\Signatures" /E /I /Q /H
- xcopy "c:\Users\%username%\Desktop\%user%\%dnumber%\Settings" "\\%dnumber%\C$\Users\%user%\AppData\Roaming\Microsoft\Outlook" /E /I /Q /H
- ECHO.
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE > NUL
- GOTO RSelection4
- :BQuit
- CLS
- ECHO ==============THANK YOU===============
- ECHO --------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE ======
- PAUSE>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :RSelection5
- CLS
- qwinsta /server:%dnumber%
- SET /P session=Please select the Session you wish to kick and press ENTER:
- rwinsta /server:%dnumber% %session%
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :RSelection6
- CLS
- ping %dnumber%
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :RSelection7
- CLS
- ECHO This will Kill VCT
- ECHO ======PRESS ANY KEY TO CONTINUE ======
- PAUSE>nul
- taskkill /s %dnumber% /f /t /im Communicator.exe
- CLS
- ECHO Proccess have now Been terminated, renaming VCT for desktop file
- timeout /t 3 /NOBREAK>NUL
- Rmdir /Q/S "\\%dnumber%\c$\Users\%user%\AppData\Local\Level 3\VCT for Desktop.old"
- CLS
- timeout /t 2 /NOBREAK>NUL
- ren "\\%dnumber%\c$\Users\%user%\AppData\Local\Level 3\VCT for Desktop" "VCT for Desktop.old"
- timeout /t 2 /NOBREAK>NUL
- CLS
- ECHO Command has completed user can now log back in and try VCT
- ECHO User will need the audio preferences set back up and credentials as follows:
- ECHO URL: vctclient.voice.uk.level3.com
- ECHO User: (VCT number)@Voice.uk.level3.com
- ECHO Pass: Users password for VCT, send to level 3 if they do not remember.
- timeout /t 7 /NOBREAK>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :RSelection8
- CLS
- ECHO ============= Desktop Links =================
- ECHO ---------------------------------------------
- ECHO 1. CMS Alt
- ECHO 2. JRAS
- ECHO 3. CCTRS
- ECHO 4. LIBRA
- ECHO 5. XHIBIT
- ECHO 6. DCS
- ECHO 7. FARMS Discoverer
- ECHO 8. FARMS Live
- ECHO 9. Hermes Live
- ECHO 10. P2P Zanzibar
- ECHO 11. REMs
- ECHO 12. SRM Remedy
- ECHO ---------------------------------------------
- ECHO ========== PRESS 'M' For Main Menu ==========
- ECHO.
- SET DLOPTION=
- SET /P DLOPTION=Please select a number:
- IF /I '%DLOPTION%'=='1' GOTO DLSelection1
- IF /I '%DLOPTION%'=='2' GOTO DLSelection2
- IF /I '%DLOPTION%'=='3' GOTO DLSelection3
- IF /I '%DLOPTION%'=='4' GOTO DLSelection4
- IF /I '%DLOPTION%'=='5' GOTO DLSelection5
- IF /I '%DLOPTION%'=='6' GOTO DLSelection6
- IF /I '%DLOPTION%'=='7' GOTO DLSelection7
- IF /I '%DLOPTION%'=='8' GOTO DLSelection8
- IF /I '%DLOPTION%'=='9' GOTO DLSelection9
- IF /I '%DLOPTION%'=='10' GOTO DLSelection10
- IF /I '%DLOPTION%'=='11' GOTO DLSelection11
- IF /I '%DLOPTION%'=='12' GOTO DLSelection12
- IF /I '%DLOPTION%'=='M' GOTO DLQuit
- CLS
- ECHO ============INVALID OPTION=============
- ECHO ---------------------------------------
- ECHO Please select a number from the Main
- ECHO Menu [1-12] or select 'M' For Mail Menu
- ECHO ---------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE========
- PAUSE > NUL
- GOTO RSelection8
- :DLSelection1
- //## Link 1
- copy "C:\Transfer\HTA\Batch\Links\CMS Alt.url" "\\%dnumber%\C$\Users\%user%\Desktop"
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO RSelection8
- :DLSelection2
- //## Link 2
- copy "C:\Transfer\HTA\Batch\Links\JRAS.url" "\\%dnumber%\C$\Users\%user%\Desktop"
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO RSelection8
- :DLSelection3
- //## Link 3
- copy "C:\Transfer\HTA\Batch\Links\CCTRS.url" "\\%dnumber%\C$\Users\%user%\Desktop"
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO RSelection8
- .
- :DLSelection4
- //## Link 4
- copy "C:\Transfer\HTA\Batch\Links\LIBRA.url" "\\%dnumber%\C$\Users\%user%\Desktop"
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO RSelection8
- :DLSelection5
- //## Link 5
- copy "C:\Transfer\HTA\Batch\Links\XHIBIT.url" "\\%dnumber%\C$\Users\%user%\Desktop"
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO RSelection8
- :DLSelection6
- //## Link 6
- copy "C:\Transfer\HTA\Batch\Links\DCS.url" "\\%dnumber%\C$\Users\%user%\Desktop"
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO RSelection8
- :DLSelection7
- //## Link 7
- copy "C:\Transfer\HTA\Batch\Links\FARMS Discoverer.url" "\\%dnumber%\C$\Users\%user%\Desktop"
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO RSelection8
- :DLSelection8
- //## Link 8
- copy "C:\Transfer\HTA\Batch\Links\FARMS Live.url" "\\%dnumber%\C$\Users\%user%\Desktop"
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO RSelection8
- :DLSelection9
- //## Link 9
- copy "C:\Transfer\HTA\Batch\Links\Hermes Live.url" "\\%dnumber%\C$\Users\%user%\Desktop"
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO RSelection8
- :DLSelection10
- //## Link 10
- copy "C:\Transfer\HTA\Batch\Links\P2P Zanzibar.url" "\\%dnumber%\C$\Users\%user%\Desktop"
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO RSelection8
- :DLSelection11
- //## Link 11
- copy "C:\Transfer\HTA\Batch\Links\REMs.url" "\\%dnumber%\C$\Users\%user%\Desktop"
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO RSelection8
- :DLSelection12
- //## Link 12
- copy "C:\Transfer\HTA\Batch\Links\SRM.url" "\\%dnumber%\C$\Users\%user%\Desktop"
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO RSelection8
- :DLQuit
- CLS
- ECHO ==============THANKYOU===============
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :RSelection9
- CLS
- ECHO ================Please Read================
- ECHO -------------------------------------------
- ECHO The User is about to be Logged out.
- ECHO Please take an alternative Contact
- ECHO Number, Inform them you will call back.
- ECHO OR
- ECHO If following an unlock disregard the above
- ECHO -------------------------------------------
- ECHO =========PRESS ANY KEY TO CONTINUE=========
- ECHO .
- PAUSE>NUL
- rwinsta /server:%dnumber% 1
- CLS
- ECHO =========PRESS ANY KEY TO CONTINUE=========
- ECHO .
- PAUSE>NUL
- ECHO ================Please Wait================
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- timeout /t 5 /NOBREAK>nul
- start mstsc /v:%dnumber%
- CLS
- ECHO ===================Please Read===================
- ECHO -------------------------------------------------
- ECHO Once you have entered your Username and Password
- ECHO -------------------------------------------------
- ECHO ============PRESS ANY KEY TO CONTINUE============
- ECHO .
- PAUSE>NUL
- ECHO ================Please Wait================
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- timeout /t 5 /NOBREAK>nul
- CLS
- ECHO ===================Please Read===================
- ECHO -------------------------------------------------
- ECHO Files now being copied to the device
- ECHO You will have a folder called "Bitlocker"
- ECHO on your desktop once logged in
- xcopy "C:\transfer\HTA\Batch\Bitlocker\" "\\%dnumber%\c$\Users\%username%\Desktop" /E /I /Q /H
- ECHO -------------------------------------------------
- ECHO ============PRESS ANY KEY TO CONTINUE============
- ECHO .
- PAUSE>NUL
- CLS
- ECHO ================Please Read================
- ECHO -------------------------------------------
- ECHO When you have Finished on your session
- ECHO Please encourage the user to change PIN
- ECHO If they have not already done so
- ECHO Must be alphanumeric Only
- ECHO Open "BitLocker Drive Encryption" for them
- ECHO Continue once they are logged back in
- ECHO -------------------------------------------
- ECHO =========PRESS ANY KEY TO CONTINUE=========
- ECHO .
- PAUSE>NUL
- CLS
- start msra /offerRA %dnumber%
- ECHO =========PRESS ANY KEY TO CONTINUE=========
- ECHO .
- PAUSE>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :RSelection10
- CLS
- ECHO This will attempt to Fix CMS Exception ID 39
- xcopy "\\%dnumber%\C$\Program Files (x86)\CMS\COMDLG32.OCX" "\\%dnumber%\C$\Windows\sysWOW\" /E /I /Q /H
- ECHO -------------------------------------------------
- ECHO ============PRESS ANY KEY TO CONTINUE============
- ECHO .
- PAUSE>NUL
- CLS
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :RSelection11
- CLS
- ECHO ================Please Read================
- ECHO -------------------------------------------
- ECHO The Users prosecutor application and Adobe/ Adobe pro
- ECHO is about to close please make sure they have saved any
- ECHO work before continuing
- ECHO -------------------------------------------
- ECHO =========PRESS ANY KEY TO CONTINUE=========
- ECHO .
- PAUSE>NUL
- CLS
- ECHO Please Wait...
- TASKKILL /S %dnumber% /IM CreativeJar
- taskkill /S %dnumber% /F /IM Acrord32.exe /T
- RMDIR /Q /S "\\%dnumber%\G$\App backup\"
- MKDIR "\\%dnumber%\G$\App backup\CasesData"
- timeout /t 3 /NOBREAK>NUL
- copy "\\%dnumber%\G$\APP FILES –DO NOT DELETE\CPS.GOV.UK-%user%\Live-UserSession.txt" "\\%dnumber%\G$\App backup"
- xcopy "\\%dnumber%\G$\APP FILES –DO NOT DELETE\CPS.GOV.UK-%user%\Live\CasesData" "\\%dnumber%\G$\App backup\CasesData" /H /E /Q /I
- Timeout /t 2 /NOBREAK>NUL
- Rmdir /Q /S "G:\Open Bundles\CPS.GOV.UK-%user%"
- Timeout /t 2 /NOBREAK>NUL
- Rmdir /Q /S "G:\APP FILES –DO NOT DELETE\CPS.GOV.UK-%user%"
- Timeout /t 2 /NOBREAK>NUL
- CLS
- ECHO -------------------------------------------------
- ECHO ============PRESS ANY KEY TO CONTINUE============
- ECHO .
- PAUSE>NUL
- CLS
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :RSelection12
- CLS
- ECHO Please be aware this is going to close IE, Word and Adobe...
- taskkill /S %dnumber% /F /IM iexplore.exe /T
- taskkill /S %dnumber% /F /IM Acrord32.exe /T
- taskkill /S %dnumber% /F /IM WINWORD.exe /T
- CLS
- ECHO Please Wait while Files are removed..
- Rmdir /S /Q "\\%dnumber%\G$\Local\%user%\CMS Documents\PCMS"
- Rmdir /S /Q "\\%dnumber%\G$\Local\CMS Templates\PCMS"
- timeout -t 3 /NOBREAK>NUL
- MKDIR "\\%dnumber%\G$\Local\%user%\CMS Documents\PCMS"
- MKDIR "\\%dnumber%\G$\Local\CMS Templates\PCMS"
- CLS
- ECHO -------------------------------------------------
- ECHO ============PRESS ANY KEY TO CONTINUE============
- ECHO .
- PAUSE>NUL
- CLS
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :RSelection13
- CLS
- NSlookup %dnumber%
- ECHO -------------------------------------------------
- ECHO ============PRESS ANY KEY TO CONTINUE============
- ECHO .
- PAUSE>NUL
- CLS
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :RSelection14
- CLS
- ECHO ==============THANKYOU================
- ECHO ---IE & Word are about to be Closed---
- ECHO ======PRESS ANY KEY TO CONTINUE=======
- PAUSE>NUL
- CLS
- ECHO ============= Please Wait =============
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- timeout /T 3 /NOBREAK>NUL
- taskkill /S %dnumber% /F /IM iexplore.exe /T
- taskkill /S %dnumber% /F /IM winword.exe /T
- xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\Clean Up.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
- rd /s /q \\%dnumber%\C$\Temp\
- rd /s /q \\%dnumber%\C$\Windows\Temp\
- rd /s /q \\%dnumber%\C$\Users\%user%\AppData\Local\Temp\
- del /q /f "\\%dnumber%\C$\Users\%user%\AppData\Roaming\Microsoft\Templates\Normal.dotm"
- timeout /T 3 /NOBREAK>NUL
- mkdir \\%dnumber%\C$\Temp\
- mkdir \\%dnumber%\C$\Windows\Temp\
- mkdir \\%dnumber%\C$\Users\%user%\AppData\Local\Temp\
- copy "C:\Transfer\HTA\Batch\Other material\Manual installs\Normal dotm\Normal.dotm" "\\%dnumber%\C$\Users\%user%\AppData\Roaming\Microsoft\Templates"
- ECHO ==============Please Read===============
- ECHO ----------------------------------------
- ECHO Please set the users power Options
- ECHO to High Performance and Run the Clean up
- ECHO script then test Printing again
- ECHO ----------------------------------------
- ECHO =======PRESS ANY KEY TO CONTINUE========
- PAUSE>NUL
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :RSelection15
- CLS
- ECHO About to close Outlook Please make user aware...
- Pause
- taskkill /S %dnumber% /IM outlook.exe
- CLS
- ECHO Please Wait Deleting OST..
- timeout /T 3 /NOBREAK>NUL
- DEL /Q /S \\%dnumber%\Users\%user%\AppData\Local\Microsoft\Outlook\*.ost
- timeout /T 2 /NOBREAK>NUL
- ECHO Done...
- PAUSE>NUL
- CLS
- GOTO MMENU
- REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
- :RSelection16
- MKDIR "%userprofile%\Desktop\%dnumber%\%user%\GPresult"
- CLS
- ECHO ============= Choise Menu =============
- ECHO -------------------------------------
- ECHO 1. Computer Policy
- ECHO 2. User Policy
- ECHO -------------------------------------
- ECHO ==========PRESS 'M' TO QUIT==========
- ECHO .
- SET OINPUT=
- SET /P OINPUT=Please select a number:
- IF /I '%OINPUT%'=='1' GOTO opt1
- IF /I '%OINPUT%'=='2' GOTO opt2
- IF /I '%OINPUT%'=='M' GOTO MMENU
- CLS
- ECHO ============INVALID INPUT============
- ECHO -------------------------------------
- ECHO Please select a number from the Main
- ECHO Menu [1-2] or select 'M' to quit.
- ECHO -------------------------------------
- ECHO ======PRESS ANY KEY TO CONTINUE======
- PAUSE > NUL
- GOTO RSelection16
- :opt1
- CLS
- gpresult /s %dnumber% /user %user% /scope computer /h "%userprofile%\Desktop\%dnumber%\%user%\GPresult\Compresults.html"
- CLS
- GOTO RSelection16
- :opt2
- CLS
- gpresult /s %dnumber% /user %user% /scope user /h "%userprofile%\Desktop\%dnumber%\%user%\GPresult\Userresults.html"
- CLS
- GOTO RSelection16
- REM ------------------------------------------------------------End of Remote Scripts--------------------------------------------------------------------------------------------------
- :Quit
- CLS
- ECHO ===========================THANKYOU============================
- ECHO ---------------------------------------------------------------
- for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
- ECHO ---------------------------------------------------------------
- ECHO ===================PRESS ANY KEY TO CONTINUE===================
- PAUSE>NUL
- EXIT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement