FreeBooter

DisableLiveTiles

Nov 14th, 2016
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.50 KB | None | 0 0
  1. :: Created by FreeBooter
  2. @Echo Off
  3. Title Dost-Tech.com
  4. Cd %systemroot%\system32
  5. Call :IsAdmin
  6.  
  7.  
  8. :_Start
  9. Cls & Mode CON  LINES=11 COLS=60 & Color 0D &Title Created By FreeBooter
  10. Echo.
  11. Echo       ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
  12. Echo       º Type (D) to Disable Live Tiles   º  
  13. Echo       ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
  14. Echo.
  15. Echo.
  16. Echo       ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»  
  17. Echo       º Type (E) to Enable Live Tiles   º  
  18. Echo       ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ  
  19.  
  20.  
  21.  
  22. Set /p input= RESPONSE:
  23. If /i  Not %input%==D (Goto :_Ex) Else (Goto :_Disable)
  24.  
  25. :_Ex
  26. If /i  Not %input%==E  (Goto :_Start) Else (Goto :_Enable)
  27.  
  28.  
  29. ::  Disable Live Tiles
  30. :_Disable
  31. Reg Add HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications  /v NoTileApplicationNotification /t REG_DWORD  /d 1  /f
  32.  
  33. Reg Add HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Explorer /v ClearTilesOnExit /t REG_DWORD  /d 1  /f
  34.  
  35.  
  36. Cls & Mode CON  LINES=5 COLS=48 & Color 0E
  37.  Echo.
  38.  Echo.
  39.  Echo                     FINNISH
  40.  
  41. Ping -n 5  localhost > Nul
  42.  
  43. Cls & Mode CON  LINES=11 COLS=42 & Color 0E & Title Dost-Tech.com
  44. Echo.
  45. Echo.
  46. Echo    THIS COMPUTER WILL REBOOT
  47. Echo.
  48. Echo.
  49. Echo    PLEASE SAVE ALL WORK IN PROGRESS
  50. Echo.
  51. Echo.
  52. Echo    PRESS 'ENTER' KEY TO RESTART COMPUTER
  53. Pause >Nul
  54.  
  55. Shutdown  -r  -t 0  -c "REBOOTING SYSTEM" 2>&1 > Nul
  56. Cls
  57. Exit
  58.  
  59.  
  60.  
  61. ::  Enable Live Tiles
  62. :_Enable
  63. Reg Delete HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications /v NoTileApplicationNotification /f
  64.  
  65. Reg Delete HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Explorer /v ClearTilesOnExit  /f
  66.  
  67. Cls & Mode CON  LINES=5 COLS=48 & Color 0E
  68.  Echo.
  69.  Echo.
  70.  Echo                     FINNISH
  71.  
  72. Ping -n 5  localhost > Nul
  73.  
  74. Cls & Mode CON  LINES=11 COLS=42 & Color 0E & Title Dost-Tech.com
  75. Echo.
  76. Echo.
  77. Echo    THIS COMPUTER WILL REBOOT
  78. Echo.
  79. Echo.
  80. Echo    PLEASE SAVE ALL WORK IN PROGRESS
  81. Echo.
  82. Echo.
  83. Echo    PRESS 'ENTER' KEY TO RESTART COMPUTER
  84. Pause >Nul
  85.  
  86. Shutdown  -r  -t 0  -c "REBOOTING SYSTEM" 2>&1 > Nul
  87. Cls
  88. Exit
  89.  
  90.  
  91.  
  92.  
  93.  
  94. :IsAdmin
  95. Reg.exe query "HKU\S-1-5-19\Environment"
  96. If Not %ERRORLEVEL% EQU 0 (
  97.  Cls & Mode CON  LINES=5 COLS=48 & Color 0C & Title - WARNING -
  98.  Echo.
  99.  Echo.
  100.  Echo  YOU MUST HAVE ADMINISTRATOR RIGHTS TO CONTINUE
  101.  Pause > Nul & Exit
  102. )
  103. Cls
  104. goto:eof
Add Comment
Please, Sign In to add comment