Advertisement
Guest User

Untitled

a guest
Dec 6th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.71 KB | None | 0 0
  1. @ECHO OFF
  2. TITLE Utility Batch
  3. color 0a
  4. C:
  5. CD\
  6. ::: Batch made by Dan _ __,----'~~~~~~~~~`-----.__
  7. ::: . . `//====-_ ___,-' `
  8. ::: -. \_|// . /||\\ `~~~~`---.___./
  9. ::: ______-==. _-~o~ \/ ||| \\ _,'`
  10. ::: __,--' ,=='||\=_ ;_--~/_-'|- |`\ \\ ,'
  11. ::: _-' ' | \\`. '-'~7 /- / || `\. /
  12. ::: .' //// || | \\ \_ / /- / || \ /
  13. ::: / ____ O-O--= | \\.`-_/ /|- _/ ,|| \ /
  14. ::: ,-' ( ^ _/\_ --_ \ `==-/ `| \'--===-' _/`
  15. ::: /\~-\/ \ `-| /| )-'\~' _,--~'
  16. ::: /|`/ _ \_ \ '-~~\_/ | | `\_ ,~ /\
  17. ::: / | : U_/ / / \ \__ \/~ `\__
  18. ::: \(__:__ \_/ _,-' _/'\ ,-'~____-'`-/ ``===\
  19. ::: =@===== ((->/' \|||' `. ~`-/ , _||
  20. ::: | | \_ ~\ `^---|__i__i__\--~'_/
  21. ::: / | | __-^-_ `) \-.______________,-~'
  22. ::: / /| | //,-'~~`__--^- |-------~~~~~'
  23. ::: | | | | //,--~~`-\
  24. ::: |__| |__|
  25. ::: /#_) |#\
  26. CLS
  27.  
  28. :Peram1
  29. CLS
  30. SET /P dnumber=Please Enter DNumber or IP Address:
  31. CLS
  32. SET /P user=Please Enter the username:
  33. CLS
  34. xcopy "C:\Transfer\HTA\Batch\Other material\Batch\Ip.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
  35. GOTO MMENU
  36.  
  37. :MMENU
  38. CLS
  39.  
  40. ECHO ============= MAIN MENU =============
  41. ECHO -------------------------------------
  42. ECHO **** Caller: %user% ****
  43. ECHO **** Device: %dnumber% ****
  44. ECHO -------------------------------------
  45. ECHO 1. Enter new Caller Details
  46. ECHO -------------------------------------
  47. ECHO 2. Scripts to be run on the device
  48. ECHO 3. Remote Scripts
  49. ECHO -------------------------------------
  50. ECHO ==========PRESS 'Q' TO QUIT==========
  51. ECHO .
  52.  
  53. SET MINPUT=
  54. SET /P MINPUT=Please select a number:
  55.  
  56. IF /I '%MINPUT%'=='1' GOTO Peram1
  57. IF /I '%MINPUT%'=='2' GOTO LMenu
  58. IF /I '%MINPUT%'=='3' GOTO RMenu
  59. IF /I '%MINPUT%'=='tic' GOTO Tictac
  60.  
  61. IF /I '%MINPUT%'=='Q' GOTO Quit
  62.  
  63. CLS
  64.  
  65. ECHO ============INVALID INPUT============
  66. ECHO -------------------------------------
  67. ECHO Please select a number from the Main
  68. ECHO Menu [1-3] or select 'Q' to quit.
  69. ECHO -------------------------------------
  70. ECHO ======PRESS ANY KEY TO CONTINUE======
  71.  
  72. PAUSE > NUL
  73. GOTO MMENU
  74.  
  75. :LMENU
  76. CLS
  77.  
  78. ECHO ===================== Scripts for Device =====================
  79. ECHO --------------------------------------------------------------
  80. ECHO 1. IP Config
  81. ECHO 2. GP Update
  82. ECHO 3. Clean Up
  83. ECHO 4. Toggle Proxy
  84. ECHO 5. Get Shared Drives
  85. ECHO 6. Outlook OST Refresh
  86. ECHO 7. Map or Remove Shared Drive
  87. ECHO 8. DVD Disable/Enable
  88. ECHO 9. SFC Scan Fix (Run As Admin, On your profile)
  89. ECHO 10. Ip Release / Renew
  90. ECHO 11. Tools
  91. ECHO 12. Network Reset and Clear
  92. ECHO 13. Rebuild Search Index (Run As Admin, On your profile)
  93. ECHO 14. Printer Spool Clear and reset
  94. ECHO 15. Clear Outlook Auto Complete (From or To, Cc, Bcc)
  95. ECHO 16. IE With No Add-ons
  96. ECHO 17. Enable .net Framework 3.5 (Run As Admin, On your profile)
  97. ECHO --------------------------------------------------------------
  98. ECHO ==========PRESS 'M' for Main Menu or 'Q' for Quit ============
  99. ECHO .
  100.  
  101. SET LINPUT=
  102. SET /P LINPUT=Please select a number:
  103.  
  104. IF /I '%LINPUT%'=='1' GOTO LSelection1
  105. IF /I '%LINPUT%'=='2' GOTO LSelection2
  106. IF /I '%LINPUT%'=='3' GOTO LSelection3
  107. IF /I '%LINPUT%'=='4' GOTO LSelection4
  108. IF /I '%LINPUT%'=='5' GOTO LSelection5
  109. IF /I '%LINPUT%'=='6' GOTO LSelection6
  110. IF /I '%LINPUT%'=='7' GOTO LSelection7
  111. IF /I '%LINPUT%'=='8' GOTO LSelection8
  112. IF /I '%LINPUT%'=='9' GOTO LSelection9
  113. IF /I '%LINPUT%'=='10' GOTO LSelection10
  114. IF /I '%LINPUT%'=='11' GOTO LSelection11
  115. IF /I '%LINPUT%'=='12' GOTO LSelection12
  116. IF /I '%LINPUT%'=='13' GOTO LSelection13
  117. IF /I '%LINPUT%'=='14' GOTO LSelection14
  118. IF /I '%LINPUT%'=='15' GOTO LSelection15
  119. IF /I '%LINPUT%'=='16' GOTO LSelection16
  120. IF /I '%LINPUT%'=='17' GOTO LSelection17
  121.  
  122. IF /I '%LINPUT%'=='M' GOTO MMenu
  123. IF /I '%LINPUT%'=='Q' GOTO Quit
  124. CLS
  125.  
  126. ECHO ============INVALID INPUT============
  127. ECHO -------------------------------------
  128. ECHO Please select a number from the Main
  129. ECHO Menu [1-17] or select 'M' for main
  130. ECHO menu or 'Q' for Quit.
  131. ECHO -------------------------------------
  132. ECHO ======PRESS ANY KEY TO CONTINUE======
  133.  
  134. PAUSE > NUL
  135. GOTO MMENU
  136.  
  137. :RMENU
  138. CLS
  139.  
  140. ECHO ===================== Remotely Run Scripts ==================
  141. ECHO -------------------------------------------------------------
  142. ECHO 1. Kill Task
  143. ECHO 2. Connection test
  144. ECHO 3. VCT-Outlook Add-in Fix
  145. ECHO 4. Back and Restore
  146. ECHO 5. Kick User
  147. ECHO 6. Ping User
  148. ECHO 7. VCT not opening
  149. ECHO 8. Add Desktop Shortcuts
  150. ECHO 9. Bitlocker Reset Lockout
  151. ECHO 10. CMS Fix Exception ID 39
  152. ECHO 11. Clean Prosecutor App
  153. ECHO 12. CMS Clean Up
  154. ECHO 13. NSLookup
  155. ECHO 14. Insufficient Memory Fix
  156. ECHO 15. OST Refresh
  157. ECHO 16. GPResult (Computer Or User Policy)
  158. ECHO ------------------------------------------------------------
  159. ECHO ==========PRESS 'M' for Main Menu or 'Q' for Quit ==========
  160. ECHO .
  161.  
  162. SET RINPUT=
  163. SET /P RINPUT=Please select a number:
  164.  
  165. IF /I '%RINPUT%'=='1' GOTO RSelection1
  166. IF /I '%RINPUT%'=='2' GOTO RSelection2
  167. IF /I '%RINPUT%'=='3' GOTO RSelection3
  168. IF /I '%RINPUT%'=='4' GOTO RSelection4
  169. IF /I '%RINPUT%'=='5' GOTO RSelection5
  170. IF /I '%RINPUT%'=='6' GOTO RSelection6
  171. IF /I '%RINPUT%'=='7' GOTO RSelection7
  172. IF /I '%RINPUT%'=='8' GOTO RSelection8
  173. IF /I '%RINPUT%'=='9' GOTO RSelection9
  174. IF /I '%RINPUT%'=='10' GOTO RSelection10
  175. IF /I '%RINPUT%'=='11' GOTO RSelection11
  176. IF /I '%RINPUT%'=='12' GOTO RSelection12
  177. IF /I '%RINPUT%'=='13' GOTO RSelection13
  178. IF /I '%RINPUT%'=='14' GOTO RSelection14
  179. IF /I '%RINPUT%'=='15' GOTO RSelection15
  180. IF /I '%RINPUT%'=='16' GOTO RSelection16
  181.  
  182. IF /I '%RINPUT%'=='M' GOTO MMenu
  183. IF /I '%RINPUT%'=='Q' GOTO Quit
  184. CLS
  185.  
  186. ECHO ============INVALID INPUT============
  187. ECHO -------------------------------------
  188. ECHO Please select a number from the Main
  189. ECHO Menu [1-16] or select 'M' for main
  190. ECHO menu or 'Q' for Quit.
  191. ECHO -------------------------------------
  192. ECHO ======PRESS ANY KEY TO CONTINUE======
  193.  
  194. PAUSE > NUL
  195. GOTO MMENU
  196.  
  197. REM ------------------------------------------------------------local Scripts---------------------------------------------------------------------------------------
  198.  
  199. :LSelection1
  200. CLS
  201. ECHO ============= Please Wait =============
  202. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  203. timeout /T 3 /NOBREAK>NUL
  204. xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\ip.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
  205.  
  206. ECHO ==============THANKYOU===============
  207. ECHO -------------------------------------
  208. ECHO ======PRESS ANY KEY TO CONTINUE======
  209.  
  210. PAUSE>NUL
  211. GOTO MMENU
  212.  
  213. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  214.  
  215. :LSelection2
  216. CLS
  217. ECHO ============= Please Wait =============
  218. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  219. timeout /T 3 /NOBREAK>NUL
  220. xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\gp.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
  221.  
  222. ECHO ==============THANKYOU===============
  223. ECHO -------------------------------------
  224. ECHO ======PRESS ANY KEY TO CONTINUE======
  225.  
  226. PAUSE>NUL
  227. GOTO MMENU
  228.  
  229. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  230.  
  231. :LSelection3
  232. CLS
  233. ECHO ==============THANKYOU===============
  234. ECHO ------IE is about to be Closed-------
  235. ECHO ======PRESS ANY KEY TO CONTINUE======
  236.  
  237. PAUSE>NUL
  238. CLS
  239.  
  240. ECHO ============= Please Wait =============
  241. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  242. timeout /T 3 /NOBREAK>NUL
  243. taskkill /S %dnumber% /F /IM iexplore.exe /T
  244. xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\Clean Up.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
  245. rd /s /q \\%dnumber%\C$\Temp\
  246. rd /s /q \\%dnumber%\C$\Windows\Temp\
  247. rd /s /q \\%dnumber%\C$\Users\%user%\AppData\Local\Temp\
  248. timeout /T 3 /NOBREAK>NUL
  249. mkdir \\%dnumber%\C$\Temp\
  250. mkdir \\%dnumber%\C$\Windows\Temp\
  251. mkdir \\%dnumber%\C$\Users\%user%\AppData\Local\Temp\
  252. ECHO ==============THANKYOU===============
  253. ECHO -------------------------------------
  254. ECHO ======PRESS ANY KEY TO CONTINUE======
  255.  
  256. PAUSE>NUL
  257. GOTO MMENU
  258.  
  259. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  260.  
  261. :LSelection4
  262. CLS
  263. ECHO ============= Please Wait =============
  264. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  265. timeout /T 3 /NOBREAK>NUL
  266. xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\Proxytoggle.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
  267.  
  268. ECHO ==============THANKYOU===============
  269. ECHO -------------------------------------
  270. ECHO ======PRESS ANY KEY TO CONTINUE======
  271.  
  272. PAUSE>NUL
  273. GOTO MMENU
  274.  
  275. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  276.  
  277. :LSelection5
  278. CLS
  279. ECHO ============= Please Wait =============
  280. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  281. timeout /T 3 /NOBREAK>NUL
  282. xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\Drives.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
  283.  
  284. ECHO ==============THANKYOU===============
  285. ECHO -------------------------------------
  286. ECHO ======PRESS ANY KEY TO CONTINUE======
  287.  
  288. PAUSE>NUL
  289. GOTO MMENU
  290.  
  291. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  292.  
  293. :LSelection6
  294. CLS
  295. ECHO ============= Please Wait =============
  296. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  297. timeout /T 3 /NOBREAK>NUL
  298. xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\OutlookOSTResfresh.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
  299.  
  300. ECHO ==============THANKYOU===============
  301. ECHO -------------------------------------
  302. ECHO ======PRESS ANY KEY TO CONTINUE======
  303.  
  304. PAUSE>NUL
  305. GOTO MMENU
  306.  
  307. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  308.  
  309. :LSelection7
  310. CLS
  311. ECHO ============= Please Wait =============
  312. timeout /T 3 /NOBREAK>NUL
  313. xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\map.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
  314.  
  315. ECHO ==============THANKYOU===============
  316. ECHO -------------------------------------
  317. ECHO ======PRESS ANY KEY TO CONTINUE======
  318.  
  319. PAUSE>NUL
  320. GOTO MMENU
  321.  
  322. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  323.  
  324. :LSelection8
  325. CLS
  326. ECHO ============= Please Wait =============
  327. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  328. timeout /T 3 /NOBREAK>NUL
  329. xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\DVDDE.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
  330.  
  331. ECHO ==============THANKYOU===============
  332. ECHO -------------------------------------
  333. ECHO ======PRESS ANY KEY TO CONTINUE======
  334.  
  335. PAUSE>NUL
  336. GOTO MMENU
  337.  
  338. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  339.  
  340. :LSelection9
  341. CLS
  342. ECHO ============= Please Wait =============
  343. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  344. timeout /T 3 /NOBREAK>NUL
  345. xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\sfcs.bat" "\\%dnumber%\C$" /E /I /Q /H
  346.  
  347. ECHO ==============THANKYOU===============
  348. ECHO -------------------------------------
  349. ECHO ======PRESS ANY KEY TO CONTINUE======
  350.  
  351. PAUSE>NUL
  352. GOTO MMENU
  353.  
  354. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  355.  
  356. :LSelection10
  357. CLS
  358. ECHO ============= Please Wait =============
  359. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  360. timeout /T 3 /NOBREAK>NUL
  361. xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\IPR.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
  362.  
  363. ECHO ==============THANKYOU===============
  364. ECHO -------------------------------------
  365. ECHO ======PRESS ANY KEY TO CONTINUE======
  366.  
  367. PAUSE>NUL
  368. GOTO MMENU
  369.  
  370.  
  371. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  372.  
  373. :LSelection11
  374. CLS
  375. ECHO ============= Please Wait =============
  376. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  377. timeout /T 3 /NOBREAK>NUL
  378. xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\Run Me.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
  379. xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\Tools.bat" "\\%dnumber%\C$\" /E /I /Q /H
  380.  
  381. ECHO ==============THANKYOU===============
  382. ECHO -------------------------------------
  383. ECHO ======PRESS ANY KEY TO CONTINUE======
  384.  
  385. PAUSE>NUL
  386. GOTO MMENU
  387.  
  388. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  389.  
  390.  
  391. :LSelection12
  392. CLS
  393. ECHO ============= Please Wait =============
  394. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  395. timeout /T 3 /NOBREAK>NUL
  396. xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\Networkreset.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
  397.  
  398.  
  399. ECHO ==============THANKYOU===============
  400. ECHO -------------------------------------
  401. ECHO ======PRESS ANY KEY TO CONTINUE======
  402.  
  403. PAUSE>NUL
  404. GOTO MMENU
  405.  
  406. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  407.  
  408.  
  409. :LSelection13
  410. CLS
  411. ECHO ============= Please Wait =============
  412. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  413. timeout /T 3 /NOBREAK>NUL
  414. xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\Index.bat" "\\%dnumber%\C$" /E /I /Q /H
  415.  
  416. ECHO ==============THANKYOU===============
  417. ECHO -------------------------------------
  418. ECHO ======PRESS ANY KEY TO CONTINUE======
  419.  
  420. PAUSE>NUL
  421. GOTO MMENU
  422.  
  423.  
  424. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  425.  
  426.  
  427. :LSelection14
  428. CLS
  429. ECHO ============= Please Wait =============
  430. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  431. timeout /T 3 /NOBREAK>NUL
  432. xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\Printspoolreset.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
  433.  
  434. ECHO ==============THANKYOU===============
  435. ECHO -------------------------------------
  436. ECHO ======PRESS ANY KEY TO CONTINUE======
  437.  
  438. PAUSE>NUL
  439. GOTO MMENU
  440.  
  441. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  442.  
  443.  
  444. :LSelection15
  445. CLS
  446. ECHO ============= Please Wait =============
  447. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  448. timeout /T 3 /NOBREAK>NUL
  449. xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\ClearAutoFrom.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
  450.  
  451. ECHO ==============THANKYOU===============
  452. ECHO -------------------------------------
  453. ECHO ======PRESS ANY KEY TO CONTINUE======
  454.  
  455. PAUSE>NUL
  456. GOTO MMENU
  457.  
  458. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  459.  
  460. :LSelection16
  461. CLS
  462. ECHO ============= Please Wait =============
  463. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  464. timeout /T 3 /NOBREAK>NUL
  465. xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\IEnoADD.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
  466.  
  467. ECHO ==============THANKYOU===============
  468. ECHO -------------------------------------
  469. ECHO ======PRESS ANY KEY TO CONTINUE======
  470.  
  471. PAUSE>NUL
  472. GOTO MMENU
  473.  
  474. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  475.  
  476.  
  477. :LSelection17
  478. CLS
  479. ECHO ============= Please Wait =============
  480. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  481. timeout /T 3 /NOBREAK>NUL
  482. xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\Enable Framework 3.5.bat" "\\%dnumber%\C$" /E /I /Q /H
  483.  
  484. ECHO ==============THANKYOU===============
  485. ECHO -------------------------------------
  486. ECHO ======PRESS ANY KEY TO CONTINUE======
  487.  
  488. PAUSE>NUL
  489. GOTO MMENU
  490.  
  491. REM ------------------------------------------------------------End of local Scripts---------------------------------------------------------------------------------------
  492.  
  493.  
  494. REM -------------------------------------------------------------Tic Tac Toe------------------------------------------------------------------------------------
  495.  
  496. :Tictac
  497.  
  498. @ECHO OFF
  499. :BEGIN
  500. REM Skill level
  501. set sl=
  502. cls
  503. echo Tic Tac Toe (Q to quit)
  504. echo.
  505. echo.
  506. echo Pick your skill level (press a number)
  507. echo.
  508. echo (1) Easy
  509. echo (2) Average Mental Case
  510. echo (3) Oversized Ego
  511. CHOICE /c:123q /n > nul
  512. if errorlevel 4 goto MMENU
  513. if errorlevel 3 set sl=3
  514. if errorlevel 3 goto layout
  515. if errorlevel 2 set sl=2
  516. if errorlevel 2 goto layout
  517. set sl=1
  518.  
  519. :LAYOUT
  520. REM Player turn ("x" or "o")
  521. set pt=
  522. REM Game winner ("x" or "o")
  523. set gw=
  524. REM No moves
  525. set nm=
  526. REM Set to one blank space after equal sign (check with cursor end)
  527. set t1=
  528. set t2=
  529. set t3=
  530. set t4=
  531. set t5=
  532. set t6=
  533. set t7=
  534. set t8=
  535. set t9=
  536.  
  537. :UPDATE
  538. cls
  539. echo (S to set skill level) Tic Tac Toe (Q to quit)
  540. echo.
  541. echo You are the X player.
  542. echo Press the number where you want to put an X.
  543. echo.
  544. echo Skill level %sl% 7 8 9
  545. echo 4 5 6
  546. echo 1 2 3
  547. echo.
  548. echo : :
  549. echo %t1% : %t2% : %t3%
  550. echo ....:...:....
  551. echo %t4% : %t5% : %t6%
  552. echo ....:...:....
  553. echo %t7% : %t8% : %t9%
  554. echo : :
  555. if "%gw%"=="x" goto winx2
  556. if "%gw%"=="o" goto wino2
  557. if "%nm%"=="0" goto nomoves
  558.  
  559. :PLAYER
  560. set pt=x
  561. REM Layout is for keypad. Change CHOICE to "/c:123456789sq /n > nul"
  562. REM for numbers to start at top left (also change user layout above).
  563. CHOICE /c:789456123sq /n > nul
  564. if errorlevel 11 goto MMENU
  565. if errorlevel 10 goto begin
  566. if errorlevel 9 goto 9
  567. if errorlevel 8 goto 8
  568. if errorlevel 7 goto 7
  569. if errorlevel 6 goto 6
  570. if errorlevel 5 goto 5
  571. if errorlevel 4 goto 4
  572. if errorlevel 3 goto 3
  573. if errorlevel 2 goto 2
  574. goto 1
  575.  
  576. :1
  577. REM Check if "x" or "o" already in square.
  578. if "%t1%"=="x" goto player
  579. if "%t1%"=="o" goto player
  580. set t1=x
  581. goto check
  582. :2
  583. if "%t2%"=="x" goto player
  584. if "%t2%"=="o" goto player
  585. set t2=x
  586. goto check
  587. :3
  588. if "%t3%"=="x" goto player
  589. if "%t3%"=="o" goto player
  590. set t3=x
  591. goto check
  592. :4
  593. if "%t4%"=="x" goto player
  594. if "%t4%"=="o" goto player
  595. set t4=x
  596. goto check
  597. :5
  598. if "%t5%"=="x" goto player
  599. if "%t5%"=="o" goto player
  600. set t5=x
  601. goto check
  602. :6
  603. if "%t6%"=="x" goto player
  604. if "%t6%"=="o" goto player
  605. set t6=x
  606. goto check
  607. :7
  608. if "%t7%"=="x" goto player
  609. if "%t7%"=="o" goto player
  610. set t7=x
  611. goto check
  612. :8
  613. if "%t8%"=="x" goto player
  614. if "%t8%"=="o" goto player
  615. set t8=x
  616. goto check
  617. :9
  618. if "%t9%"=="x" goto player
  619. if "%t9%"=="o" goto player
  620. set t9=x
  621. goto check
  622.  
  623. :COMPUTER
  624. set pt=o
  625. if "%sl%"=="1" goto skill1
  626. REM (win corner to corner)
  627. if "%t1%"=="o" if "%t3%"=="o" if not "%t2%"=="x" if not "%t2%"=="o" goto c2
  628. if "%t1%"=="o" if "%t9%"=="o" if not "%t5%"=="x" if not "%t5%"=="o" goto c5
  629. if "%t1%"=="o" if "%t7%"=="o" if not "%t4%"=="x" if not "%t4%"=="o" goto c4
  630. if "%t3%"=="o" if "%t7%"=="o" if not "%t5%"=="x" if not "%t5%"=="o" goto c5
  631. if "%t3%"=="o" if "%t9%"=="o" if not "%t6%"=="x" if not "%t6%"=="o" goto c6
  632. if "%t9%"=="o" if "%t7%"=="o" if not "%t8%"=="x" if not "%t8%"=="o" goto c8
  633. REM (win outside middle to outside middle)
  634. if "%t2%"=="o" if "%t8%"=="o" if not "%t5%"=="x" if not "%t5%"=="o" goto c5
  635. if "%t4%"=="o" if "%t6%"=="o" if not "%t5%"=="x" if not "%t5%"=="o" goto c5
  636. REM (win all others)
  637. if "%t1%"=="o" if "%t2%"=="o" if not "%t3%"=="x" if not "%t3%"=="o" goto c3
  638. if "%t1%"=="o" if "%t5%"=="o" if not "%t9%"=="x" if not "%t9%"=="o" goto c9
  639. if "%t1%"=="o" if "%t4%"=="o" if not "%t7%"=="x" if not "%t7%"=="o" goto c7
  640. if "%t2%"=="o" if "%t5%"=="o" if not "%t8%"=="x" if not "%t8%"=="o" goto c8
  641. if "%t3%"=="o" if "%t2%"=="o" if not "%t1%"=="x" if not "%t1%"=="o" goto c1
  642. if "%t3%"=="o" if "%t5%"=="o" if not "%t7%"=="x" if not "%t7%"=="o" goto c7
  643. if "%t3%"=="o" if "%t6%"=="o" if not "%t9%"=="x" if not "%t9%"=="o" goto c9
  644. if "%t4%"=="o" if "%t5%"=="o" if not "%t6%"=="x" if not "%t6%"=="o" goto c6
  645. if "%t6%"=="o" if "%t5%"=="o" if not "%t4%"=="x" if not "%t4%"=="o" goto c4
  646. if "%t7%"=="o" if "%t4%"=="o" if not "%t1%"=="x" if not "%t1%"=="o" goto c1
  647. if "%t7%"=="o" if "%t5%"=="o" if not "%t3%"=="x" if not "%t3%"=="o" goto c3
  648. if "%t7%"=="o" if "%t8%"=="o" if not "%t9%"=="x" if not "%t9%"=="o" goto c9
  649. if "%t8%"=="o" if "%t5%"=="o" if not "%t2%"=="x" if not "%t2%"=="o" goto c2
  650. if "%t9%"=="o" if "%t8%"=="o" if not "%t7%"=="x" if not "%t7%"=="o" goto c7
  651. if "%t9%"=="o" if "%t5%"=="o" if not "%t1%"=="x" if not "%t1%"=="o" goto c1
  652. if "%t9%"=="o" if "%t6%"=="o" if not "%t3%"=="x" if not "%t3%"=="o" goto c3
  653. REM (block general attempts) -----------------------------------------------
  654. if "%t1%"=="x" if "%t2%"=="x" if not "%t3%"=="x" if not "%t3%"=="o" goto c3
  655. if "%t1%"=="x" if "%t5%"=="x" if not "%t9%"=="x" if not "%t9%"=="o" goto c9
  656. if "%t1%"=="x" if "%t4%"=="x" if not "%t7%"=="x" if not "%t7%"=="o" goto c7
  657. if "%t2%"=="x" if "%t5%"=="x" if not "%t8%"=="x" if not "%t8%"=="o" goto c8
  658. if "%t3%"=="x" if "%t2%"=="x" if not "%t1%"=="x" if not "%t1%"=="o" goto c1
  659. if "%t3%"=="x" if "%t5%"=="x" if not "%t7%"=="x" if not "%t7%"=="o" goto c7
  660. if "%t3%"=="x" if "%t6%"=="x" if not "%t9%"=="x" if not "%t9%"=="o" goto c9
  661. if "%t4%"=="x" if "%t5%"=="x" if not "%t6%"=="x" if not "%t6%"=="o" goto c6
  662. if "%t6%"=="x" if "%t5%"=="x" if not "%t4%"=="x" if not "%t4%"=="o" goto c4
  663. if "%t7%"=="x" if "%t4%"=="x" if not "%t1%"=="x" if not "%t1%"=="o" goto c1
  664. if "%t7%"=="x" if "%t5%"=="x" if not "%t3%"=="x" if not "%t3%"=="o" goto c3
  665. if "%t7%"=="x" if "%t8%"=="x" if not "%t9%"=="x" if not "%t9%"=="o" goto c9
  666. if "%t8%"=="x" if "%t5%"=="x" if not "%t2%"=="x" if not "%t2%"=="o" goto c2
  667. if "%t9%"=="x" if "%t8%"=="x" if not "%t7%"=="x" if not "%t7%"=="o" goto c7
  668. if "%t9%"=="x" if "%t5%"=="x" if not "%t1%"=="x" if not "%t1%"=="o" goto c1
  669. if "%t9%"=="x" if "%t6%"=="x" if not "%t3%"=="x" if not "%t3%"=="o" goto c3
  670. REM (block obvious corner to corner)
  671. if "%t1%"=="x" if "%t3%"=="x" if not "%t2%"=="x" if not "%t2%"=="o" goto c2
  672. if "%t1%"=="x" if "%t9%"=="x" if not "%t5%"=="x" if not "%t5%"=="o" goto c5
  673. if "%t1%"=="x" if "%t7%"=="x" if not "%t4%"=="x" if not "%t4%"=="o" goto c4
  674. if "%t3%"=="x" if "%t7%"=="x" if not "%t5%"=="x" if not "%t5%"=="o" goto c5
  675. if "%t3%"=="x" if "%t9%"=="x" if not "%t6%"=="x" if not "%t6%"=="o" goto c6
  676. if "%t9%"=="x" if "%t7%"=="x" if not "%t8%"=="x" if not "%t8%"=="o" goto c8
  677. if "%sl%"=="2" goto skill2
  678. REM (block sneaky corner to corner 2-4, 2-6, etc.)
  679. if "%t2%"=="x" if "%t4%"=="x" if not "%t1%"=="x" if not "%t1%"=="o" goto c1
  680. if "%t2%"=="x" if "%t6%"=="x" if not "%t3%"=="x" if not "%t3%"=="o" goto c3
  681. if "%t8%"=="x" if "%t4%"=="x" if not "%t7%"=="x" if not "%t7%"=="o" goto c7
  682. if "%t8%"=="x" if "%t6%"=="x" if not "%t9%"=="x" if not "%t9%"=="o" goto c9
  683. REM (block offset corner trap 1-8, 1-6, etc.)
  684. if "%t1%"=="x" if "%t6%"=="x" if not "%t8%"=="x" if not "%t8%"=="o" goto c8
  685. if "%t1%"=="x" if "%t8%"=="x" if not "%t6%"=="x" if not "%t6%"=="o" goto c6
  686. if "%t3%"=="x" if "%t8%"=="x" if not "%t4%"=="x" if not "%t4%"=="o" goto c4
  687. if "%t3%"=="x" if "%t4%"=="x" if not "%t8%"=="x" if not "%t8%"=="o" goto c8
  688. if "%t9%"=="x" if "%t4%"=="x" if not "%t2%"=="x" if not "%t2%"=="o" goto c2
  689. if "%t9%"=="x" if "%t2%"=="x" if not "%t4%"=="x" if not "%t4%"=="o" goto c4
  690. if "%t7%"=="x" if "%t2%"=="x" if not "%t6%"=="x" if not "%t6%"=="o" goto c6
  691. if "%t7%"=="x" if "%t6%"=="x" if not "%t2%"=="x" if not "%t2%"=="o" goto c2
  692.  
  693. :SKILL2
  694. REM (block outside middle to outside middle)
  695. if "%t2%"=="x" if "%t8%"=="x" if not "%t5%"=="x" if not "%t5%"=="o" goto c5
  696. if "%t4%"=="x" if "%t6%"=="x" if not "%t5%"=="x" if not "%t5%"=="o" goto c5
  697. REM (block 3 corner trap)
  698. if "%t1%"=="x" if "%t9%"=="x" if not "%t2%"=="x" if not "%t2%"=="o" goto c2
  699. if "%t3%"=="x" if "%t7%"=="x" if not "%t2%"=="x" if not "%t2%"=="o" goto c2
  700. if "%t1%"=="x" if "%t9%"=="x" if not "%t4%"=="x" if not "%t4%"=="o" goto c4
  701. if "%t3%"=="x" if "%t7%"=="x" if not "%t4%"=="x" if not "%t4%"=="o" goto c4
  702. if "%t1%"=="x" if "%t9%"=="x" if not "%t6%"=="x" if not "%t6%"=="o" goto c6
  703. if "%t3%"=="x" if "%t7%"=="x" if not "%t6%"=="x" if not "%t6%"=="o" goto c6
  704. if "%t1%"=="x" if "%t9%"=="x" if not "%t8%"=="x" if not "%t8%"=="o" goto c8
  705. if "%t3%"=="x" if "%t7%"=="x" if not "%t8%"=="x" if not "%t8%"=="o" goto c8
  706. :SKILL1
  707. REM (just take a turn)
  708. if not "%t5%"=="x" if not "%t5%"=="o" goto c5
  709. if not "%t1%"=="x" if not "%t1%"=="o" goto c1
  710. if not "%t3%"=="x" if not "%t3%"=="o" goto c3
  711. if not "%t7%"=="x" if not "%t7%"=="o" goto c7
  712. if not "%t9%"=="x" if not "%t9%"=="o" goto c9
  713. if not "%t2%"=="x" if not "%t2%"=="o" goto c2
  714. if not "%t4%"=="x" if not "%t4%"=="o" goto c4
  715. if not "%t6%"=="x" if not "%t6%"=="o" goto c6
  716. if not "%t8%"=="x" if not "%t8%"=="o" goto c8
  717. set nm=0
  718. goto update
  719.  
  720. :C1
  721. set t1=o
  722. goto check
  723. :C2
  724. set t2=o
  725. goto check
  726. :C3
  727. set t3=o
  728. goto check
  729. :C4
  730. set t4=o
  731. goto check
  732. :C5
  733. set t5=o
  734. goto check
  735. :C6
  736. set t6=o
  737. goto check
  738. :C7
  739. set t7=o
  740. goto check
  741. :C8
  742. set t8=o
  743. goto check
  744. :C9
  745. set t9=o
  746. goto check
  747.  
  748. :CHECK
  749. if "%t1%"=="x" if "%t2%"=="x" if "%t3%"=="x" goto winx
  750. if "%t4%"=="x" if "%t5%"=="x" if "%t6%"=="x" goto winx
  751. if "%t7%"=="x" if "%t8%"=="x" if "%t9%"=="x" goto winx
  752. if "%t1%"=="x" if "%t4%"=="x" if "%t7%"=="x" goto winx
  753. if "%t2%"=="x" if "%t5%"=="x" if "%t8%"=="x" goto winx
  754. if "%t3%"=="x" if "%t6%"=="x" if "%t9%"=="x" goto winx
  755. if "%t1%"=="x" if "%t5%"=="x" if "%t9%"=="x" goto winx
  756. if "%t3%"=="x" if "%t5%"=="x" if "%t7%"=="x" goto winx
  757. if "%t1%"=="o" if "%t2%"=="o" if "%t3%"=="o" goto wino
  758. if "%t4%"=="o" if "%t5%"=="o" if "%t6%"=="o" goto wino
  759. if "%t7%"=="o" if "%t8%"=="o" if "%t9%"=="o" goto wino
  760. if "%t1%"=="o" if "%t4%"=="o" if "%t7%"=="o" goto wino
  761. if "%t2%"=="o" if "%t5%"=="o" if "%t8%"=="o" goto wino
  762. if "%t3%"=="o" if "%t6%"=="o" if "%t9%"=="o" goto wino
  763. if "%t1%"=="o" if "%t5%"=="o" if "%t9%"=="o" goto wino
  764. if "%t3%"=="o" if "%t5%"=="o" if "%t7%"=="o" goto wino
  765. if "%pt%"=="x" goto computer
  766. if "%pt%"=="o" goto update
  767.  
  768. :WINX
  769. set gw=x
  770. goto update
  771. :WINX2
  772. echo You win!
  773. echo Play again (Y,N)?
  774. CHOICE /c:ynsq /n > nul
  775. if errorlevel 4 goto MMENU
  776. if errorlevel 3 goto begin
  777. if errorlevel 2 goto MMENU
  778. goto layout
  779.  
  780. :WINO
  781. set gw=o
  782. goto update
  783. :WINO2
  784. echo Sorry, You lose.
  785. echo Play again (Y,N)?
  786. CHOICE /c:ynsq /n > nul
  787. if errorlevel 4 goto MMENU
  788. if errorlevel 3 goto begin
  789. if errorlevel 2 goto MMENU
  790. goto layout
  791.  
  792. :NOMOVES
  793. echo There are no more moves left!
  794. echo Play again (Y,N)?
  795. CHOICE /c:ynsq /n > nul
  796. if errorlevel 4 goto MMENU
  797. if errorlevel 3 goto begin
  798. if errorlevel 2 goto MMENU
  799. goto layout
  800.  
  801.  
  802. REM ------------------------------------------------------------------------------------------------------------------------------------------------------------------
  803.  
  804. REM -------------------------------------------------------------------Remote Scripts---------------------------------------------------------------------------------------
  805.  
  806. :RSelection1
  807. CLS
  808.  
  809. ECHO ============= Kill Task ===================
  810. ECHO -------------------------------------------
  811. ECHO 1. Kill Task by PID
  812. ECHO 2. Kill Task by Name
  813. ECHO -------------------------------------------
  814. ECHO 3. IE
  815. ECHO 4. VCT
  816. ECHO -------------------------------------------
  817. ECHO ==========PRESS 'M' For Main Menu==========
  818. ECHO .
  819.  
  820. SET KINPUT=
  821. SET /P KINPUT=Please select a number:
  822.  
  823. IF /I '%KINPUT%'=='1' GOTO killp
  824. IF /I '%KINPUT%'=='2' GOTO killn
  825. IF /I '%KINPUT%'=='3' GOTO IE
  826. IF /I '%KINPUT%'=='4' GOTO VCT
  827.  
  828. IF /I '%KINPUT%'=='M' GOTO MMenu
  829.  
  830. CLS
  831.  
  832. ECHO ============INVALID INPUT=============
  833. ECHO --------------------------------------
  834. ECHO Please select a number from the Main
  835. ECHO Menu [1-4] or select 'M' to Mail Menu.
  836. ECHO --------------------------------------
  837. ECHO ======PRESS ANY KEY TO CONTINUE=======
  838.  
  839. PAUSE > NUL
  840. GOTO RSelection1
  841.  
  842. :killp
  843. CLS
  844. tasklist /S %dnumber%
  845.  
  846. SET /P PID=Please Enter PID of task you wish to Kill:
  847. taskkill /S %dnumber% /PID %PID%
  848. ECHO .
  849. ECHO ======PRESS ANY KEY TO CONTINUE======
  850. PAUSE > NUL
  851. GOTO RSelection1
  852.  
  853. :killn
  854. CLS
  855. tasklist /S %dnumber%
  856.  
  857. SET /P name=Please Enter the Name of task you wish to Kill:
  858. taskkill /S %dnumber% /IM %name%
  859. ECHO .
  860. ECHO ======PRESS ANY KEY TO CONTINUE======
  861. PAUSE > NUL
  862. GOTO RSelection1
  863.  
  864. :IE
  865. CLS
  866. taskkill /S %dnumber% /F /IM iexplore.exe /T
  867. ECHO .
  868. ECHO ======PRESS ANY KEY TO CONTINUE======
  869. PAUSE > NUL
  870. GOTO RSelection1
  871.  
  872. :VCT
  873. CLS
  874. taskkill /S %dnumber% /F /IM communicator.exe /T
  875. ECHO .
  876. ECHO ======PRESS ANY KEY TO CONTINUE======
  877. PAUSE > NUL
  878. GOTO RSelection1
  879.  
  880. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  881.  
  882. :RSelection2
  883. CLS
  884. SET /P server=Please Enter the Server name:
  885. xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\pitrl.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
  886. mkdir "C:\Users\%username%\Desktop\%user%\%dnumber%\Tests"
  887. ping %server% > "C:\Users\%username%\Desktop\%user%\%dnumber%\Tests\S-U-Tests.txt"
  888. ping %dnumber% >> "C:\Users\%username%\Desktop\%user%\%dnumber%\Tests\S-U-Tests.txt"
  889. tracert %server% >> "C:\Users\%username%\Desktop\%user%\%dnumber%\Tests\S-U-Tests.txt"
  890. tracert %dnumber% >> "C:\Users\%username%\Desktop\%user%\%dnumber%\Tests\S-U-Tests.txt"
  891. ECHO .
  892. ECHO =============Please Read=============
  893. ECHO -------------------------------------
  894. ECHO Please Run the batch file pitrl.bat
  895. ECHO Located on the user Desktop
  896. ECHO The result ran from here are located:
  897. ECHO %userprofile%\Desktop\%U%\%Dnumber%
  898. ECHO -------------------------------------
  899. ECHO ======PRESS ANY KEY TO CONTINUE======
  900. PAUSE > NUL
  901. GOTO MMENU
  902.  
  903. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  904.  
  905. :RSelection3
  906. CLS
  907. ECHO ================Please Read================
  908. ECHO -------------------------------------------
  909. ECHO The User is about to be Logged out.
  910. ECHO Please take an alternative Contact
  911. ECHO Number and Inform them you will call back.
  912. ECHO -------------------------------------------
  913. ECHO =========PRESS ANY KEY TO CONTINUE=========
  914. ECHO .
  915. PAUSE>NUL
  916. rwinsta /server:%dnumber% 1
  917. rwinsta /server:%dnumber% 2
  918. CLS
  919. ECHO The user has now been logged out, starting to move files...
  920. timeout /t 3 /NOBREAK>nul
  921. rmdir /q /s "<\\%dnumber%\c$\Program Files (x86)\Level 3\Outlook Add-in for VCT for Desktop>"
  922. CLS
  923. ECHO Please Wait...
  924. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  925. timeout /t 5 /NOBREAK>nul
  926. CLS
  927. xcopy "\\10.1.34.20\c$\Transfer\HTA\Batch\Other material\VCTAddinFix" "\\%dnumber%\c$\Program Files (x86)\Level 3" /H /E /Q /I
  928. CLS
  929. ECHO Command has completed the file transfer
  930. timeout /t 2 /NOBREAK>nul
  931. GOTO MMENU
  932.  
  933. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  934.  
  935. :RSelection4
  936. CLS
  937.  
  938. ECHO ============= MAIN MENU =============
  939. ECHO -------------------------------------
  940. ECHO 1. Backup
  941. ECHO 2. Recover
  942. ECHO -------------------------------------
  943. ECHO ==========PRESS 'Q' TO QUIT==========
  944. ECHO.
  945.  
  946. SET BOPTION=
  947. SET /P BOPTION=Please select a number:
  948.  
  949. IF /I '%BOPTION%'=='1' GOTO BSelection1
  950. IF /I '%BOPTION%'=='2' GOTO BSelection2
  951. IF /I '%BOPTION%'=='Q' GOTO BQuit
  952.  
  953. CLS
  954.  
  955. ECHO ============INVALID OPTION============
  956. ECHO -------------------------------------
  957. ECHO Please select a number from the Main
  958. ECHO Menu [1-2] or select 'Q' to quit.
  959. ECHO -------------------------------------
  960. ECHO ======PRESS ANY KEY TO CONTINUE======
  961.  
  962. PAUSE > NUL
  963. GOTO RSelection4
  964.  
  965. :BSelection1
  966.  
  967. mkdir "c:\Users\%username%\Desktop\%user%\%dnumber%\Desktop"
  968. mkdir "c:\Users\%username%\Desktop\%user%\%dnumber%\Signatures"
  969. mkdir "c:\Users\%username%\Desktop\%user%\%dnumber%\Settings"
  970. xcopy "\\%dnumber%\C$\Users\%user%\Desktop" "c:\Users\%username%\Desktop\%user%\%dnumber%\Desktop" /E /I /Q /H
  971. xcopy "\\%dnumber%\C$\Users\%user%\appdata\Roaming\Microsoft\Signatures" "c:\Users\%username%\Desktop\%user%\%dnumber%\Signatures" /E /I /Q /H
  972. xcopy "\\%dnumber%\C$\Users\%user%\AppData\Roaming\Microsoft\Outlook" "c:\Users\%username%\Desktop\%user%\%dnumber%\Settings" /E /I /Q /H
  973. ECHO.
  974. ECHO ======PRESS ANY KEY TO CONTINUE======
  975. PAUSE > NUL
  976. GOTO RSelection4
  977.  
  978. :BSelection2
  979.  
  980. xcopy "c:\Users\%username%\Desktop\%user%\%dnumber%\Desktop" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
  981. xcopy "c:\Users\%username%\Desktop\%user%\%dnumber%\Signatures" "\\%dnumber%\C$\Users\%user%\Appdata\Roaming\Microsoft\Signatures" /E /I /Q /H
  982. xcopy "c:\Users\%username%\Desktop\%user%\%dnumber%\Settings" "\\%dnumber%\C$\Users\%user%\AppData\Roaming\Microsoft\Outlook" /E /I /Q /H
  983. ECHO.
  984. ECHO ======PRESS ANY KEY TO CONTINUE======
  985. PAUSE > NUL
  986. GOTO RSelection4
  987. :BQuit
  988. CLS
  989.  
  990. ECHO ==============THANK YOU===============
  991. ECHO --------------------------------------
  992. ECHO ======PRESS ANY KEY TO CONTINUE ======
  993. PAUSE>NUL
  994. GOTO MMENU
  995.  
  996. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  997.  
  998. :RSelection5
  999. CLS
  1000. qwinsta /server:%dnumber%
  1001. SET /P session=Please select the Session you wish to kick and press ENTER:
  1002. rwinsta /server:%dnumber% %session%
  1003. GOTO MMENU
  1004.  
  1005. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  1006.  
  1007. :RSelection6
  1008. CLS
  1009. ping %dnumber%
  1010. GOTO MMENU
  1011.  
  1012. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  1013.  
  1014. :RSelection7
  1015. CLS
  1016. ECHO This will Kill VCT
  1017. ECHO ======PRESS ANY KEY TO CONTINUE ======
  1018. PAUSE>nul
  1019. taskkill /s %dnumber% /f /t /im Communicator.exe
  1020. CLS
  1021. ECHO Proccess have now Been terminated, renaming VCT for desktop file
  1022.  
  1023. timeout /t 3 /NOBREAK>NUL
  1024. Rmdir /Q/S "\\%dnumber%\c$\Users\%user%\AppData\Local\Level 3\VCT for Desktop.old"
  1025. CLS
  1026. timeout /t 2 /NOBREAK>NUL
  1027. ren "\\%dnumber%\c$\Users\%user%\AppData\Local\Level 3\VCT for Desktop" "VCT for Desktop.old"
  1028.  
  1029. timeout /t 2 /NOBREAK>NUL
  1030. CLS
  1031.  
  1032. ECHO Command has completed user can now log back in and try VCT
  1033. ECHO User will need the audio preferences set back up and credentials as follows:
  1034. ECHO URL: vctclient.voice.uk.level3.com
  1035. ECHO User: (VCT number)@Voice.uk.level3.com
  1036. ECHO Pass: Users password for VCT, send to level 3 if they do not remember.
  1037.  
  1038. timeout /t 7 /NOBREAK>NUL
  1039. GOTO MMENU
  1040.  
  1041.  
  1042. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  1043.  
  1044. :RSelection8
  1045. CLS
  1046.  
  1047. ECHO ============= Desktop Links =================
  1048. ECHO ---------------------------------------------
  1049. ECHO 1. CMS Alt
  1050. ECHO 2. JRAS
  1051. ECHO 3. CCTRS
  1052. ECHO 4. LIBRA
  1053. ECHO 5. XHIBIT
  1054. ECHO 6. DCS
  1055. ECHO 7. FARMS Discoverer
  1056. ECHO 8. FARMS Live
  1057. ECHO 9. Hermes Live
  1058. ECHO 10. P2P Zanzibar
  1059. ECHO 11. REMs
  1060. ECHO 12. SRM Remedy
  1061. ECHO ---------------------------------------------
  1062. ECHO ========== PRESS 'M' For Main Menu ==========
  1063. ECHO.
  1064.  
  1065. SET DLOPTION=
  1066. SET /P DLOPTION=Please select a number:
  1067.  
  1068. IF /I '%DLOPTION%'=='1' GOTO DLSelection1
  1069. IF /I '%DLOPTION%'=='2' GOTO DLSelection2
  1070. IF /I '%DLOPTION%'=='3' GOTO DLSelection3
  1071. IF /I '%DLOPTION%'=='4' GOTO DLSelection4
  1072. IF /I '%DLOPTION%'=='5' GOTO DLSelection5
  1073. IF /I '%DLOPTION%'=='6' GOTO DLSelection6
  1074. IF /I '%DLOPTION%'=='7' GOTO DLSelection7
  1075. IF /I '%DLOPTION%'=='8' GOTO DLSelection8
  1076. IF /I '%DLOPTION%'=='9' GOTO DLSelection9
  1077. IF /I '%DLOPTION%'=='10' GOTO DLSelection10
  1078. IF /I '%DLOPTION%'=='11' GOTO DLSelection11
  1079. IF /I '%DLOPTION%'=='12' GOTO DLSelection12
  1080.  
  1081. IF /I '%DLOPTION%'=='M' GOTO DLQuit
  1082.  
  1083. CLS
  1084.  
  1085. ECHO ============INVALID OPTION=============
  1086. ECHO ---------------------------------------
  1087. ECHO Please select a number from the Main
  1088. ECHO Menu [1-12] or select 'M' For Mail Menu
  1089. ECHO ---------------------------------------
  1090. ECHO ======PRESS ANY KEY TO CONTINUE========
  1091.  
  1092. PAUSE > NUL
  1093. GOTO RSelection8
  1094.  
  1095. :DLSelection1
  1096.  
  1097. //## Link 1
  1098.  
  1099. copy "C:\Transfer\HTA\Batch\Links\CMS Alt.url" "\\%dnumber%\C$\Users\%user%\Desktop"
  1100. ECHO ======PRESS ANY KEY TO CONTINUE======
  1101. PAUSE>NUL
  1102. GOTO RSelection8
  1103.  
  1104. :DLSelection2
  1105.  
  1106. //## Link 2
  1107.  
  1108. copy "C:\Transfer\HTA\Batch\Links\JRAS.url" "\\%dnumber%\C$\Users\%user%\Desktop"
  1109. ECHO ======PRESS ANY KEY TO CONTINUE======
  1110. PAUSE>NUL
  1111. GOTO RSelection8
  1112.  
  1113. :DLSelection3
  1114.  
  1115. //## Link 3
  1116.  
  1117. copy "C:\Transfer\HTA\Batch\Links\CCTRS.url" "\\%dnumber%\C$\Users\%user%\Desktop"
  1118. ECHO ======PRESS ANY KEY TO CONTINUE======
  1119. PAUSE>NUL
  1120. GOTO RSelection8
  1121. .
  1122. :DLSelection4
  1123.  
  1124. //## Link 4
  1125.  
  1126. copy "C:\Transfer\HTA\Batch\Links\LIBRA.url" "\\%dnumber%\C$\Users\%user%\Desktop"
  1127. ECHO ======PRESS ANY KEY TO CONTINUE======
  1128. PAUSE>NUL
  1129. GOTO RSelection8
  1130.  
  1131. :DLSelection5
  1132.  
  1133. //## Link 5
  1134.  
  1135. copy "C:\Transfer\HTA\Batch\Links\XHIBIT.url" "\\%dnumber%\C$\Users\%user%\Desktop"
  1136. ECHO ======PRESS ANY KEY TO CONTINUE======
  1137. PAUSE>NUL
  1138. GOTO RSelection8
  1139.  
  1140. :DLSelection6
  1141.  
  1142. //## Link 6
  1143.  
  1144. copy "C:\Transfer\HTA\Batch\Links\DCS.url" "\\%dnumber%\C$\Users\%user%\Desktop"
  1145. ECHO ======PRESS ANY KEY TO CONTINUE======
  1146. PAUSE>NUL
  1147. GOTO RSelection8
  1148.  
  1149. :DLSelection7
  1150.  
  1151. //## Link 7
  1152.  
  1153. copy "C:\Transfer\HTA\Batch\Links\FARMS Discoverer.url" "\\%dnumber%\C$\Users\%user%\Desktop"
  1154. ECHO ======PRESS ANY KEY TO CONTINUE======
  1155. PAUSE>NUL
  1156. GOTO RSelection8
  1157.  
  1158. :DLSelection8
  1159.  
  1160. //## Link 8
  1161.  
  1162. copy "C:\Transfer\HTA\Batch\Links\FARMS Live.url" "\\%dnumber%\C$\Users\%user%\Desktop"
  1163. ECHO ======PRESS ANY KEY TO CONTINUE======
  1164. PAUSE>NUL
  1165. GOTO RSelection8
  1166.  
  1167. :DLSelection9
  1168.  
  1169. //## Link 9
  1170.  
  1171. copy "C:\Transfer\HTA\Batch\Links\Hermes Live.url" "\\%dnumber%\C$\Users\%user%\Desktop"
  1172. ECHO ======PRESS ANY KEY TO CONTINUE======
  1173. PAUSE>NUL
  1174. GOTO RSelection8
  1175.  
  1176. :DLSelection10
  1177.  
  1178. //## Link 10
  1179.  
  1180. copy "C:\Transfer\HTA\Batch\Links\P2P Zanzibar.url" "\\%dnumber%\C$\Users\%user%\Desktop"
  1181. ECHO ======PRESS ANY KEY TO CONTINUE======
  1182. PAUSE>NUL
  1183. GOTO RSelection8
  1184.  
  1185. :DLSelection11
  1186.  
  1187. //## Link 11
  1188.  
  1189. copy "C:\Transfer\HTA\Batch\Links\REMs.url" "\\%dnumber%\C$\Users\%user%\Desktop"
  1190. ECHO ======PRESS ANY KEY TO CONTINUE======
  1191. PAUSE>NUL
  1192. GOTO RSelection8
  1193.  
  1194. :DLSelection12
  1195.  
  1196. //## Link 12
  1197.  
  1198. copy "C:\Transfer\HTA\Batch\Links\SRM.url" "\\%dnumber%\C$\Users\%user%\Desktop"
  1199. ECHO ======PRESS ANY KEY TO CONTINUE======
  1200. PAUSE>NUL
  1201. GOTO RSelection8
  1202.  
  1203. :DLQuit
  1204. CLS
  1205.  
  1206. ECHO ==============THANKYOU===============
  1207. ECHO -------------------------------------
  1208. ECHO ======PRESS ANY KEY TO CONTINUE======
  1209.  
  1210. PAUSE>NUL
  1211. GOTO MMENU
  1212.  
  1213. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  1214.  
  1215. :RSelection9
  1216. CLS
  1217.  
  1218. ECHO ================Please Read================
  1219. ECHO -------------------------------------------
  1220. ECHO The User is about to be Logged out.
  1221. ECHO Please take an alternative Contact
  1222. ECHO Number, Inform them you will call back.
  1223. ECHO OR
  1224. ECHO If following an unlock disregard the above
  1225. ECHO -------------------------------------------
  1226. ECHO =========PRESS ANY KEY TO CONTINUE=========
  1227. ECHO .
  1228. PAUSE>NUL
  1229.  
  1230. rwinsta /server:%dnumber% 1
  1231. CLS
  1232.  
  1233. ECHO =========PRESS ANY KEY TO CONTINUE=========
  1234. ECHO .
  1235. PAUSE>NUL
  1236. ECHO ================Please Wait================
  1237. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  1238.  
  1239. timeout /t 5 /NOBREAK>nul
  1240. start mstsc /v:%dnumber%
  1241. CLS
  1242.  
  1243. ECHO ===================Please Read===================
  1244. ECHO -------------------------------------------------
  1245. ECHO Once you have entered your Username and Password
  1246. ECHO -------------------------------------------------
  1247. ECHO ============PRESS ANY KEY TO CONTINUE============
  1248. ECHO .
  1249. PAUSE>NUL
  1250. ECHO ================Please Wait================
  1251. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  1252.  
  1253. timeout /t 5 /NOBREAK>nul
  1254. CLS
  1255.  
  1256. ECHO ===================Please Read===================
  1257. ECHO -------------------------------------------------
  1258. ECHO Files now being copied to the device
  1259. ECHO You will have a folder called "Bitlocker"
  1260. ECHO on your desktop once logged in
  1261.  
  1262. xcopy "C:\transfer\HTA\Batch\Bitlocker\" "\\%dnumber%\c$\Users\%username%\Desktop" /E /I /Q /H
  1263. ECHO -------------------------------------------------
  1264. ECHO ============PRESS ANY KEY TO CONTINUE============
  1265. ECHO .
  1266. PAUSE>NUL
  1267. CLS
  1268.  
  1269. ECHO ================Please Read================
  1270. ECHO -------------------------------------------
  1271. ECHO When you have Finished on your session
  1272. ECHO Please encourage the user to change PIN
  1273. ECHO If they have not already done so
  1274. ECHO Must be alphanumeric Only
  1275. ECHO Open "BitLocker Drive Encryption" for them
  1276. ECHO Continue once they are logged back in
  1277. ECHO -------------------------------------------
  1278. ECHO =========PRESS ANY KEY TO CONTINUE=========
  1279. ECHO .
  1280. PAUSE>NUL
  1281. CLS
  1282.  
  1283. start msra /offerRA %dnumber%
  1284. ECHO =========PRESS ANY KEY TO CONTINUE=========
  1285. ECHO .
  1286. PAUSE>NUL
  1287. GOTO MMENU
  1288.  
  1289. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  1290.  
  1291. :RSelection10
  1292. CLS
  1293.  
  1294. ECHO This will attempt to Fix CMS Exception ID 39
  1295. xcopy "\\%dnumber%\C$\Program Files (x86)\CMS\COMDLG32.OCX" "\\%dnumber%\C$\Windows\sysWOW\" /E /I /Q /H
  1296. ECHO -------------------------------------------------
  1297. ECHO ============PRESS ANY KEY TO CONTINUE============
  1298. ECHO .
  1299. PAUSE>NUL
  1300. CLS
  1301. GOTO MMENU
  1302.  
  1303. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  1304.  
  1305. :RSelection11
  1306. CLS
  1307.  
  1308. ECHO ================Please Read================
  1309. ECHO -------------------------------------------
  1310. ECHO The Users prosecutor application and Adobe/ Adobe pro
  1311. ECHO is about to close please make sure they have saved any
  1312. ECHO work before continuing
  1313. ECHO -------------------------------------------
  1314. ECHO =========PRESS ANY KEY TO CONTINUE=========
  1315. ECHO .
  1316. PAUSE>NUL
  1317. CLS
  1318. ECHO Please Wait...
  1319. TASKKILL /S %dnumber% /IM CreativeJar
  1320. taskkill /S %dnumber% /F /IM Acrord32.exe /T
  1321. RMDIR /Q /S "\\%dnumber%\G$\App backup\"
  1322. MKDIR "\\%dnumber%\G$\App backup\CasesData"
  1323. timeout /t 3 /NOBREAK>NUL
  1324. copy "\\%dnumber%\G$\APP FILES –DO NOT DELETE\CPS.GOV.UK-%user%\Live-UserSession.txt" "\\%dnumber%\G$\App backup"
  1325. xcopy "\\%dnumber%\G$\APP FILES –DO NOT DELETE\CPS.GOV.UK-%user%\Live\CasesData" "\\%dnumber%\G$\App backup\CasesData" /H /E /Q /I
  1326. Timeout /t 2 /NOBREAK>NUL
  1327. Rmdir /Q /S "G:\Open Bundles\CPS.GOV.UK-%user%"
  1328. Timeout /t 2 /NOBREAK>NUL
  1329. Rmdir /Q /S "G:\APP FILES –DO NOT DELETE\CPS.GOV.UK-%user%"
  1330. Timeout /t 2 /NOBREAK>NUL
  1331. CLS
  1332. ECHO -------------------------------------------------
  1333. ECHO ============PRESS ANY KEY TO CONTINUE============
  1334. ECHO .
  1335. PAUSE>NUL
  1336. CLS
  1337. GOTO MMENU
  1338.  
  1339. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  1340.  
  1341. :RSelection12
  1342. CLS
  1343.  
  1344. ECHO Please be aware this is going to close IE, Word and Adobe...
  1345.  
  1346. taskkill /S %dnumber% /F /IM iexplore.exe /T
  1347. taskkill /S %dnumber% /F /IM Acrord32.exe /T
  1348. taskkill /S %dnumber% /F /IM WINWORD.exe /T
  1349. CLS
  1350. ECHO Please Wait while Files are removed..
  1351. Rmdir /S /Q "\\%dnumber%\G$\Local\%user%\CMS Documents\PCMS"
  1352. Rmdir /S /Q "\\%dnumber%\G$\Local\CMS Templates\PCMS"
  1353. timeout -t 3 /NOBREAK>NUL
  1354. MKDIR "\\%dnumber%\G$\Local\%user%\CMS Documents\PCMS"
  1355. MKDIR "\\%dnumber%\G$\Local\CMS Templates\PCMS"
  1356. CLS
  1357. ECHO -------------------------------------------------
  1358. ECHO ============PRESS ANY KEY TO CONTINUE============
  1359. ECHO .
  1360. PAUSE>NUL
  1361. CLS
  1362. GOTO MMENU
  1363.  
  1364. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  1365.  
  1366. :RSelection13
  1367. CLS
  1368.  
  1369. NSlookup %dnumber%
  1370. ECHO -------------------------------------------------
  1371. ECHO ============PRESS ANY KEY TO CONTINUE============
  1372. ECHO .
  1373. PAUSE>NUL
  1374. CLS
  1375. GOTO MMENU
  1376.  
  1377. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  1378.  
  1379. :RSelection14
  1380. CLS
  1381. ECHO ==============THANKYOU================
  1382. ECHO ---IE & Word are about to be Closed---
  1383. ECHO ======PRESS ANY KEY TO CONTINUE=======
  1384.  
  1385. PAUSE>NUL
  1386. CLS
  1387.  
  1388. ECHO ============= Please Wait =============
  1389. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  1390. timeout /T 3 /NOBREAK>NUL
  1391. taskkill /S %dnumber% /F /IM iexplore.exe /T
  1392. taskkill /S %dnumber% /F /IM winword.exe /T
  1393. xcopy "C:\Transfer\HTA\Batch\Transferscripts\Scripts for Device\Clean Up.bat" "\\%dnumber%\C$\Users\%user%\Desktop" /E /I /Q /H
  1394. rd /s /q \\%dnumber%\C$\Temp\
  1395. rd /s /q \\%dnumber%\C$\Windows\Temp\
  1396. rd /s /q \\%dnumber%\C$\Users\%user%\AppData\Local\Temp\
  1397. del /q /f "\\%dnumber%\C$\Users\%user%\AppData\Roaming\Microsoft\Templates\Normal.dotm"
  1398. timeout /T 3 /NOBREAK>NUL
  1399. mkdir \\%dnumber%\C$\Temp\
  1400. mkdir \\%dnumber%\C$\Windows\Temp\
  1401. mkdir \\%dnumber%\C$\Users\%user%\AppData\Local\Temp\
  1402. copy "C:\Transfer\HTA\Batch\Other material\Manual installs\Normal dotm\Normal.dotm" "\\%dnumber%\C$\Users\%user%\AppData\Roaming\Microsoft\Templates"
  1403. ECHO ==============Please Read===============
  1404. ECHO ----------------------------------------
  1405. ECHO Please set the users power Options
  1406. ECHO to High Performance and Run the Clean up
  1407. ECHO script then test Printing again
  1408. ECHO ----------------------------------------
  1409. ECHO =======PRESS ANY KEY TO CONTINUE========
  1410.  
  1411. PAUSE>NUL
  1412. GOTO MMENU
  1413.  
  1414.  
  1415. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  1416.  
  1417.  
  1418. :RSelection15
  1419. CLS
  1420.  
  1421. ECHO About to close Outlook Please make user aware...
  1422. Pause
  1423. taskkill /S %dnumber% /IM outlook.exe
  1424. CLS
  1425. ECHO Please Wait Deleting OST..
  1426. timeout /T 3 /NOBREAK>NUL
  1427. DEL /Q /S \\%dnumber%\Users\%user%\AppData\Local\Microsoft\Outlook\*.ost
  1428. timeout /T 2 /NOBREAK>NUL
  1429. ECHO Done...
  1430. PAUSE>NUL
  1431. CLS
  1432.  
  1433. GOTO MMENU
  1434.  
  1435. REM --------------------------------------------------------------------------------------------------------------------------------------------------------------
  1436.  
  1437.  
  1438. :RSelection16
  1439. MKDIR "%userprofile%\Desktop\%dnumber%\%user%\GPresult"
  1440. CLS
  1441.  
  1442. ECHO ============= Choise Menu =============
  1443. ECHO -------------------------------------
  1444. ECHO 1. Computer Policy
  1445. ECHO 2. User Policy
  1446. ECHO -------------------------------------
  1447. ECHO ==========PRESS 'M' TO QUIT==========
  1448. ECHO .
  1449.  
  1450. SET OINPUT=
  1451. SET /P OINPUT=Please select a number:
  1452.  
  1453. IF /I '%OINPUT%'=='1' GOTO opt1
  1454. IF /I '%OINPUT%'=='2' GOTO opt2
  1455.  
  1456.  
  1457. IF /I '%OINPUT%'=='M' GOTO MMENU
  1458.  
  1459. CLS
  1460.  
  1461. ECHO ============INVALID INPUT============
  1462. ECHO -------------------------------------
  1463. ECHO Please select a number from the Main
  1464. ECHO Menu [1-2] or select 'M' to quit.
  1465. ECHO -------------------------------------
  1466. ECHO ======PRESS ANY KEY TO CONTINUE======
  1467.  
  1468. PAUSE > NUL
  1469. GOTO RSelection16
  1470.  
  1471. :opt1
  1472. CLS
  1473.  
  1474. gpresult /s %dnumber% /user %user% /scope computer /h "%userprofile%\Desktop\%dnumber%\%user%\GPresult\Compresults.html"
  1475.  
  1476. CLS
  1477. GOTO RSelection16
  1478.  
  1479. :opt2
  1480. CLS
  1481.  
  1482. gpresult /s %dnumber% /user %user% /scope user /h "%userprofile%\Desktop\%dnumber%\%user%\GPresult\Userresults.html"
  1483.  
  1484. CLS
  1485. GOTO RSelection16
  1486.  
  1487. REM ------------------------------------------------------------End of Remote Scripts--------------------------------------------------------------------------------------------------
  1488.  
  1489.  
  1490. :Quit
  1491. CLS
  1492.  
  1493. ECHO ===========================THANKYOU============================
  1494. ECHO ---------------------------------------------------------------
  1495. for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
  1496. ECHO ---------------------------------------------------------------
  1497. ECHO ===================PRESS ANY KEY TO CONTINUE===================
  1498.  
  1499. PAUSE>NUL
  1500. EXIT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement