Advertisement
Guest User

Untitled

a guest
Aug 12th, 2018
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 12.31 KB | None | 0 0
  1. @echo off
  2. title GTA V/FiveM Priority for Retail versions
  3. @echo This is an universal "launcher" that will take effect if any fivem.exe is running.
  4. @echo place in same folder as FiveM!    --- Made by Jaanus Gozalez.
  5. :Launch
  6. @echo off
  7. tasklist /FI "IMAGENAME eq fivem.exe" | findstr "fivem.exe" >nul
  8. if %ERRORLEVEL% == 0 goto Detected
  9. timeout 5
  10. @echo Waiting for user to launch GTA...
  11. goto Launch
  12.  
  13. :Detected
  14. cls
  15. @echo Found fivem.exe! Giving 1 minute until game is fully launched then commands will apply.
  16. timeout 60
  17. @echo off
  18. powercfg -s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
  19. wmic process where name="fivem.exe" CALL setpriority "128"
  20. wmic process where name="gtavlauncher.exe" CALL setpriority "64"
  21. wmic process where name="Gameoverlayui.exe" CALL setpriority "64"
  22. wmic process where name="subprocess.exe" CALL setpriority "64"
  23. wmic process where name="SearchUI.exe" CALL setpriority "64"
  24. wmic process where name="Battle.net.exe" CALL setpriority "64"
  25. wmic process where name="ShellExperienceHost.exe" CALL setpriority "64"
  26. wmic process where name="dwm.exe" CALL setpriority "64"
  27. wmic process where name="audiodg.exe" CALL setpriority "64"
  28. wmic process where name="Skype.exe" CALL setpriority "64"
  29. wmic process where name="Firefox.exe" CALL setpriority "64"
  30. wmic process where name="Photoshop.exe" CALL setpriority "64"
  31. wmic process where name="Cmd.exe" CALL setpriority "64"
  32. wmic process where name="Chrome.exe" CALL setpriority "64"
  33. wmic process where name="Steam.exe" CALL setpriority "64"
  34. wmic process where name="services.exe" CALL setpriority "64"
  35. wmic process where name="SecurityHealthService.exe" CALL setpriority "64"
  36. wmic process where name="SecHealthUI.exe" CALL setpriority "64"
  37. wmic process where name="Opera.exe" CALL setpriority "64"
  38. wmic process where name="SearchUI.exe" CALL setpriority "64"
  39. wmic process where name="ShellExperienceHost.exe" CALL setpriority "64"
  40. wmic process where name="smartscreen.exe" CALL setpriority "64"
  41. wmic process where name="dwm.exe" CALL setpriority "64"
  42. wmic process where name="MsMpEng.exe" CALL setpriority "64"
  43. wmic process where name="GTAVLauncher.exe" CALL setpriority "64"
  44. wmic process where name="subprocess.exe" CALL setpriority "64"
  45. wmic process where name="wordpad.exe" CALL setpriority "64"
  46. wmic process where name="Steamwebhelper.exe" CALL setpriority "64"
  47. wmic process where name="ts3client_win64.exe" CALL setpriority "64"
  48. wmic process where name="SteamService.exe" CALL setpriority "64"
  49. wmic process where name="steamwebhelper.exe" CALL setpriority "64"
  50. wmic process where name="GameOverlayUI.exe" CALL setpriority "64"
  51. wmic process where name="MicrosoftEdge.exe" CALL setpriority "64"
  52. wmic process where name="MicrosoftEdgeCP.exe" CALL setpriority "64"
  53. wmic process where name="explorer.exe" CALL setpriority "64"
  54. wmic process where name="explorer.exe" CALL setpriority "64"
  55. wmic process where name="RadeonSettings.exe" CALL setpriority "64"
  56. wmic process where name="Spotifycrashservice.exe" CALL setpriority "64"
  57. wmic process where name="Spotifywebhelper.exe" CALL setpriority "64"
  58. wmic process where name="upc.exe" CALL setpriority "64"
  59. wmic process where name="UplayWebCore.exe" CALL setpriority "64"
  60. wmic process where name="AsusAudioCenter.exe" CALL setpriority "64"
  61. wmic process where name="Spotify.exe" CALL setpriority "64"
  62. wmic process where name="Isass.exe" CALL setpriority "64"
  63. wmic process where name="NisSrv.exe" CALL setpriority "64"
  64. wmic process where name="explorer.exe" CALL setpriority "64"
  65. wmic process where name="explorer.exe" CALL setpriority "64"
  66. wmic process where name="Origin.exe" CALL setpriority "64"
  67. wmic process where name="CCleaner64.exe" CALL setpriority "64"
  68. wmic process where name="Uplay.exe" CALL setpriority "64"
  69. wmic process where name="Sidebar.exe" CALL setpriority "64"
  70. wmic process where name="Dvm.exe" CALL setpriority "64"
  71. wmic process where name="Discord.exe" CALL setpriority "64"
  72. wmic process where name="Adobe Audition CC.exe" CALL setpriority "64"
  73. wmic process where name="Iexplorer.exe" CALL setpriority "64"
  74. wmic process where name="OriginThinSetupInternal.exe" CALL setpriority "64"
  75. wmic process where name="OnTopReplica.exe" CALL setpriority "64"
  76. wmic process where name="GAVPI.exe" CALL setpriority "64"
  77. wmic process where name="VoiceAttack.exe" CALL setpriority "64"
  78. wmic process where name="QtWebEngineProcess.exe" CALL setpriority "64"
  79. wmic process where name="OriginWebHelperService.exe" CALL setpriority "64"
  80. wmic process where name="OriginClientService.exe" CALL setpriority "64"
  81. wmic process where name="seamonkey.exe" CALL setpriority "64"
  82. wmic process where name="mic_mute.exe" CALL setpriority "64"
  83. wmic process where name="DriverBooster.exe" CALL setpriority "64"
  84. wmic process where name="notepad++.exe" CALL setpriority "64"
  85. wmic process where name="Lightshot.exe" CALL setpriority "64"
  86. wmic process where name="tweetdeck.exe" CALL setpriority "64"
  87. wmic process where name="pidgin.exe" CALL setpriority "64"
  88. wmic process where name="Winword.exe" CALL setpriority "64"
  89. wmic process where name="Excel.exe" CALL setpriority "64"
  90. wmic process where name="Adguard.exe" CALL setpriority "64"
  91. wmic process where name="OpenIV.exe" CALL setpriority "64"
  92. wmic process where name="ShareX.exe" CALL setpriority "64"
  93. wmic process where name="CCLibrary.exe" CALL setpriority "64"
  94. wmic process where name="AdguardSvc.exe" CALL setpriority "64"
  95. wmic process where name="Adobe Spaces Helper.exe" CALL setpriority "64"
  96. wmic process where name="Vivaldi.exe" CALL setpriority "64"
  97. wmic process where name="IDMan.exe" CALL setpriority "64"
  98. wmic process where name="msaccess.exe" CALL setpriority "64"
  99. wmic process where name="svchost.exe" CALL setpriority "64"
  100. wmic process where name="dllhost.exe" CALL setpriority "64"
  101. taskkill /F /IM explorer.exe
  102. taskkill /F /IM sidebar.exe > NUL
  103. taskkill /F /IM reader_sl.exe
  104. taskkill /F /IM jqs.exe
  105. taskkill /F /IM PhraseExpress.exe
  106. taskkill /F /IM Connectify.exe
  107. taskkill /F /IM vpn-unlimited.exe
  108. taskkill /F /IM ConnectifyGopher.exe
  109. taskkill /F /IM UninstallMonitor.exe
  110. taskkill /F /IM vpn-unlimited-daemon.exe
  111. taskkill /F /IM IUService.exe
  112. taskkill /F /IM Osa.exe
  113. taskkill /F /IM soffice.exe
  114. taskkill /F /IM MEGAsync.exe
  115. taskkill /F /IM AdobeARM.exe
  116. taskkill /F /IM AAM Update Notifier.exe
  117. taskkill /F /IM Jusched.exe
  118. taskkill /F /IM DivXUpdate.exe
  119. taskkill /F /IM Connectifyd.exe
  120. taskkill /F /IM ConnectifyService.exe
  121. taskkill /F /IM ConnectifyNetServices.exe
  122. taskkill /F /IM DriverSwitcher.exe
  123. taskkill /F /IM ConnectifySupportCenter.exe
  124. taskkill /F /IM wmpnetwk.exe
  125. taskkill /F /IM SkypeHost.exe
  126. taskkill /F /IM GTAVLauncher.exe
  127. taskkill /F /IM GTAVLauncher.exe
  128. taskkill /F /IM Spotify.exe
  129. wmic process where name="subprocess.exe" CALL setpriority "64"
  130. wmic process where name="fivem.exe" CALL setpriority "128"
  131. sc stop uxsms
  132. start %systemroot%\system32\rundll32.exe advapi32.dll,ProcessIdleTasks
  133. cls
  134.  
  135. :Seeing
  136. @echo off
  137. tasklist /FI "IMAGENAME eq fivem.exe" | findstr "fivem.exe" >nul
  138. if %ERRORLEVEL% == 1 goto Finish
  139. taskkill /F /IM SkypeHost.exe
  140. taskkill /F /IM SearchUI.exe
  141. taskkill /F /IM GameBarPresenceWriter.exe
  142. taskkill /F /IM GamePanel.exe
  143. timeout 5
  144. @echo Script is live, do not close! Seeing if fivem.exe is still running.
  145. goto Seeing
  146.  
  147. :Finish
  148. @echo off
  149. sc start uxsms
  150. regsvr32 /s msxml3.dll
  151. regsvr32 /s scrrun.dll
  152. regsvr32 /s jscript.dll
  153. cls
  154. @echo fivem.exe no longer active, restoring everything!
  155. timeout 5
  156. start explorer.exe
  157. wmic process where name="svchost.exe" CALL setpriority "32"
  158. wmic process where name="dllhost.exe" CALL setpriority "32"
  159. wmic process where name="services.exe" CALL setpriority "32"
  160. wmic process where name="SecurityHealthService.exe" CALL setpriority "32"
  161. wmic process where name="SecHealthUI.exe" CALL setpriority "32"
  162. wmic process where name="Sidebar.exe" CALL setpriority "normal"
  163. wmic process where name="Firefox.exe" CALL setpriority "normal"
  164. wmic process where name="Lightshot.exe" CALL setpriority "normal"
  165. wmic process where name="tweetdeck.exe" CALL setpriority "normal"
  166. wmic process where name="Chrome.exe" CALL setpriority "normal"
  167. wmic process where name="GAVPI.exe" CALL setpriority "normal"
  168. wmic process where name="VoiceAttack.exe" CALL setpriority "normal"
  169. wmic process where name="pidgin.exe" CALL setpriority "normal"
  170. wmic process where name="Opera.exe" CALL setpriority "normal"
  171. wmic process where name="Cmd.exe" CALL setpriority "normal"
  172. wmic process where name="wordpad.exe" CALL setpriority "normal"
  173. wmic process where name="OnTopReplica.exe" CALL setpriority "normal"
  174. wmic process where name="Adobe Audition CC.exe" CALL setpriority "normal"
  175. wmic process where name="OriginThinSetupInternal.exe" CALL setpriority "normal"
  176. wmic process where name="QtWebEngineProcess.exe" CALL setpriority "normal"
  177. wmic process where name="OriginWebHelperService.exe" CALL setpriority "normal"
  178. wmic process where name="OriginClientService.exe" CALL setpriority "normal"
  179. wmic process where name="explorer.exe" CALL setpriority "normal"
  180. wmic process where name="Photoshop.exe" CALL setpriority "normal"
  181. wmic process where name="MsMpEng.exe" CALL setpriority "normal"
  182. wmic process where name="Winword.exe" CALL setpriority "normal"
  183. wmic process where name="Excel.exe" CALL setpriority "normal"
  184. wmic process where name="msaccess.exe" CALL setpriority "normal"
  185. wmic process where name="mic_mute.exe" CALL setpriority "normal"
  186. wmic process where name="notepad++.exe" CALL setpriority "normal"
  187. wmic process where name="DriverBooster.exe" CALL setpriority "normal"
  188. wmic process where name="dwm.exe" CALL setpriority "normal"
  189. wmic process where name="SearchUI.exe" CALL setpriority "normal"
  190. wmic process where name="Adguard.exe" CALL setpriority "normal"
  191. wmic process where name="OpenIV.exe" CALL setpriority "normal"
  192. wmic process where name="Vivaldi.exe" CALL setpriority "normal"
  193. wmic process where name="IDMan.exe" CALL setpriority "normal"
  194. wmic process where name="ShareX.exe" CALL setpriority "normal"
  195. wmic process where name="CCLibrary.exe" CALL setpriority "normal"
  196. wmic process where name="AdguardSvc.exe" CALL setpriority "normal"
  197. wmic process where name="Adobe Spaces Helper.exe" CALL setpriority "normal"
  198. wmic process where name="Skype.exe" CALL setpriority "normal"
  199. wmic process where name="upc.exe" CALL setpriority "normal"
  200. wmic process where name="UplayWebCore.exe" CALL setpriority "normal"
  201. wmic process where name="ShellExperienceHost.exe" CALL setpriority "normal"
  202. wmic process where name="explorer.exe" CALL setpriority "normal"
  203. wmic process where name="Steam.exe" CALL setpriority "normal"
  204. wmic process where name="AsusAudioCenter.exe" CALL setpriority "normal"
  205. wmic process where name="CCleaner64.exe" CALL setpriority "normal"
  206. wmic process where name="ts3client_win64.exe" CALL setpriority "normal"
  207. wmic process where name="Steamwebhelper.exe" CALL setpriority "normal"
  208. wmic process where name="Origin.exe" CALL setpriority "normal"
  209. wmic process where name="Battle.net.exe" CALL setpriority "normal"
  210. wmic process where name="Spotifycrashservice.exe" CALL setpriority "normal"
  211. wmic process where name="Spotifywebhelper.exe" CALL setpriority "normal"
  212. wmic process where name="Spotify.exe" CALL setpriority "normal"
  213. wmic process where name="Uplay.exe" CALL setpriority "normal"
  214. wmic process where name="Sidebar.exe" CALL setpriority "normal"
  215. wmic process where name="Dvm.exe" CALL setpriority "normal"
  216. wmic process where name="Discord.exe" CALL setpriority "normal"
  217. wmic process where name="explorer.exe" CALL setpriority "32"
  218. wmic process where name="MsMpEng.exe" CALL setpriority "32"
  219. wmic process where name="dwm.exe" CALL setpriority "32"
  220. wmic process where name="NisSrv.exe" CALL setpriority "32"
  221. wmic process where name="smartscreen.exe" CALL setpriority "32"
  222. wmic process where name="SearchUI.exe" CALL setpriority "32"
  223. wmic process where name="RadeonSettings.exe" CALL setpriority "32"
  224. wmic process where name="Isass.exe" CALL setpriority "32"
  225. wmic process where name="audiodg.exe" CALL setpriority "32"
  226. wmic process where name="Skype.exe" CALL setpriority "32"
  227. wmic process where name="ShellExperienceHost.exe" CALL setpriority "32"
  228. wmic process where name="Steam.exe" CALL setpriority "32"
  229. wmic process where name="explorer.exe" CALL setpriority "32"
  230. wmic process where name="Iexplorer.exe" CALL setpriority "normal"
  231. wmic process where name="MicrosoftEdge.exe" CALL setpriority "32"
  232. wmic process where name="MicrosoftEdgeCP.exe" CALL setpriority "32"
  233. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement