SHARE
TWEET

St1ckyTweaker 2.00

St1cky Aug 28th, 2019 172 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <# This form was created using POSHGUI.com  a free online gui designer for PowerShell
  2. .NAME
  3.     St1ckyTweaker 2.00
  4. #>
  5.  
  6. Add-Type -AssemblyName System.Windows.Forms
  7. [System.Windows.Forms.Application]::EnableVisualStyles()
  8.  
  9. $Form                            = New-Object system.Windows.Forms.Form
  10. $Form.ClientSize                 = '1033,704'
  11. $Form.text                       = "St1cky_Tweaker 2.00"
  12. $Form.BackColor                  = "#141414"
  13. $Form.TopMost                    = $false
  14.  
  15. $Label1                          = New-Object system.Windows.Forms.Label
  16. $Label1.text                     = "TCP/IP and Performance Tweaks:"
  17. $Label1.AutoSize                 = $true
  18. $Label1.width                    = 25
  19. $Label1.height                   = 10
  20. $Label1.location                 = New-Object System.Drawing.Point(15,17)
  21. $Label1.Font                     = 'Calibri,15,style=Underline'
  22. $Label1.ForeColor                = "#4a90e2"
  23.  
  24. $Label2                          = New-Object system.Windows.Forms.Label
  25. $Label2.text                     = "NetworkThrottlingIndex:"
  26. $Label2.AutoSize                 = $true
  27. $Label2.width                    = 25
  28. $Label2.height                   = 10
  29. $Label2.location                 = New-Object System.Drawing.Point(15,54)
  30. $Label2.Font                     = 'Calibri,10'
  31. $Label2.ForeColor                = "#ffffff"
  32.  
  33. $ComboBox1                       = New-Object system.Windows.Forms.ComboBox
  34. $ComboBox1.BackColor             = "#171717"
  35. $ComboBox1.width                 = 109
  36. $ComboBox1.height                = 20
  37. @('4294967295','10','20') | ForEach-Object {[void] $ComboBox1.Items.Add($_)}
  38. $ComboBox1.location              = New-Object System.Drawing.Point(170,54)
  39. $ComboBox1.Font                  = 'Calibri,10'
  40. $ComboBox1.ForeColor             = "#ffffff"
  41.  
  42. $Label3                          = New-Object system.Windows.Forms.Label
  43. $Label3.text                     = "SystemResponsiveness:"
  44. $Label3.AutoSize                 = $true
  45. $Label3.width                    = 25
  46. $Label3.height                   = 10
  47. $Label3.location                 = New-Object System.Drawing.Point(15,78)
  48. $Label3.Font                     = 'Calibri,10'
  49. $Label3.ForeColor                = "#ffffff"
  50.  
  51. $ComboBox2                       = New-Object system.Windows.Forms.ComboBox
  52. $ComboBox2.BackColor             = "#171717"
  53. $ComboBox2.width                 = 109
  54. $ComboBox2.height                = 20
  55. @('0','10','20') | ForEach-Object {[void] $ComboBox2.Items.Add($_)}
  56. $ComboBox2.location              = New-Object System.Drawing.Point(170,78)
  57. $ComboBox2.Font                  = 'Calibri,10'
  58. $ComboBox2.ForeColor             = "#ffffff"
  59.  
  60. $Label4                          = New-Object system.Windows.Forms.Label
  61. $Label4.text                     = "Clock Rate:"
  62. $Label4.AutoSize                 = $true
  63. $Label4.width                    = 25
  64. $Label4.height                   = 10
  65. $Label4.location                 = New-Object System.Drawing.Point(15,129)
  66. $Label4.Font                     = 'Calibri,10'
  67. $Label4.ForeColor                = "#ffffff"
  68.  
  69. $Label5                          = New-Object system.Windows.Forms.Label
  70. $Label5.AutoSize                 = $true
  71. $Label5.width                    = 25
  72. $Label5.height                   = 10
  73. $Label5.location                 = New-Object System.Drawing.Point(34,139)
  74. $Label5.Font                     = 'Calibri,10'
  75. $Label5.ForeColor                = "#ffffff"
  76.  
  77. $Label6                          = New-Object system.Windows.Forms.Label
  78. $Label6.text                     = "Task Gaming:"
  79. $Label6.AutoSize                 = $true
  80. $Label6.width                    = 25
  81. $Label6.height                   = 10
  82. $Label6.location                 = New-Object System.Drawing.Point(15,107)
  83. $Label6.Font                     = 'Calibri,12,style=Underline'
  84. $Label6.ForeColor                = "#4a90e2"
  85.  
  86. $Label7                          = New-Object system.Windows.Forms.Label
  87. $Label7.text                     = "GPU Priority:"
  88. $Label7.AutoSize                 = $true
  89. $Label7.width                    = 25
  90. $Label7.height                   = 10
  91. $Label7.location                 = New-Object System.Drawing.Point(15,153)
  92. $Label7.Font                     = 'Calibri,10'
  93. $Label7.ForeColor                = "#ffffff"
  94.  
  95. $Label8                          = New-Object system.Windows.Forms.Label
  96. $Label8.text                     = "Priority:"
  97. $Label8.AutoSize                 = $true
  98. $Label8.width                    = 25
  99. $Label8.height                   = 10
  100. $Label8.location                 = New-Object System.Drawing.Point(15,177)
  101. $Label8.Font                     = 'Calibri,10'
  102. $Label8.ForeColor                = "#ffffff"
  103.  
  104. $Label9                          = New-Object system.Windows.Forms.Label
  105. $Label9.text                     = "Scheduling Category:"
  106. $Label9.AutoSize                 = $true
  107. $Label9.width                    = 25
  108. $Label9.height                   = 10
  109. $Label9.location                 = New-Object System.Drawing.Point(15,201)
  110. $Label9.Font                     = 'Calibri,10'
  111. $Label9.ForeColor                = "#ffffff"
  112.  
  113. $Label10                         = New-Object system.Windows.Forms.Label
  114. $Label10.text                    = "SFIO Priority:"
  115. $Label10.AutoSize                = $true
  116. $Label10.width                   = 25
  117. $Label10.height                  = 10
  118. $Label10.location                = New-Object System.Drawing.Point(15,225)
  119. $Label10.Font                    = 'Calibri,10'
  120. $Label10.ForeColor               = "#ffffff"
  121.  
  122. $ComboBox3                       = New-Object system.Windows.Forms.ComboBox
  123. $ComboBox3.BackColor             = "#171717"
  124. $ComboBox3.width                 = 109
  125. $ComboBox3.height                = 20
  126. @('10000') | ForEach-Object {[void] $ComboBox3.Items.Add($_)}
  127. $ComboBox3.location              = New-Object System.Drawing.Point(170,129)
  128. $ComboBox3.Font                  = 'Calibri,10'
  129. $ComboBox3.ForeColor             = "#ffffff"
  130.  
  131. $ComboBox4                       = New-Object system.Windows.Forms.ComboBox
  132. $ComboBox4.BackColor             = "#171717"
  133. $ComboBox4.width                 = 109
  134. $ComboBox4.height                = 20
  135. $ComboBox4.location              = New-Object System.Drawing.Point(170,153)
  136. $ComboBox4.Font                  = 'Calibri,10'
  137. $ComboBox4.ForeColor             = "#ffffff"
  138.  
  139. $ComboBox5                       = New-Object system.Windows.Forms.ComboBox
  140. $ComboBox5.BackColor             = "#171717"
  141. $ComboBox5.width                 = 109
  142. $ComboBox5.height                = 20
  143. @('1','2','3','4','5','6','7','8') | ForEach-Object {[void] $ComboBox5.Items.Add($_)}
  144. $ComboBox5.location              = New-Object System.Drawing.Point(170,177)
  145. $ComboBox5.Font                  = 'Calibri,10'
  146. $ComboBox5.ForeColor             = "#ffffff"
  147.  
  148. $ComboBox6                       = New-Object system.Windows.Forms.ComboBox
  149. $ComboBox6.BackColor             = "#171717"
  150. $ComboBox6.width                 = 109
  151. $ComboBox6.height                = 20
  152. @('Low','Medium','High') | ForEach-Object {[void] $ComboBox6.Items.Add($_)}
  153. $ComboBox6.location              = New-Object System.Drawing.Point(170,201)
  154. $ComboBox6.Font                  = 'Calibri,10'
  155. $ComboBox6.ForeColor             = "#ffffff"
  156.  
  157. $ComboBox7                       = New-Object system.Windows.Forms.ComboBox
  158. $ComboBox7.BackColor             = "#171717"
  159. $ComboBox7.width                 = 109
  160. $ComboBox7.height                = 20
  161. @('Idle','Low','Normal','High') | ForEach-Object {[void] $ComboBox7.Items.Add($_)}
  162. $ComboBox7.location              = New-Object System.Drawing.Point(170,225)
  163. $ComboBox7.Font                  = 'Calibri,10'
  164. $ComboBox7.ForeColor             = "#ffffff"
  165.  
  166. $Label11                         = New-Object system.Windows.Forms.Label
  167. $Label11.text                    = "Memory Management:"
  168. $Label11.AutoSize                = $true
  169. $Label11.width                   = 25
  170. $Label11.height                  = 10
  171. $Label11.location                = New-Object System.Drawing.Point(15,253)
  172. $Label11.Font                    = 'Calibri,12,style=Underline'
  173. $Label11.ForeColor               = "#4a90e2"
  174.  
  175. $Label12                         = New-Object system.Windows.Forms.Label
  176. $Label12.text                    = "DisablePagingExecutive:"
  177. $Label12.AutoSize                = $true
  178. $Label12.width                   = 25
  179. $Label12.height                  = 10
  180. $Label12.location                = New-Object System.Drawing.Point(15,280)
  181. $Label12.Font                    = 'Calibri,10'
  182. $Label12.ForeColor               = "#ffffff"
  183.  
  184. $ComboBox8                       = New-Object system.Windows.Forms.ComboBox
  185. $ComboBox8.BackColor             = "#171717"
  186. $ComboBox8.width                 = 109
  187. $ComboBox8.height                = 20
  188. @('0','1') | ForEach-Object {[void] $ComboBox8.Items.Add($_)}
  189. $ComboBox8.location              = New-Object System.Drawing.Point(170,280)
  190. $ComboBox8.Font                  = 'Calibri,10'
  191. $ComboBox8.ForeColor             = "#ffffff"
  192.  
  193. $Label13                         = New-Object system.Windows.Forms.Label
  194. $Label13.text                    = "LargeSystemCache:"
  195. $Label13.AutoSize                = $true
  196. $Label13.width                   = 25
  197. $Label13.height                  = 10
  198. $Label13.location                = New-Object System.Drawing.Point(15,306)
  199. $Label13.Font                    = 'Calibri,10'
  200. $Label13.ForeColor               = "#ffffff"
  201.  
  202. $ComboBox9                       = New-Object system.Windows.Forms.ComboBox
  203. $ComboBox9.BackColor             = "#171717"
  204. $ComboBox9.width                 = 109
  205. $ComboBox9.height                = 20
  206. @('0','1') | ForEach-Object {[void] $ComboBox9.Items.Add($_)}
  207. $ComboBox9.location              = New-Object System.Drawing.Point(170,306)
  208. $ComboBox9.Font                  = 'Calibri,10'
  209. $ComboBox9.ForeColor             = "#ffffff"
  210.  
  211. $Label14                         = New-Object system.Windows.Forms.Label
  212. $Label14.text                    = "PhysicalAddressExtension:"
  213. $Label14.AutoSize                = $true
  214. $Label14.width                   = 25
  215. $Label14.height                  = 10
  216. $Label14.location                = New-Object System.Drawing.Point(15,332)
  217. $Label14.Font                    = 'Calibri,10'
  218. $Label14.ForeColor               = "#ffffff"
  219.  
  220. $Label15                         = New-Object system.Windows.Forms.Label
  221. $Label15.text                    = "SecondLevelDataCache:"
  222. $Label15.AutoSize                = $true
  223. $Label15.width                   = 25
  224. $Label15.height                  = 10
  225. $Label15.location                = New-Object System.Drawing.Point(15,358)
  226. $Label15.Font                    = 'Calibri,10'
  227. $Label15.ForeColor               = "#ffffff"
  228.  
  229. $ComboBox10                      = New-Object system.Windows.Forms.ComboBox
  230. $ComboBox10.BackColor            = "#171717"
  231. $ComboBox10.width                = 109
  232. $ComboBox10.height               = 20
  233. $ComboBox10.location             = New-Object System.Drawing.Point(170,358)
  234. $ComboBox10.Font                 = 'Calibri,10'
  235. $ComboBox10.ForeColor            = "#ffffff"
  236.  
  237. $ComboBox11                      = New-Object system.Windows.Forms.ComboBox
  238. $ComboBox11.BackColor            = "#171717"
  239. $ComboBox11.width                = 109
  240. $ComboBox11.height               = 20
  241. @('0','1') | ForEach-Object {[void] $ComboBox11.Items.Add($_)}
  242. $ComboBox11.location             = New-Object System.Drawing.Point(170,332)
  243. $ComboBox11.Font                 = 'Calibri,10'
  244. $ComboBox11.ForeColor            = "#ffffff"
  245.  
  246. $Label16                         = New-Object system.Windows.Forms.Label
  247. $Label16.text                    = "Priority Control:"
  248. $Label16.AutoSize                = $true
  249. $Label16.width                   = 25
  250. $Label16.height                  = 10
  251. $Label16.location                = New-Object System.Drawing.Point(15,467)
  252. $Label16.Font                    = 'Calibri,12,style=Underline'
  253. $Label16.ForeColor               = "#4a90e2"
  254.  
  255. $Label17                         = New-Object system.Windows.Forms.Label
  256. $Label17.text                    = "ConvertibleSlateMode:"
  257. $Label17.AutoSize                = $true
  258. $Label17.width                   = 25
  259. $Label17.height                  = 10
  260. $Label17.location                = New-Object System.Drawing.Point(15,491)
  261. $Label17.Font                    = 'Calibri,10'
  262. $Label17.ForeColor               = "#ffffff"
  263.  
  264. $ComboBox12                      = New-Object system.Windows.Forms.ComboBox
  265. $ComboBox12.BackColor            = "#171717"
  266. $ComboBox12.width                = 109
  267. $ComboBox12.height               = 20
  268. $ComboBox12.location             = New-Object System.Drawing.Point(170,491)
  269. $ComboBox12.Font                 = 'Calibri,10'
  270. $ComboBox12.ForeColor            = "#ffffff"
  271.  
  272. $ComboBox13                      = New-Object system.Windows.Forms.ComboBox
  273. $ComboBox13.BackColor            = "#171717"
  274. $ComboBox13.width                = 109
  275. $ComboBox13.height               = 20
  276. $ComboBox13.location             = New-Object System.Drawing.Point(170,517)
  277. $ComboBox13.Font                 = 'Calibri,10'
  278. $ComboBox13.ForeColor            = "#ffffff"
  279.  
  280. $Label18                         = New-Object system.Windows.Forms.Label
  281. $Label18.text                    = "Win32PrioritySeparation:"
  282. $Label18.AutoSize                = $true
  283. $Label18.width                   = 25
  284. $Label18.height                  = 10
  285. $Label18.location                = New-Object System.Drawing.Point(15,517)
  286. $Label18.Font                    = 'Calibri,10'
  287. $Label18.ForeColor               = "#ffffff"
  288.  
  289. $Label19                         = New-Object system.Windows.Forms.Label
  290. $Label19.text                    = "EnableBoottrace:"
  291. $Label19.AutoSize                = $true
  292. $Label19.width                   = 25
  293. $Label19.height                  = 10
  294. $Label19.location                = New-Object System.Drawing.Point(15,436)
  295. $Label19.Font                    = 'Calibri,10'
  296. $Label19.ForeColor               = "#ffffff"
  297.  
  298. $Label20                         = New-Object system.Windows.Forms.Label
  299. $Label20.text                    = "EnablePrefetcher:"
  300. $Label20.AutoSize                = $true
  301. $Label20.width                   = 25
  302. $Label20.height                  = 10
  303. $Label20.location                = New-Object System.Drawing.Point(15,410)
  304. $Label20.Font                    = 'Calibri,10'
  305. $Label20.ForeColor               = "#ffffff"
  306.  
  307. $ComboBox14                      = New-Object system.Windows.Forms.ComboBox
  308. $ComboBox14.BackColor            = "#171717"
  309. $ComboBox14.width                = 109
  310. $ComboBox14.height               = 20
  311. @('0','1') | ForEach-Object {[void] $ComboBox14.Items.Add($_)}
  312. $ComboBox14.location             = New-Object System.Drawing.Point(170,410)
  313. $ComboBox14.Font                 = 'Calibri,10'
  314. $ComboBox14.ForeColor            = "#ffffff"
  315.  
  316. $ComboBox15                      = New-Object system.Windows.Forms.ComboBox
  317. $ComboBox15.BackColor            = "#171717"
  318. $ComboBox15.width                = 109
  319. $ComboBox15.height               = 20
  320. @('0','1') | ForEach-Object {[void] $ComboBox15.Items.Add($_)}
  321. $ComboBox15.location             = New-Object System.Drawing.Point(171,436)
  322. $ComboBox15.Font                 = 'Calibri,10'
  323. $ComboBox15.ForeColor            = "#ffffff"
  324.  
  325. $Label21                         = New-Object system.Windows.Forms.Label
  326. $Label21.text                    = "EnableSuperfetch:"
  327. $Label21.AutoSize                = $true
  328. $Label21.width                   = 25
  329. $Label21.height                  = 10
  330. $Label21.location                = New-Object System.Drawing.Point(15,384)
  331. $Label21.Font                    = 'Calibri,10'
  332. $Label21.ForeColor               = "#ffffff"
  333.  
  334. $ComboBox16                      = New-Object system.Windows.Forms.ComboBox
  335. $ComboBox16.BackColor            = "#171717"
  336. $ComboBox16.width                = 109
  337. $ComboBox16.height               = 20
  338. @('0','1') | ForEach-Object {[void] $ComboBox16.Items.Add($_)}
  339. $ComboBox16.location             = New-Object System.Drawing.Point(170,384)
  340. $ComboBox16.Font                 = 'Calibri,10'
  341. $ComboBox16.ForeColor            = "#ffffff"
  342.  
  343. $Label22                         = New-Object system.Windows.Forms.Label
  344. $Label22.text                    = "Spectre Variante 2 and Meltdown :"
  345. $Label22.AutoSize                = $true
  346. $Label22.width                   = 25
  347. $Label22.height                  = 10
  348. $Label22.location                = New-Object System.Drawing.Point(15,543)
  349. $Label22.Font                    = 'Calibri,12,style=Underline'
  350. $Label22.ForeColor               = "#4a90e2"
  351.  
  352. $Label23                         = New-Object system.Windows.Forms.Label
  353. $Label23.text                    = "FeatureSettingsOverride:"
  354. $Label23.AutoSize                = $true
  355. $Label23.width                   = 25
  356. $Label23.height                  = 10
  357. $Label23.location                = New-Object System.Drawing.Point(15,571)
  358. $Label23.Font                    = 'Calibri,10'
  359. $Label23.ForeColor               = "#ffffff"
  360.  
  361. $Label24                         = New-Object system.Windows.Forms.Label
  362. $Label24.text                    = "FeatureSettingsOverrideMask:"
  363. $Label24.AutoSize                = $true
  364. $Label24.width                   = 25
  365. $Label24.height                  = 10
  366. $Label24.location                = New-Object System.Drawing.Point(15,597)
  367. $Label24.Font                    = 'Calibri,10'
  368. $Label24.ForeColor               = "#ffffff"
  369.  
  370. $ComboBox17                      = New-Object system.Windows.Forms.ComboBox
  371. $ComboBox17.BackColor            = "#171717"
  372. $ComboBox17.width                = 109
  373. $ComboBox17.height               = 20
  374. @('3') | ForEach-Object {[void] $ComboBox17.Items.Add($_)}
  375. $ComboBox17.location             = New-Object System.Drawing.Point(189,597)
  376. $ComboBox17.Font                 = 'Calibri,10'
  377. $ComboBox17.ForeColor            = "#ffffff"
  378.  
  379. $ComboBox18                      = New-Object system.Windows.Forms.ComboBox
  380. $ComboBox18.BackColor            = "#171717"
  381. $ComboBox18.width                = 109
  382. $ComboBox18.height               = 20
  383. @('0','1','3','8') | ForEach-Object {[void] $ComboBox18.Items.Add($_)}
  384. $ComboBox18.location             = New-Object System.Drawing.Point(189,571)
  385. $ComboBox18.Font                 = 'Calibri,10'
  386. $ComboBox18.ForeColor            = "#ffffff"
  387.  
  388. $Label25                         = New-Object system.Windows.Forms.Label
  389. $Label25.text                    = "Processor and APICs:"
  390. $Label25.AutoSize                = $true
  391. $Label25.width                   = 25
  392. $Label25.height                  = 10
  393. $Label25.location                = New-Object System.Drawing.Point(302,32)
  394. $Label25.Font                    = 'Calibri,12,style=Underline'
  395. $Label25.ForeColor               = "#4a90e2"
  396.  
  397. $Label29                         = New-Object system.Windows.Forms.Label
  398. $Label29.text                    = "HardwareAbstractionLayer(HAL) and KERNEL:"
  399. $Label29.AutoSize                = $true
  400. $Label29.width                   = 25
  401. $Label29.height                  = 10
  402. $Label29.location                = New-Object System.Drawing.Point(301,129)
  403. $Label29.Font                    = 'Calibri,12,style=Underline'
  404. $Label29.ForeColor               = "#4a90e2"
  405.  
  406. $Label26                         = New-Object system.Windows.Forms.Label
  407. $Label26.text                    = "ServiceProvider:"
  408. $Label26.AutoSize                = $true
  409. $Label26.width                   = 25
  410. $Label26.height                  = 10
  411. $Label26.location                = New-Object System.Drawing.Point(305,356)
  412. $Label26.Font                    = 'Calibri,12,style=Underline'
  413. $Label26.ForeColor               = "#4a90e2"
  414.  
  415. $Label27                         = New-Object system.Windows.Forms.Label
  416. $Label27.text                    = "Class:"
  417. $Label27.AutoSize                = $true
  418. $Label27.width                   = 25
  419. $Label27.height                  = 10
  420. $Label27.location                = New-Object System.Drawing.Point(305,378)
  421. $Label27.Font                    = 'Calibri,10'
  422. $Label27.ForeColor               = "#ffffff"
  423.  
  424. $Label28                         = New-Object system.Windows.Forms.Label
  425. $Label28.text                    = "DnsPriority:"
  426. $Label28.AutoSize                = $true
  427. $Label28.width                   = 25
  428. $Label28.height                  = 10
  429. $Label28.location                = New-Object System.Drawing.Point(305,402)
  430. $Label28.Font                    = 'Calibri,10'
  431. $Label28.ForeColor               = "#ffffff"
  432.  
  433. $Label30                         = New-Object system.Windows.Forms.Label
  434. $Label30.text                    = "HostsPriority:"
  435. $Label30.AutoSize                = $true
  436. $Label30.width                   = 25
  437. $Label30.height                  = 10
  438. $Label30.location                = New-Object System.Drawing.Point(305,426)
  439. $Label30.Font                    = 'Calibri,10'
  440. $Label30.ForeColor               = "#ffffff"
  441.  
  442. $Label31                         = New-Object system.Windows.Forms.Label
  443. $Label31.text                    = "LocalPriority:"
  444. $Label31.AutoSize                = $true
  445. $Label31.width                   = 25
  446. $Label31.height                  = 10
  447. $Label31.location                = New-Object System.Drawing.Point(305,450)
  448. $Label31.Font                    = 'Calibri,10'
  449. $Label31.ForeColor               = "#ffffff"
  450.  
  451. $Label32                         = New-Object system.Windows.Forms.Label
  452. $Label32.text                    = "NetbtPriority:"
  453. $Label32.AutoSize                = $true
  454. $Label32.width                   = 25
  455. $Label32.height                  = 10
  456. $Label32.location                = New-Object System.Drawing.Point(305,474)
  457. $Label32.Font                    = 'Calibri,10'
  458. $Label32.ForeColor               = "#ffffff"
  459.  
  460. $ComboBox19                      = New-Object system.Windows.Forms.ComboBox
  461. $ComboBox19.BackColor            = "#171717"
  462. $ComboBox19.width                = 109
  463. $ComboBox19.height               = 20
  464. @('8') | ForEach-Object {[void] $ComboBox19.Items.Add($_)}
  465. $ComboBox19.location             = New-Object System.Drawing.Point(463,378)
  466. $ComboBox19.Font                 = 'Calibri,10'
  467. $ComboBox19.ForeColor            = "#ffffff"
  468.  
  469. $ComboBox20                      = New-Object system.Windows.Forms.ComboBox
  470. $ComboBox20.BackColor            = "#171717"
  471. $ComboBox20.width                = 109
  472. $ComboBox20.height               = 20
  473. @('2000','6') | ForEach-Object {[void] $ComboBox20.Items.Add($_)}
  474. $ComboBox20.location             = New-Object System.Drawing.Point(463,402)
  475. $ComboBox20.Font                 = 'Calibri,10'
  476. $ComboBox20.ForeColor            = "#ffffff"
  477.  
  478. $ComboBox21                      = New-Object system.Windows.Forms.ComboBox
  479. $ComboBox21.BackColor            = "#171717"
  480. $ComboBox21.width                = 109
  481. $ComboBox21.height               = 20
  482. @('500','5') | ForEach-Object {[void] $ComboBox21.Items.Add($_)}
  483. $ComboBox21.location             = New-Object System.Drawing.Point(463,426)
  484. $ComboBox21.Font                 = 'Calibri,10'
  485. $ComboBox21.ForeColor            = "#ffffff"
  486.  
  487. $ComboBox22                      = New-Object system.Windows.Forms.ComboBox
  488. $ComboBox22.BackColor            = "#171717"
  489. $ComboBox22.width                = 109
  490. $ComboBox22.height               = 20
  491. @('499','4') | ForEach-Object {[void] $ComboBox22.Items.Add($_)}
  492. $ComboBox22.location             = New-Object System.Drawing.Point(463,450)
  493. $ComboBox22.Font                 = 'Calibri,10'
  494. $ComboBox22.ForeColor            = "#ffffff"
  495.  
  496. $ComboBox23                      = New-Object system.Windows.Forms.ComboBox
  497. $ComboBox23.BackColor            = "#171717"
  498. $ComboBox23.width                = 109
  499. $ComboBox23.height               = 20
  500. @('2001','7') | ForEach-Object {[void] $ComboBox23.Items.Add($_)}
  501. $ComboBox23.location             = New-Object System.Drawing.Point(463,474)
  502. $ComboBox23.Font                 = 'Calibri,10'
  503. $ComboBox23.ForeColor            = "#ffffff"
  504.  
  505. $RefreshValues                   = New-Object system.Windows.Forms.Button
  506. $RefreshValues.text              = "Refresh"
  507. $RefreshValues.width             = 126
  508. $RefreshValues.height            = 22
  509. $RefreshValues.location          = New-Object System.Drawing.Point(764,671)
  510. $RefreshValues.Font              = 'Calibri,10'
  511. $RefreshValues.ForeColor         = "#4a90e2"
  512.  
  513. $Label33                         = New-Object system.Windows.Forms.Label
  514. $Label33.text                    = "FeatureSettingsOverrideMask = 3 is for Enabling and Disabling!"
  515. $Label33.AutoSize                = $true
  516. $Label33.width                   = 25
  517. $Label33.height                  = 10
  518. $Label33.location                = New-Object System.Drawing.Point(311,627)
  519. $Label33.Font                    = 'Calibri,8,style=Italic'
  520. $Label33.ForeColor               = "#4a4a4a"
  521.  
  522. $Label34                         = New-Object system.Windows.Forms.Label
  523. $Label34.text                    = "3 = to disable mitigations for CVE-2017-5715 (Spectre Variant 2) and CVE-2017-5754 (Meltdown)"
  524. $Label34.AutoSize                = $true
  525. $Label34.width                   = 25
  526. $Label34.height                  = 10
  527. $Label34.location                = New-Object System.Drawing.Point(311,580)
  528. $Label34.Font                    = 'Calibri,8,style=Italic'
  529. $Label34.ForeColor               = "#4a4a4a"
  530.  
  531. $Button1                         = New-Object system.Windows.Forms.Button
  532. $Button1.text                    = "Default"
  533. $Button1.width                   = 126
  534. $Button1.height                  = 22
  535. $Button1.location                = New-Object System.Drawing.Point(630,671)
  536. $Button1.Font                    = 'Calibri,10'
  537. $Button1.ForeColor               = "#4a90e2"
  538.  
  539. $btn_apply                       = New-Object system.Windows.Forms.Button
  540. $btn_apply.text                  = "Apply"
  541. $btn_apply.width                 = 126
  542. $btn_apply.height                = 22
  543. $btn_apply.location              = New-Object System.Drawing.Point(496,671)
  544. $btn_apply.Font                  = 'Calibri,10'
  545. $btn_apply.ForeColor             = "#4a90e2"
  546.  
  547. $btn_adv                         = New-Object system.Windows.Forms.Button
  548. $btn_adv.text                    = "Advanced"
  549. $btn_adv.width                   = 126
  550. $btn_adv.height                  = 22
  551. $btn_adv.location                = New-Object System.Drawing.Point(898,671)
  552. $btn_adv.Font                    = 'Calibri,10'
  553. $btn_adv.ForeColor               = "#4a4a4a"
  554.  
  555. $Label35                         = New-Object system.Windows.Forms.Label
  556. $Label35.text                    = "1 = to disable mitigations for CVE-2017-5715 (Spectre Variant 2)"
  557. $Label35.AutoSize                = $true
  558. $Label35.width                   = 25
  559. $Label35.height                  = 10
  560. $Label35.location                = New-Object System.Drawing.Point(310,594)
  561. $Label35.Font                    = 'Calibri,8,style=Italic'
  562. $Label35.ForeColor               = "#4a4a4a"
  563.  
  564. $Label36                         = New-Object system.Windows.Forms.Label
  565. $Label36.text                    = "0 = to enable default mitigations for CVE-2017-5715 (Spectre Variant 2) and CVE-2017-5754 (Meltdown)"
  566. $Label36.AutoSize                = $true
  567. $Label36.width                   = 25
  568. $Label36.height                  = 10
  569. $Label36.location                = New-Object System.Drawing.Point(310,610)
  570. $Label36.Font                    = 'Calibri,8,style=Italic'
  571. $Label36.ForeColor               = "#4a4a4a"
  572.  
  573. $Label37                         = New-Object system.Windows.Forms.Label
  574. $Label37.text                    = "[AMD] 8 = enable mitigations for CVE-2018-3639 (Speculative Store Bypass), default mitigations for CVE-2017-5715 (Spectre Variant 2) and CVE-2017-5754 (Meltdown)"
  575. $Label37.AutoSize                = $true
  576. $Label37.width                   = 25
  577. $Label37.height                  = 10
  578. $Label37.location                = New-Object System.Drawing.Point(311,565)
  579. $Label37.Font                    = 'Calibri,8,style=Italic'
  580. $Label37.ForeColor               = "#4a4a4a"
  581.  
  582. $Label38                         = New-Object system.Windows.Forms.Label
  583. $Label38.text                    = "0 - 31"
  584. $Label38.AutoSize                = $true
  585. $Label38.width                   = 25
  586. $Label38.height                  = 10
  587. $Label38.location                = New-Object System.Drawing.Point(136,157)
  588. $Label38.Font                    = 'Calibri,8,style=Italic'
  589. $Label38.ForeColor               = "#4a4a4a"
  590.  
  591. $Label39                         = New-Object system.Windows.Forms.Label
  592. $Label39.text                    = "TCP/IP Parameter:"
  593. $Label39.AutoSize                = $true
  594. $Label39.visible                 = $true
  595. $Label39.width                   = 25
  596. $Label39.height                  = 10
  597. $Label39.location                = New-Object System.Drawing.Point(9,4)
  598. $Label39.Font                    = 'Calibri,12,style=Underline'
  599. $Label39.ForeColor               = "#8b572a"
  600.  
  601. $Label40                         = New-Object system.Windows.Forms.Label
  602. $Label40.text                    = "DefaultTTL:"
  603. $Label40.AutoSize                = $true
  604. $Label40.visible                 = $true
  605. $Label40.width                   = 25
  606. $Label40.height                  = 10
  607. $Label40.location                = New-Object System.Drawing.Point(19,30)
  608. $Label40.Font                    = 'Calibri,10'
  609. $Label40.ForeColor               = "#ffffff"
  610.  
  611. $Label41                         = New-Object system.Windows.Forms.Label
  612. $Label41.text                    = "EnablePMTUDiscovery:"
  613. $Label41.AutoSize                = $true
  614. $Label41.visible                 = $true
  615. $Label41.width                   = 25
  616. $Label41.height                  = 10
  617. $Label41.location                = New-Object System.Drawing.Point(19,54)
  618. $Label41.Font                    = 'Calibri,10'
  619. $Label41.ForeColor               = "#ffffff"
  620.  
  621. $Label42                         = New-Object system.Windows.Forms.Label
  622. $Label42.text                    = "EnablePMTUBHDetect:"
  623. $Label42.AutoSize                = $true
  624. $Label42.visible                 = $true
  625. $Label42.width                   = 25
  626. $Label42.height                  = 10
  627. $Label42.location                = New-Object System.Drawing.Point(19,78)
  628. $Label42.Font                    = 'Calibri,10'
  629. $Label42.ForeColor               = "#ffffff"
  630.  
  631. $Label43                         = New-Object system.Windows.Forms.Label
  632. $Label43.text                    = "TcpMaxDupAcks:"
  633. $Label43.AutoSize                = $true
  634. $Label43.visible                 = $true
  635. $Label43.width                   = 25
  636. $Label43.height                  = 10
  637. $Label43.location                = New-Object System.Drawing.Point(19,102)
  638. $Label43.Font                    = 'Calibri,10'
  639. $Label43.ForeColor               = "#ffffff"
  640.  
  641. $Label44                         = New-Object system.Windows.Forms.Label
  642. $Label44.text                    = "Tcp1323Opts:"
  643. $Label44.AutoSize                = $true
  644. $Label44.visible                 = $true
  645. $Label44.width                   = 25
  646. $Label44.height                  = 10
  647. $Label44.location                = New-Object System.Drawing.Point(19,126)
  648. $Label44.Font                    = 'Calibri,10'
  649. $Label44.ForeColor               = "#ffffff"
  650.  
  651. $ComboBox24                      = New-Object system.Windows.Forms.ComboBox
  652. $ComboBox24.BackColor            = "#171717"
  653. $ComboBox24.width                = 109
  654. $ComboBox24.height               = 20
  655. $ComboBox24.visible              = $true
  656. @('0','1','2','3') | ForEach-Object {[void] $ComboBox24.Items.Add($_)}
  657. $ComboBox24.location             = New-Object System.Drawing.Point(174,126)
  658. $ComboBox24.Font                 = 'Calibri,10'
  659. $ComboBox24.ForeColor            = "#ffffff"
  660.  
  661. $ComboBox25                      = New-Object system.Windows.Forms.ComboBox
  662. $ComboBox25.BackColor            = "#171717"
  663. $ComboBox25.width                = 109
  664. $ComboBox25.height               = 20
  665. $ComboBox25.visible              = $true
  666. @('2') | ForEach-Object {[void] $ComboBox25.Items.Add($_)}
  667. $ComboBox25.location             = New-Object System.Drawing.Point(174,102)
  668. $ComboBox25.Font                 = 'Calibri,10'
  669. $ComboBox25.ForeColor            = "#ffffff"
  670.  
  671. $ComboBox26                      = New-Object system.Windows.Forms.ComboBox
  672. $ComboBox26.BackColor            = "#171717"
  673. $ComboBox26.width                = 109
  674. $ComboBox26.height               = 20
  675. $ComboBox26.visible              = $true
  676. @('0','1') | ForEach-Object {[void] $ComboBox26.Items.Add($_)}
  677. $ComboBox26.location             = New-Object System.Drawing.Point(174,78)
  678. $ComboBox26.Font                 = 'Calibri,10'
  679. $ComboBox26.ForeColor            = "#ffffff"
  680.  
  681. $ComboBox27                      = New-Object system.Windows.Forms.ComboBox
  682. $ComboBox27.BackColor            = "#171717"
  683. $ComboBox27.width                = 109
  684. $ComboBox27.height               = 20
  685. $ComboBox27.visible              = $true
  686. @('0','1') | ForEach-Object {[void] $ComboBox27.Items.Add($_)}
  687. $ComboBox27.location             = New-Object System.Drawing.Point(174,54)
  688. $ComboBox27.Font                 = 'Calibri,10'
  689. $ComboBox27.ForeColor            = "#ffffff"
  690.  
  691. $ComboBox28                      = New-Object system.Windows.Forms.ComboBox
  692. $ComboBox28.BackColor            = "#171717"
  693. $ComboBox28.width                = 109
  694. $ComboBox28.height               = 20
  695. $ComboBox28.visible              = $true
  696. @('64','32') | ForEach-Object {[void] $ComboBox28.Items.Add($_)}
  697. $ComboBox28.location             = New-Object System.Drawing.Point(174,30)
  698. $ComboBox28.Font                 = 'Calibri,10'
  699. $ComboBox28.ForeColor            = "#ffffff"
  700.  
  701. $Label46                         = New-Object system.Windows.Forms.Label
  702. $Label46.text                    = "SynAttackProtect:"
  703. $Label46.AutoSize                = $true
  704. $Label46.visible                 = $true
  705. $Label46.width                   = 25
  706. $Label46.height                  = 10
  707. $Label46.location                = New-Object System.Drawing.Point(19,224)
  708. $Label46.Font                    = 'Calibri,10'
  709. $Label46.ForeColor               = "#ffffff"
  710.  
  711. $ComboBox30                      = New-Object system.Windows.Forms.ComboBox
  712. $ComboBox30.BackColor            = "#171717"
  713. $ComboBox30.width                = 109
  714. $ComboBox30.height               = 20
  715. $ComboBox30.visible              = $true
  716. @('0','1') | ForEach-Object {[void] $ComboBox30.Items.Add($_)}
  717. $ComboBox30.location             = New-Object System.Drawing.Point(174,224)
  718. $ComboBox30.Font                 = 'Calibri,10'
  719. $ComboBox30.ForeColor            = "#ffffff"
  720.  
  721. $Label47                         = New-Object system.Windows.Forms.Label
  722. $Label47.text                    = "TcpTimedWaitDelay:"
  723. $Label47.AutoSize                = $true
  724. $Label47.visible                 = $true
  725. $Label47.width                   = 25
  726. $Label47.height                  = 10
  727. $Label47.location                = New-Object System.Drawing.Point(19,200)
  728. $Label47.Font                    = 'Calibri,10'
  729. $Label47.ForeColor               = "#ffffff"
  730.  
  731. $ComboBox31                      = New-Object system.Windows.Forms.ComboBox
  732. $ComboBox31.BackColor            = "#171717"
  733. $ComboBox31.width                = 109
  734. $ComboBox31.height               = 20
  735. $ComboBox31.visible              = $true
  736. @('30') | ForEach-Object {[void] $ComboBox31.Items.Add($_)}
  737. $ComboBox31.location             = New-Object System.Drawing.Point(174,200)
  738. $ComboBox31.Font                 = 'Calibri,10'
  739. $ComboBox31.ForeColor            = "#ffffff"
  740.  
  741. $ComboBox32                      = New-Object system.Windows.Forms.ComboBox
  742. $ComboBox32.BackColor            = "#171717"
  743. $ComboBox32.width                = 109
  744. $ComboBox32.height               = 20
  745. $ComboBox32.visible              = $true
  746. @('65535') | ForEach-Object {[void] $ComboBox32.Items.Add($_)}
  747. $ComboBox32.location             = New-Object System.Drawing.Point(174,176)
  748. $ComboBox32.Font                 = 'Calibri,10'
  749. $ComboBox32.ForeColor            = "#ffffff"
  750.  
  751. $Label48                         = New-Object system.Windows.Forms.Label
  752. $Label48.text                    = "MaxUserPort:"
  753. $Label48.AutoSize                = $true
  754. $Label48.visible                 = $true
  755. $Label48.width                   = 25
  756. $Label48.height                  = 10
  757. $Label48.location                = New-Object System.Drawing.Point(19,176)
  758. $Label48.Font                    = 'Calibri,10'
  759. $Label48.ForeColor               = "#ffffff"
  760.  
  761. $Label49                         = New-Object system.Windows.Forms.Label
  762. $Label49.text                    = "SackOpts:"
  763. $Label49.AutoSize                = $true
  764. $Label49.visible                 = $true
  765. $Label49.width                   = 25
  766. $Label49.height                  = 10
  767. $Label49.location                = New-Object System.Drawing.Point(19,152)
  768. $Label49.Font                    = 'Calibri,10'
  769. $Label49.ForeColor               = "#ffffff"
  770.  
  771. $ComboBox33                      = New-Object system.Windows.Forms.ComboBox
  772. $ComboBox33.BackColor            = "#171717"
  773. $ComboBox33.width                = 109
  774. $ComboBox33.height               = 20
  775. $ComboBox33.visible              = $true
  776. @('0','1') | ForEach-Object {[void] $ComboBox33.Items.Add($_)}
  777. $ComboBox33.location             = New-Object System.Drawing.Point(174,152)
  778. $ComboBox33.Font                 = 'Calibri,10'
  779. $ComboBox33.ForeColor            = "#ffffff"
  780.  
  781. $Groupbox1                       = New-Object system.Windows.Forms.Groupbox
  782. $Groupbox1.height                = 370
  783. $Groupbox1.width                 = 322
  784. $Groupbox1.location              = New-Object System.Drawing.Point(617,20)
  785.  
  786. $Label45                         = New-Object system.Windows.Forms.Label
  787. $Label45.text                    = "0 = Timestamps and window scaling are disabled."
  788. $Label45.AutoSize                = $true
  789. $Label45.width                   = 25
  790. $Label45.height                  = 10
  791. $Label45.location                = New-Object System.Drawing.Point(11,268)
  792. $Label45.Font                    = 'Calibri,7,style=Italic'
  793. $Label45.ForeColor               = "#4a4a4a"
  794.  
  795. $Label50                         = New-Object system.Windows.Forms.Label
  796. $Label50.text                    = "1 = Window scaling is enabled."
  797. $Label50.AutoSize                = $true
  798. $Label50.width                   = 25
  799. $Label50.height                  = 10
  800. $Label50.location                = New-Object System.Drawing.Point(11,282)
  801. $Label50.Font                    = 'Calibri,7,style=Italic'
  802. $Label50.ForeColor               = "#4a4a4a"
  803.  
  804. $Label51                         = New-Object system.Windows.Forms.Label
  805. $Label51.text                    = "2 = Timestamps are enabled. 3 = Timestamps and window scaling are enabled."
  806. $Label51.AutoSize                = $true
  807. $Label51.width                   = 25
  808. $Label51.height                  = 10
  809. $Label51.location                = New-Object System.Drawing.Point(11,297)
  810. $Label51.Font                    = 'Calibri,7,style=Italic'
  811. $Label51.ForeColor               = "#4a4a4a"
  812.  
  813. $Label52                         = New-Object system.Windows.Forms.Label
  814. $Label52.text                    = "Tcp1323Opts"
  815. $Label52.AutoSize                = $true
  816. $Label52.width                   = 25
  817. $Label52.height                  = 10
  818. $Label52.location                = New-Object System.Drawing.Point(11,253)
  819. $Label52.Font                    = 'Calibri,7,style=Italic'
  820. $Label52.ForeColor               = "#4a4a4a"
  821.  
  822. $Label53                         = New-Object system.Windows.Forms.Label
  823. $Label53.text                    = "Services:"
  824. $Label53.AutoSize                = $true
  825. $Label53.width                   = 25
  826. $Label53.height                  = 10
  827. $Label53.location                = New-Object System.Drawing.Point(305,495)
  828. $Label53.Font                    = 'Calibri,12,style=Underline'
  829. $Label53.ForeColor               = "#4a90e2"
  830.  
  831. $LabelS                          = New-Object system.Windows.Forms.Label
  832. $LabelS.text                     = "Superfetch(Sysmain):"
  833. $LabelS.AutoSize                 = $true
  834. $LabelS.width                    = 25
  835. $LabelS.height                   = 10
  836. $LabelS.location                 = New-Object System.Drawing.Point(305,517)
  837. $LabelS.Font                     = 'Calibri,10'
  838. $LabelS.ForeColor                = "#ffffff"
  839.  
  840. $ComboBox29                      = New-Object system.Windows.Forms.ComboBox
  841. $ComboBox29.BackColor            = "#171717"
  842. $ComboBox29.width                = 109
  843. $ComboBox29.height               = 20
  844. @('1','2','3','4') | ForEach-Object {[void] $ComboBox29.Items.Add($_)}
  845. $ComboBox29.location             = New-Object System.Drawing.Point(463,517)
  846. $ComboBox29.Font                 = 'Calibri,10'
  847. $ComboBox29.ForeColor            = "#ffffff"
  848.  
  849. $Label54                         = New-Object system.Windows.Forms.Label
  850. $Label54.text                    = "USEPLATFORMCLOCK:"
  851. $Label54.AutoSize                = $true
  852. $Label54.width                   = 25
  853. $Label54.height                  = 10
  854. $Label54.location                = New-Object System.Drawing.Point(301,152)
  855. $Label54.Font                    = 'Calibri,10'
  856. $Label54.ForeColor               = "#ffffff"
  857.  
  858. $ComboBox34                      = New-Object system.Windows.Forms.ComboBox
  859. $ComboBox34.BackColor            = "#171717"
  860. $ComboBox34.width                = 109
  861. $ComboBox34.height               = 20
  862. @('On','Off') | ForEach-Object {[void] $ComboBox34.Items.Add($_)}
  863. $ComboBox34.location             = New-Object System.Drawing.Point(459,152)
  864. $ComboBox34.Font                 = 'Calibri,10'
  865. $ComboBox34.ForeColor            = "#ffffff"
  866.  
  867. $ComboBox36                      = New-Object system.Windows.Forms.ComboBox
  868. $ComboBox36.BackColor            = "#171717"
  869. $ComboBox36.width                = 109
  870. $ComboBox36.height               = 20
  871. @('Default','Enhanced','Legacy') | ForEach-Object {[void] $ComboBox36.Items.Add($_)}
  872. $ComboBox36.location             = New-Object System.Drawing.Point(459,200)
  873. $ComboBox36.Font                 = 'Calibri,10'
  874. $ComboBox36.ForeColor            = "#ffffff"
  875.  
  876. $Label56                         = New-Object system.Windows.Forms.Label
  877. $Label56.text                    = "TSCSYNCPOLICY:"
  878. $Label56.AutoSize                = $true
  879. $Label56.width                   = 25
  880. $Label56.height                  = 10
  881. $Label56.location                = New-Object System.Drawing.Point(301,200)
  882. $Label56.Font                    = 'Calibri,10'
  883. $Label56.ForeColor               = "#ffffff"
  884.  
  885. $ComboBox37                      = New-Object system.Windows.Forms.ComboBox
  886. $ComboBox37.BackColor            = "#171717"
  887. $ComboBox37.width                = 109
  888. $ComboBox37.height               = 20
  889. @('On','Off') | ForEach-Object {[void] $ComboBox37.Items.Add($_)}
  890. $ComboBox37.location             = New-Object System.Drawing.Point(459,227)
  891. $ComboBox37.Font                 = 'Calibri,10'
  892. $ComboBox37.ForeColor            = "#ffffff"
  893.  
  894. $Label57                         = New-Object system.Windows.Forms.Label
  895. $Label57.text                    = "USEFIRMWAREPCISETTING:"
  896. $Label57.AutoSize                = $true
  897. $Label57.width                   = 25
  898. $Label57.height                  = 10
  899. $Label57.location                = New-Object System.Drawing.Point(301,227)
  900. $Label57.Font                    = 'Calibri,10'
  901. $Label57.ForeColor               = "#ffffff"
  902.  
  903. $Label59                         = New-Object system.Windows.Forms.Label
  904. $Label59.text                    = "FORCELEGACYPLATFORM:"
  905. $Label59.AutoSize                = $true
  906. $Label59.width                   = 25
  907. $Label59.height                  = 10
  908. $Label59.location                = New-Object System.Drawing.Point(301,253)
  909. $Label59.Font                    = 'Calibri,10'
  910. $Label59.ForeColor               = "#ffffff"
  911.  
  912. $ComboBox39                      = New-Object system.Windows.Forms.ComboBox
  913. $ComboBox39.BackColor            = "#171717"
  914. $ComboBox39.width                = 109
  915. $ComboBox39.height               = 20
  916. @('On','Off') | ForEach-Object {[void] $ComboBox39.Items.Add($_)}
  917. $ComboBox39.location             = New-Object System.Drawing.Point(459,253)
  918. $ComboBox39.Font                 = 'Calibri,10'
  919. $ComboBox39.ForeColor            = "#ffffff"
  920.  
  921. $Label60                         = New-Object system.Windows.Forms.Label
  922. $Label60.text                    = "X2APICPOLICY:"
  923. $Label60.AutoSize                = $true
  924. $Label60.width                   = 25
  925. $Label60.height                  = 10
  926. $Label60.location                = New-Object System.Drawing.Point(302,101)
  927. $Label60.Font                    = 'Calibri,10'
  928. $Label60.ForeColor               = "#ffffff"
  929.  
  930. $ComboBox40                      = New-Object system.Windows.Forms.ComboBox
  931. $ComboBox40.BackColor            = "#171717"
  932. $ComboBox40.width                = 109
  933. $ComboBox40.height               = 20
  934. @('Enable','Disable','Default') | ForEach-Object {[void] $ComboBox40.Items.Add($_)}
  935. $ComboBox40.location             = New-Object System.Drawing.Point(460,101)
  936. $ComboBox40.Font                 = 'Calibri,10'
  937. $ComboBox40.ForeColor            = "#ffffff"
  938.  
  939. $Label62                         = New-Object system.Windows.Forms.Label
  940. $Label62.text                    = "USEPLATFORMTICK:"
  941. $Label62.AutoSize                = $true
  942. $Label62.width                   = 25
  943. $Label62.height                  = 10
  944. $Label62.location                = New-Object System.Drawing.Point(301,176)
  945. $Label62.Font                    = 'Calibri,10'
  946. $Label62.ForeColor               = "#ffffff"
  947.  
  948. $ComboBox42                      = New-Object system.Windows.Forms.ComboBox
  949. $ComboBox42.BackColor            = "#171717"
  950. $ComboBox42.width                = 109
  951. $ComboBox42.height               = 20
  952. @('On','Off') | ForEach-Object {[void] $ComboBox42.Items.Add($_)}
  953. $ComboBox42.location             = New-Object System.Drawing.Point(459,176)
  954. $ComboBox42.Font                 = 'Calibri,10'
  955. $ComboBox42.ForeColor            = "#ffffff"
  956.  
  957. $Label58                         = New-Object system.Windows.Forms.Label
  958. $Label58.text                    = "USELEGACYAPICMODE:"
  959. $Label58.AutoSize                = $true
  960. $Label58.width                   = 25
  961. $Label58.height                  = 10
  962. $Label58.location                = New-Object System.Drawing.Point(302,77)
  963. $Label58.Font                    = 'Calibri,10'
  964. $Label58.ForeColor               = "#ffffff"
  965.  
  966. $ComboBox38                      = New-Object system.Windows.Forms.ComboBox
  967. $ComboBox38.BackColor            = "#171717"
  968. $ComboBox38.width                = 109
  969. $ComboBox38.height               = 20
  970. @('On','Off') | ForEach-Object {[void] $ComboBox38.Items.Add($_)}
  971. $ComboBox38.location             = New-Object System.Drawing.Point(460,77)
  972. $ComboBox38.Font                 = 'Calibri,10'
  973. $ComboBox38.ForeColor            = "#ffffff"
  974.  
  975. $btn_resetbcd                    = New-Object system.Windows.Forms.Button
  976. $btn_resetbcd.text               = "BCDSETTINGS *DEFAULT*"
  977. $btn_resetbcd.width              = 266
  978. $btn_resetbcd.height             = 22
  979. $btn_resetbcd.location           = New-Object System.Drawing.Point(302,296)
  980. $btn_resetbcd.Font               = 'Calibri,10'
  981. $btn_resetbcd.ForeColor          = "#4a90e2"
  982.  
  983. $Label55                         = New-Object system.Windows.Forms.Label
  984. $Label55.text                    = "USEPHYSICALDESTINATION:"
  985. $Label55.AutoSize                = $true
  986. $Label55.width                   = 25
  987. $Label55.height                  = 10
  988. $Label55.location                = New-Object System.Drawing.Point(302,53)
  989. $Label55.Font                    = 'Calibri,10'
  990. $Label55.ForeColor               = "#ffffff"
  991.  
  992. $ComboBox35                      = New-Object system.Windows.Forms.ComboBox
  993. $ComboBox35.BackColor            = "#171717"
  994. $ComboBox35.width                = 109
  995. $ComboBox35.height               = 20
  996. @('On','Off') | ForEach-Object {[void] $ComboBox35.Items.Add($_)}
  997. $ComboBox35.location             = New-Object System.Drawing.Point(460,53)
  998. $ComboBox35.Font                 = 'Calibri,10'
  999. $ComboBox35.ForeColor            = "#ffffff"
  1000.  
  1001. $Form.controls.AddRange(@($Label1,$Label2,$ComboBox1,$Label3,$ComboBox2,$Label4,$Label5,$Label6,$Label7,$Label8,$Label9,$Label10,$ComboBox3,$ComboBox4,$ComboBox5,$ComboBox6,$ComboBox7,$Label11,$Label12,$ComboBox8,$Label13,$ComboBox9,$Label14,$Label15,$ComboBox10,$ComboBox11,$Label16,$Label17,$ComboBox12,$ComboBox13,$Label18,$Label19,$Label20,$ComboBox14,$ComboBox15,$Label21,$ComboBox16,$Label22,$Label23,$Label24,$ComboBox17,$ComboBox18,$Label25,$Label29,$Label26,$Label27,$Label28,$Label30,$Label31,$Label32,$ComboBox19,$ComboBox20,$ComboBox21,$ComboBox22,$ComboBox23,$RefreshValues,$Label33,$Label34,$Button1,$btn_apply,$btn_adv,$Label35,$Label36,$Label37,$Label38,$Groupbox1,$Label53,$LabelS,$ComboBox29,$Label54,$ComboBox34,$ComboBox36,$Label56,$ComboBox37,$Label57,$Label59,$ComboBox39,$Label60,$ComboBox40,$Label62,$ComboBox42,$Label58,$ComboBox38,$btn_resetbcd,$Label55,$ComboBox35))
  1002. $Groupbox1.controls.AddRange(@($Label39,$Label40,$Label41,$Label42,$Label43,$Label44,$ComboBox24,$ComboBox25,$ComboBox26,$ComboBox27,$ComboBox28,$Label46,$ComboBox30,$Label47,$ComboBox31,$ComboBox32,$Label48,$Label49,$ComboBox33,$Label45,$Label50,$Label51,$Label52))
  1003.  
  1004. $RefreshValues.Add_Click({  })
  1005.  
  1006. Write-Host "St1cky Tweaker 2.00"
  1007. Write-Host "Reading Registry..."
  1008. $ErrorActionPreference = 'silentlycontinue'
  1009.  
  1010. #GroupBox_Visibility
  1011. $Groupbox1.visible              = $false
  1012.  
  1013. #Write your logic code here
  1014. #SystemProfil
  1015. $ComboBox1.Text                  = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" -Name "NetworkThrottlingIndex"
  1016. $ComboBox2.Text                  = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" -Name "SystemResponsiveness"
  1017. $ComboBox3.Text                  = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "Clock Rate"
  1018. $ComboBox4.Text                  = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "GPU Priority"
  1019. $ComboBox5.Text                  = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "Priority"
  1020. $ComboBox6.Text                  = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "Scheduling Category"
  1021. $ComboBox7.Text                  = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "SFIO Priority"
  1022. #Memory Management
  1023. $ComboBox8.Text                  = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "DisablePagingExecutive"
  1024. $ComboBox9.Text                  = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "LargeSystemCache"
  1025. $ComboBox11.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "PhysicalAddressExtension"
  1026. $ComboBox10.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "SecondLevelDataCache"
  1027. $returnSuperfetchReg             = (Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -Name "EnableSuperfetch")
  1028.     if ( $returnSuperfetchReg -eq $null) {
  1029.     #New-ItemProperty -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -PropertyType "DWORD" -Name "EnableSuperfetch" -Value "0"
  1030.     Write-Host "EnableSuperfetch is not present!"
  1031.     }else{
  1032.         Write-Host "Superfetch Found Reading..."
  1033.         $ComboBox16.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -Name "EnableSuperfetch"
  1034.     }
  1035.    
  1036. $returnPrefetcherReg             = (Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -Name "EnablePrefetcher")
  1037.     if ( $returnPrefetcherReg -eq $null) {
  1038.     #New-ItemProperty -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -PropertyType "DWORD" -Name "EnablePrefetcher" -Value "0"
  1039.     Write-Host "EnablePrefetcher is not present!"
  1040.     }else{
  1041.         Write-Host "EnablePrefetcher Found Reading..."
  1042.         $ComboBox14.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -Name "EnablePrefetcher"
  1043.     }
  1044.  
  1045. $returnEnableBoottraceReg         = (Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -Name "EnableBoottrace")
  1046.     if ( $returnEnableBoottraceReg -eq $null) {
  1047.     #New-ItemProperty -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -PropertyType "DWORD"-Name "EnableBoottrace" -Value "0"
  1048.     Write-Host "EnableBoottrace is not present!"
  1049.     }else{
  1050.         Write-Host "EnableBoottrace Found Reading..."
  1051.         $ComboBox15.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -Name "EnableBoottrace"
  1052.     }
  1053.  
  1054. $ComboBox12.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl" -Name "ConvertibleSlateMode"
  1055. $ComboBox13.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl" -Name "Win32PrioritySeparation"
  1056. $ComboBox18.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "FeatureSettingsOverride"
  1057. $ComboBox17.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "FeatureSettingsOverrideMask"
  1058. $ComboBox19.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" -Name "Class"
  1059. $ComboBox20.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" -Name "DnsPriority"
  1060. $ComboBox21.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" -Name "HostsPriority"
  1061. $ComboBox22.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" -Name "LocalPriority"
  1062. $ComboBox23.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" -Name "NetbtPriority"
  1063. $ComboBox28.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "DefaultTTL"
  1064. $ComboBox27.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "EnablePMTUDiscovery"
  1065. $ComboBox26.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "EnablePMTUBHDetect"
  1066. $ComboBox25.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "TcpMaxDupAcks"
  1067. $ComboBox24.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "Tcp1323Opts"
  1068. $ComboBox33.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "SackOpts"
  1069. $ComboBox32.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "MaxUserPort"
  1070. $ComboBox31.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "TcpTimedWaitDelay"
  1071. $ComboBox30.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "SynAttackProtect"
  1072. $ComboBox29.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Sysmain" -Name "Start"
  1073.  
  1074. #Button Refresh Values
  1075. $RefreshValues.Add_Click(
  1076.     {  
  1077.         $ErrorActionPreference = 'silentlycontinue'
  1078.         Write-Host "Reading Registry Values..."
  1079.         $ComboBox1.Text                  = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" -Name "NetworkThrottlingIndex"
  1080.         $ComboBox2.Text                  = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" -Name "SystemResponsiveness"
  1081.         $ComboBox3.Text                  = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "Clock Rate"
  1082.         $ComboBox4.Text                  = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "GPU Priority"
  1083.         $ComboBox5.Text                  = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "Priority"
  1084.         $ComboBox6.Text                  = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "Scheduling Category"
  1085.         $ComboBox7.Text                  = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "SFIO Priority"
  1086.         $ComboBox8.Text                  = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "DisablePagingExecutive"
  1087.         $ComboBox9.Text                  = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "LargeSystemCache"
  1088.         $ComboBox11.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "PhysicalAddressExtension"
  1089.         $ComboBox10.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "SecondLevelDataCache"
  1090.         $ComboBox16.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -Name "EnableSuperfetch"
  1091.         $ComboBox14.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -Name "EnablePrefetcher"
  1092.         $ComboBox15.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -Name "EnableBoottrace"
  1093.         $ComboBox12.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl" -Name "ConvertibleSlateMode"
  1094.         $ComboBox13.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl" -Name "Win32PrioritySeparation"
  1095.         $ComboBox18.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "FeatureSettingsOverride"
  1096.         $ComboBox17.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "FeatureSettingsOverrideMask"
  1097.         $ComboBox19.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" -Name "Class"
  1098.         $ComboBox20.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" -Name "DnsPriority"
  1099.         $ComboBox21.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" -Name "HostsPriority"
  1100.         $ComboBox22.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" -Name "LocalPriority"
  1101.         $ComboBox23.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" -Name "NetbtPriority"
  1102.         $ComboBox28.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "DefaultTTL"
  1103.         $ComboBox27.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "EnablePMTUDiscovery"
  1104.         $ComboBox26.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "EnablePMTUBHDetect"
  1105.         $ComboBox25.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "TcpMaxDupAcks"
  1106.         $ComboBox24.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "Tcp1323Opts"
  1107.         $ComboBox33.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "SackOpts"
  1108.         $ComboBox32.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "MaxUserPort"
  1109.         $ComboBox31.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "TcpTimedWaitDelay"
  1110.         $ComboBox30.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "SynAttackProtect"
  1111.         $ComboBox29.Text                 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Sysmain" -Name "Start"
  1112.     }
  1113. )
  1114.  
  1115.  
  1116. function Setnew([string]$path, [string]$key, [string]$Value) {  
  1117. $oldValue = (Get-ItemProperty -path $path).$key  
  1118. Set-ItemProperty -path $path -name $key -Type DWORD -Value $Value  
  1119. $newValue = (Get-ItemProperty -path $path).$key  
  1120. $data =  "$path\$key=$oldValue"  
  1121. Add-Content $LogFileName $data  
  1122. Write-Output "Value for $path\$key changed from $oldValue to $newValue"  
  1123. }  
  1124.  
  1125. function SetSZ([string]$path, [string]$key, [string]$Value) {  
  1126. $oldValue = (Get-ItemProperty -path $path).$key  
  1127. Set-ItemProperty -path $path -name $key -Type STRING -Value $Value  
  1128. $newValue = (Get-ItemProperty -path $path).$key  
  1129. $data =  "$path\$key=$oldValue"  
  1130. Add-Content $LogFileName $data  
  1131. Write-Output "Value for $path\$key changed from $oldValue to $newValue"  
  1132. }
  1133.  
  1134. #SetProperty "HKLM:\System\CurrentControlSet\Control\Session Manager\Memory Management" "DisablePagingExecutive" 1  
  1135. # Set SystemPages to 0xFFFFFFFF  
  1136. # Maximize system pages. The system creates the largest number of page table entries possible within physical memory.  
  1137. # The system monitors and adjusts this value dynamically when the configuration changes.  
  1138. #SetProperty "HKLM:\System\CurrentControlSet\Control\Session Manager\Memory Management" "SystemPages" 0xFFFFFFFF  
  1139. # HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters  
  1140. # ======  
  1141. #$path = "HKLM:\System\CurrentControlSet\Services\LanmanServer\Parameters"  
  1142. #$returnValue = (Get-ItemProperty -path $path).IRPStackSize  
  1143. #if ( $returnValue -eq $null) {  
  1144. #SetProperty $path "IRPStackSize" 0x20 # IRPStackSize -> +10 (Use DWORD 0x20 (32) if not present)  
  1145. #}else{  
  1146. #$returnValue = $returnValue + 1  
  1147. #SetProperty $path "IRPStackSize" $returnValue  
  1148. #}  
  1149.  
  1150. #Button Advanced
  1151. $btn_adv.Add_Click(
  1152.     {
  1153.         $btn_adv.ForeColor               = "#8B572A"
  1154.         $Groupbox1.visible              = $true
  1155.     }
  1156. )
  1157.  
  1158.  
  1159.  
  1160. #BUTTON BCDSETTINGS DEFAULT
  1161. $btn_resetbcd.Add_Click(
  1162.     {
  1163.         Write-Host "REMOVING BCDSETTINGS TO DEFAULT!"
  1164.         cmd /c BCDEDIT /DELETEVALUE X2APICPOLICY
  1165.         cmd /c BCDEDIT /DELETEVALUE USEPLATFORMCLOCK
  1166.         cmd /c BCDEDIT /DELETEVALUE USELEGACYAPICMODE
  1167.         cmd /c BCDEDIT /DELETEVALUE TSCSYNCPOLICY
  1168.         cmd /c BCDEDIT /DELETEVALUE FORCELEGACYPLATFORM
  1169.         cmd /c BCDEDIT /DELETEVALUE USEPLATFORMTICK
  1170.         cmd /c BCDEDIT /DELETEVALUE USEFIRMWAREPCISETTINGS
  1171.         cmd /c BCDEDIT /DELETEVALUE USEPHYSICALDESTINATION
  1172.         Write-Host "BCDSETTINGS ARE DEFAULT NOW!"
  1173.        
  1174.        
  1175.     }
  1176. )
  1177.  
  1178. #Button Apply
  1179. $btn_apply.Add_Click(
  1180.     {
  1181.         $ErrorActionPreference = 'silentlycontinue'
  1182.         $LogFileName="C:\St1ckyTweaker.log"  
  1183.         $LogTime=([System.DateTime]::Now).ToString("dd-MM-yyyy hh:mm:ss")  
  1184.         Add-Content $LogFileName "*********** Settings changed at $LogTime ************"  
  1185.         Write-Host "Logfile Enabled!"
  1186.        
  1187.         Write-Host "Writing..."
  1188.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" "NetworkThrottlingIndex" $ComboBox1.Text
  1189.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" "SystemResponsiveness" $ComboBox2.Text
  1190.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" "Clock Rate" $ComboBox3.Text
  1191.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" "GPU Priority" $ComboBox4.Text
  1192.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" "Priority" $ComboBox5.Text
  1193.         SetSZ -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" "Scheduling Category" $ComboBox6.Text
  1194.         SetSZ -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" "SFIO Priority" $ComboBox7.Text
  1195.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" "DisablePagingExecutive" $ComboBox8.Text
  1196.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" "LargeSystemCache" $ComboBox9.Text
  1197.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" "PhysicalAddressExtension" $ComboBox11.Text
  1198.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" "SecondLevelDataCache" $ComboBox10.Text
  1199.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" "EnableSuperfetch" $ComboBox16.Text
  1200.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" "EnablePrefetcher" $ComboBox14.Text
  1201.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" "EnableBoottrace" $ComboBox15.Text
  1202.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl" "ConvertibleSlateMode" $ComboBox12.Text
  1203.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl" "Win32PrioritySeparation" $ComboBox13.Text
  1204.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" "Class" $ComboBox19.Text
  1205.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" "DnsPriority" $ComboBox20.Text
  1206.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" "HostsPriority" $ComboBox21.Text
  1207.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" "LocalPriority" $ComboBox22.Text
  1208.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" "NetbtPriority" $ComboBox23.Text
  1209.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Sysmain" "Start" $ComboBox29.Text
  1210.  
  1211.  
  1212. #Button Apply - BCEDIT SETTINGS
  1213. $X2APICPOLICYVALUE = $ComboBox40.Text
  1214.     if ($X2APICPOLICYVALUE -eq $null)
  1215.     {
  1216.         Write-Host "X2APICPOLICY Skip"
  1217.     }else{ 
  1218.         Write-Host ("X2APICPOLICY $X2APICPOLICYVALUE")
  1219.         cmd /c "BCDEDIT /SET X2APICPOLICY $X2APICPOLICYVALUE"
  1220.     }
  1221.    
  1222. $USEPLATFORMCLOCKVALUE = $ComboBox34.Text
  1223.     if ($USEPLATFORMCLOCKVALUE -eq $null)
  1224.     {
  1225.         Write-Host "USEPLATFORMCLOCK Skip"
  1226.     }else{ 
  1227.         Write-Host ("USEPLATFORMCLOCK $USEPLATFORMCLOCKVALUE")
  1228.         cmd /c "BCDEDIT /SET USEPLATFORMCLOCK $USEPLATFORMCLOCKVALUE"
  1229.     }
  1230.    
  1231. $USELEGACYAPICMODEVALUE = $ComboBox38.Text
  1232.     if ($USELEGACYAPICMODEVALUE -eq $null)
  1233.     {
  1234.         Write-Host "USELEGACYAPICMODE Skip"
  1235.     }else{ 
  1236.         Write-Host ("USELEGACYAPICMODE $USELEGACYAPICMODEVALUE")
  1237.         cmd /c "BCDEDIT /SET USELEGACYAPICMODE $USELEGACYAPICMODEVALUE"
  1238.     }
  1239.    
  1240. $TSCSYNCPOLICYVALUE = $ComboBox36.Text
  1241.     if ($TSCSYNCPOLICYVALUE -eq $null)
  1242.     {
  1243.         Write-Host "TSCSYNCPOLICY Skip"
  1244.     }else{ 
  1245.         Write-Host ("TSCSYNCPOLICY $TSCSYNCPOLICYVALUE")
  1246.         cmd /c "BCDEDIT /SET TSCSYNCPOLICY $TSCSYNCPOLICYVALUE"
  1247.     }
  1248.    
  1249. $FORCELEGACYPLATFORMVALUE = $ComboBox39.Text
  1250.     if ($TSCSYNCPOLICYVALUE -eq $null)
  1251.     {
  1252.         Write-Host "FORCELEGACYPLATFORM Skip"
  1253.     }else{ 
  1254.         Write-Host ("FORCELEGACYPLATFORM $FORCELEGACYPLATFORMVALUE")
  1255.         cmd /c "BCDEDIT /SET FORCELEGACYPLATFORM $FORCELEGACYPLATFORMVALUE"
  1256.     }
  1257.    
  1258. $USEPLATFORMTICKVALUE = $ComboBox42.Text
  1259.     if ($USEPLATFORMTICKVALUE -eq $null)
  1260.     {
  1261.         Write-Host "USEPLATFORMTICK Skip"
  1262.     }else{ 
  1263.         Write-Host ("USEPLATFORMTICK $USEPLATFORMTICKVALUE")
  1264.         cmd /c "BCDEDIT /SET USEPLATFORMTICK $USEPLATFORMTICKVALUE"
  1265.     }
  1266.    
  1267. $USEFIRMWAREPCISETTINGSVALUE = $ComboBox37.Text
  1268.     if ($USEFIRMWAREPCISETTINGSVALUE -eq $null)
  1269.     {
  1270.         Write-Host "USEFIRMWAREPCISETTINGS Skip"
  1271.     }else{ 
  1272.         Write-Host ("USEFIRMWAREPCISETTINGS $USEFIRMWAREPCISETTINGSVALUE")
  1273.         cmd /c "BCDEDIT /SET USEFIRMWAREPCISETTINGS $USEFIRMWAREPCISETTINGSVALUE"
  1274.     }    
  1275.    
  1276. $USEPHYSICALDESTINATIONVALUE = $ComboBox35.Text
  1277.     if ($USEPHYSICALDESTINATIONVALUE -eq $null)
  1278.     {
  1279.         Write-Host "USEPHYSICALDESTINATION Skip"
  1280.     }else{ 
  1281.         Write-Host ("USEPHYSICALDESTINATION $USEPHYSICALDESTINATIONVALUE")
  1282.         cmd /c "BCDEDIT /SET USEPHYSICALDESTINATION $USEPHYSICALDESTINATIONVALUE"
  1283.     }    
  1284.    
  1285.    
  1286.     $returnFeatureSettingsOverrideReg             = (Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "FeatureSettingsOverride" -erroraction 'silentlycontinue')
  1287.         if ( $returnFeatureSettingsOverrideReg -eq $null) {
  1288.         $ComboBox18.Text = ""
  1289.         Write-Host "FeatureSettingsOverride is not present."
  1290.         }else{
  1291.         Write-Host "FeatureSettingsOverride Found, Writing new Value..."
  1292.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" "FeatureSettingsOverride" $ComboBox18.Text
  1293.         }
  1294.  
  1295.     $returnFeatureSettingsOverrideMask             = (Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "FeatureSettingsOverride" -erroraction 'silentlycontinue')
  1296.         if ( $returnFeatureSettingsOverrideMask -eq $null) {
  1297.         $ComboBox17.Text = ""
  1298.         Write-Host "FeatureSettingsOverrideMask is not present."
  1299.         }else{
  1300.         Write-Host "FeatureSettingsOverride Found, Writing new Value..."
  1301.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" "FeatureSettingsOverrideMask" $ComboBox17.Text
  1302.         }
  1303.    
  1304.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" "DefaultTTL" $ComboBox28.Text
  1305.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" "EnablePMTUDiscovery" $ComboBox27.Text
  1306.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" "EnablePMTUBHDetect" $ComboBox26.Text
  1307.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" "TcpMaxDupAcks" $ComboBox25.Text
  1308.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" "Tcp1323Opts" $ComboBox24.Text
  1309.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" "SackOpts" $ComboBox33.Text
  1310.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" "MaxUserPort" $ComboBox32.Text
  1311.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" "TcpTimedWaitDelay" $ComboBox31.Text
  1312.         Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" "SynAttackProtect" $ComboBox30.Text
  1313.         }
  1314. )
  1315.  
  1316.  
  1317.  
  1318.  
  1319. [void]$Form.ShowDialog()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top