Results 1 to 5 of 5

Thread: [St1cky Tweaker] Performance Tweaks GUI

  1. #1

    Lightbulb [St1cky Tweaker] Performance Tweaks GUI

    Hey SpeedGuide,

    I'm going to release several updates because I'm a total Powershell scripting Noob and a total beginner in programming.

    My idea was to read registry settings and easily modify and test them. In different combinations.

    More Settings i will add soon and optimize the BCDSettings to get them Read from CMD or PS.

    Pastebin Link(2.00):
    https://pastebin.com/VrjR78sv

    Have Fun with it.

    Code:
    <# This form was created using POSHGUI.com  a free online gui designer for PowerShell
    .NAME
        St1ckyTweaker 2.00
    #>
    
    Add-Type -AssemblyName System.Windows.Forms
    [System.Windows.Forms.Application]::EnableVisualStyles()
    
    $Form                            = New-Object system.Windows.Forms.Form
    $Form.ClientSize                 = '1033,704'
    $Form.text                       = "St1cky_Tweaker 2.00"
    $Form.BackColor                  = "#141414"
    $Form.TopMost                    = $false
    
    $Label1                          = New-Object system.Windows.Forms.Label
    $Label1.text                     = "TCP/IP and Performance Tweaks:"
    $Label1.AutoSize                 = $true
    $Label1.width                    = 25
    $Label1.height                   = 10
    $Label1.location                 = New-Object System.Drawing.Point(15,17)
    $Label1.Font                     = 'Calibri,15,style=Underline'
    $Label1.ForeColor                = "#4a90e2"
    
    $Label2                          = New-Object system.Windows.Forms.Label
    $Label2.text                     = "NetworkThrottlingIndex:"
    $Label2.AutoSize                 = $true
    $Label2.width                    = 25
    $Label2.height                   = 10
    $Label2.location                 = New-Object System.Drawing.Point(15,54)
    $Label2.Font                     = 'Calibri,10'
    $Label2.ForeColor                = "#ffffff"
    
    $ComboBox1                       = New-Object system.Windows.Forms.ComboBox
    $ComboBox1.BackColor             = "#171717"
    $ComboBox1.width                 = 109
    $ComboBox1.height                = 20
    @('4294967295','10','20') | ForEach-Object {[void] $ComboBox1.Items.Add($_)}
    $ComboBox1.location              = New-Object System.Drawing.Point(170,54)
    $ComboBox1.Font                  = 'Calibri,10'
    $ComboBox1.ForeColor             = "#ffffff"
    
    $Label3                          = New-Object system.Windows.Forms.Label
    $Label3.text                     = "SystemResponsiveness:"
    $Label3.AutoSize                 = $true
    $Label3.width                    = 25
    $Label3.height                   = 10
    $Label3.location                 = New-Object System.Drawing.Point(15,78)
    $Label3.Font                     = 'Calibri,10'
    $Label3.ForeColor                = "#ffffff"
    
    $ComboBox2                       = New-Object system.Windows.Forms.ComboBox
    $ComboBox2.BackColor             = "#171717"
    $ComboBox2.width                 = 109
    $ComboBox2.height                = 20
    @('0','10','20') | ForEach-Object {[void] $ComboBox2.Items.Add($_)}
    $ComboBox2.location              = New-Object System.Drawing.Point(170,78)
    $ComboBox2.Font                  = 'Calibri,10'
    $ComboBox2.ForeColor             = "#ffffff"
    
    $Label4                          = New-Object system.Windows.Forms.Label
    $Label4.text                     = "Clock Rate:"
    $Label4.AutoSize                 = $true
    $Label4.width                    = 25
    $Label4.height                   = 10
    $Label4.location                 = New-Object System.Drawing.Point(15,129)
    $Label4.Font                     = 'Calibri,10'
    $Label4.ForeColor                = "#ffffff"
    
    $Label5                          = New-Object system.Windows.Forms.Label
    $Label5.AutoSize                 = $true
    $Label5.width                    = 25
    $Label5.height                   = 10
    $Label5.location                 = New-Object System.Drawing.Point(34,139)
    $Label5.Font                     = 'Calibri,10'
    $Label5.ForeColor                = "#ffffff"
    
    $Label6                          = New-Object system.Windows.Forms.Label
    $Label6.text                     = "Task Gaming:"
    $Label6.AutoSize                 = $true
    $Label6.width                    = 25
    $Label6.height                   = 10
    $Label6.location                 = New-Object System.Drawing.Point(15,107)
    $Label6.Font                     = 'Calibri,12,style=Underline'
    $Label6.ForeColor                = "#4a90e2"
    
    $Label7                          = New-Object system.Windows.Forms.Label
    $Label7.text                     = "GPU Priority:"
    $Label7.AutoSize                 = $true
    $Label7.width                    = 25
    $Label7.height                   = 10
    $Label7.location                 = New-Object System.Drawing.Point(15,153)
    $Label7.Font                     = 'Calibri,10'
    $Label7.ForeColor                = "#ffffff"
    
    $Label8                          = New-Object system.Windows.Forms.Label
    $Label8.text                     = "Priority:"
    $Label8.AutoSize                 = $true
    $Label8.width                    = 25
    $Label8.height                   = 10
    $Label8.location                 = New-Object System.Drawing.Point(15,177)
    $Label8.Font                     = 'Calibri,10'
    $Label8.ForeColor                = "#ffffff"
    
    $Label9                          = New-Object system.Windows.Forms.Label
    $Label9.text                     = "Scheduling Category:"
    $Label9.AutoSize                 = $true
    $Label9.width                    = 25
    $Label9.height                   = 10
    $Label9.location                 = New-Object System.Drawing.Point(15,201)
    $Label9.Font                     = 'Calibri,10'
    $Label9.ForeColor                = "#ffffff"
    
    $Label10                         = New-Object system.Windows.Forms.Label
    $Label10.text                    = "SFIO Priority:"
    $Label10.AutoSize                = $true
    $Label10.width                   = 25
    $Label10.height                  = 10
    $Label10.location                = New-Object System.Drawing.Point(15,225)
    $Label10.Font                    = 'Calibri,10'
    $Label10.ForeColor               = "#ffffff"
    
    $ComboBox3                       = New-Object system.Windows.Forms.ComboBox
    $ComboBox3.BackColor             = "#171717"
    $ComboBox3.width                 = 109
    $ComboBox3.height                = 20
    @('10000') | ForEach-Object {[void] $ComboBox3.Items.Add($_)}
    $ComboBox3.location              = New-Object System.Drawing.Point(170,129)
    $ComboBox3.Font                  = 'Calibri,10'
    $ComboBox3.ForeColor             = "#ffffff"
    
    $ComboBox4                       = New-Object system.Windows.Forms.ComboBox
    $ComboBox4.BackColor             = "#171717"
    $ComboBox4.width                 = 109
    $ComboBox4.height                = 20
    $ComboBox4.location              = New-Object System.Drawing.Point(170,153)
    $ComboBox4.Font                  = 'Calibri,10'
    $ComboBox4.ForeColor             = "#ffffff"
    
    $ComboBox5                       = New-Object system.Windows.Forms.ComboBox
    $ComboBox5.BackColor             = "#171717"
    $ComboBox5.width                 = 109
    $ComboBox5.height                = 20
    @('1','2','3','4','5','6','7','8') | ForEach-Object {[void] $ComboBox5.Items.Add($_)}
    $ComboBox5.location              = New-Object System.Drawing.Point(170,177)
    $ComboBox5.Font                  = 'Calibri,10'
    $ComboBox5.ForeColor             = "#ffffff"
    
    $ComboBox6                       = New-Object system.Windows.Forms.ComboBox
    $ComboBox6.BackColor             = "#171717"
    $ComboBox6.width                 = 109
    $ComboBox6.height                = 20
    @('Low','Medium','High') | ForEach-Object {[void] $ComboBox6.Items.Add($_)}
    $ComboBox6.location              = New-Object System.Drawing.Point(170,201)
    $ComboBox6.Font                  = 'Calibri,10'
    $ComboBox6.ForeColor             = "#ffffff"
    
    $ComboBox7                       = New-Object system.Windows.Forms.ComboBox
    $ComboBox7.BackColor             = "#171717"
    $ComboBox7.width                 = 109
    $ComboBox7.height                = 20
    @('Idle','Low','Normal','High') | ForEach-Object {[void] $ComboBox7.Items.Add($_)}
    $ComboBox7.location              = New-Object System.Drawing.Point(170,225)
    $ComboBox7.Font                  = 'Calibri,10'
    $ComboBox7.ForeColor             = "#ffffff"
    
    $Label11                         = New-Object system.Windows.Forms.Label
    $Label11.text                    = "Memory Management:"
    $Label11.AutoSize                = $true
    $Label11.width                   = 25
    $Label11.height                  = 10
    $Label11.location                = New-Object System.Drawing.Point(15,253)
    $Label11.Font                    = 'Calibri,12,style=Underline'
    $Label11.ForeColor               = "#4a90e2"
    
    $Label12                         = New-Object system.Windows.Forms.Label
    $Label12.text                    = "DisablePagingExecutive:"
    $Label12.AutoSize                = $true
    $Label12.width                   = 25
    $Label12.height                  = 10
    $Label12.location                = New-Object System.Drawing.Point(15,280)
    $Label12.Font                    = 'Calibri,10'
    $Label12.ForeColor               = "#ffffff"
    
    $ComboBox8                       = New-Object system.Windows.Forms.ComboBox
    $ComboBox8.BackColor             = "#171717"
    $ComboBox8.width                 = 109
    $ComboBox8.height                = 20
    @('0','1') | ForEach-Object {[void] $ComboBox8.Items.Add($_)}
    $ComboBox8.location              = New-Object System.Drawing.Point(170,280)
    $ComboBox8.Font                  = 'Calibri,10'
    $ComboBox8.ForeColor             = "#ffffff"
    
    $Label13                         = New-Object system.Windows.Forms.Label
    $Label13.text                    = "LargeSystemCache:"
    $Label13.AutoSize                = $true
    $Label13.width                   = 25
    $Label13.height                  = 10
    $Label13.location                = New-Object System.Drawing.Point(15,306)
    $Label13.Font                    = 'Calibri,10'
    $Label13.ForeColor               = "#ffffff"
    
    $ComboBox9                       = New-Object system.Windows.Forms.ComboBox
    $ComboBox9.BackColor             = "#171717"
    $ComboBox9.width                 = 109
    $ComboBox9.height                = 20
    @('0','1') | ForEach-Object {[void] $ComboBox9.Items.Add($_)}
    $ComboBox9.location              = New-Object System.Drawing.Point(170,306)
    $ComboBox9.Font                  = 'Calibri,10'
    $ComboBox9.ForeColor             = "#ffffff"
    
    $Label14                         = New-Object system.Windows.Forms.Label
    $Label14.text                    = "PhysicalAddressExtension:"
    $Label14.AutoSize                = $true
    $Label14.width                   = 25
    $Label14.height                  = 10
    $Label14.location                = New-Object System.Drawing.Point(15,332)
    $Label14.Font                    = 'Calibri,10'
    $Label14.ForeColor               = "#ffffff"
    
    $Label15                         = New-Object system.Windows.Forms.Label
    $Label15.text                    = "SecondLevelDataCache:"
    $Label15.AutoSize                = $true
    $Label15.width                   = 25
    $Label15.height                  = 10
    $Label15.location                = New-Object System.Drawing.Point(15,358)
    $Label15.Font                    = 'Calibri,10'
    $Label15.ForeColor               = "#ffffff"
    
    $ComboBox10                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox10.BackColor            = "#171717"
    $ComboBox10.width                = 109
    $ComboBox10.height               = 20
    $ComboBox10.location             = New-Object System.Drawing.Point(170,358)
    $ComboBox10.Font                 = 'Calibri,10'
    $ComboBox10.ForeColor            = "#ffffff"
    
    $ComboBox11                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox11.BackColor            = "#171717"
    $ComboBox11.width                = 109
    $ComboBox11.height               = 20
    @('0','1') | ForEach-Object {[void] $ComboBox11.Items.Add($_)}
    $ComboBox11.location             = New-Object System.Drawing.Point(170,332)
    $ComboBox11.Font                 = 'Calibri,10'
    $ComboBox11.ForeColor            = "#ffffff"
    
    $Label16                         = New-Object system.Windows.Forms.Label
    $Label16.text                    = "Priority Control:"
    $Label16.AutoSize                = $true
    $Label16.width                   = 25
    $Label16.height                  = 10
    $Label16.location                = New-Object System.Drawing.Point(15,467)
    $Label16.Font                    = 'Calibri,12,style=Underline'
    $Label16.ForeColor               = "#4a90e2"
    
    $Label17                         = New-Object system.Windows.Forms.Label
    $Label17.text                    = "ConvertibleSlateMode:"
    $Label17.AutoSize                = $true
    $Label17.width                   = 25
    $Label17.height                  = 10
    $Label17.location                = New-Object System.Drawing.Point(15,491)
    $Label17.Font                    = 'Calibri,10'
    $Label17.ForeColor               = "#ffffff"
    
    $ComboBox12                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox12.BackColor            = "#171717"
    $ComboBox12.width                = 109
    $ComboBox12.height               = 20
    $ComboBox12.location             = New-Object System.Drawing.Point(170,491)
    $ComboBox12.Font                 = 'Calibri,10'
    $ComboBox12.ForeColor            = "#ffffff"
    
    $ComboBox13                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox13.BackColor            = "#171717"
    $ComboBox13.width                = 109
    $ComboBox13.height               = 20
    $ComboBox13.location             = New-Object System.Drawing.Point(170,517)
    $ComboBox13.Font                 = 'Calibri,10'
    $ComboBox13.ForeColor            = "#ffffff"
    
    $Label18                         = New-Object system.Windows.Forms.Label
    $Label18.text                    = "Win32PrioritySeparation:"
    $Label18.AutoSize                = $true
    $Label18.width                   = 25
    $Label18.height                  = 10
    $Label18.location                = New-Object System.Drawing.Point(15,517)
    $Label18.Font                    = 'Calibri,10'
    $Label18.ForeColor               = "#ffffff"
    
    $Label19                         = New-Object system.Windows.Forms.Label
    $Label19.text                    = "EnableBoottrace:"
    $Label19.AutoSize                = $true
    $Label19.width                   = 25
    $Label19.height                  = 10
    $Label19.location                = New-Object System.Drawing.Point(15,436)
    $Label19.Font                    = 'Calibri,10'
    $Label19.ForeColor               = "#ffffff"
    
    $Label20                         = New-Object system.Windows.Forms.Label
    $Label20.text                    = "EnablePrefetcher:"
    $Label20.AutoSize                = $true
    $Label20.width                   = 25
    $Label20.height                  = 10
    $Label20.location                = New-Object System.Drawing.Point(15,410)
    $Label20.Font                    = 'Calibri,10'
    $Label20.ForeColor               = "#ffffff"
    
    $ComboBox14                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox14.BackColor            = "#171717"
    $ComboBox14.width                = 109
    $ComboBox14.height               = 20
    @('0','1') | ForEach-Object {[void] $ComboBox14.Items.Add($_)}
    $ComboBox14.location             = New-Object System.Drawing.Point(170,410)
    $ComboBox14.Font                 = 'Calibri,10'
    $ComboBox14.ForeColor            = "#ffffff"
    
    $ComboBox15                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox15.BackColor            = "#171717"
    $ComboBox15.width                = 109
    $ComboBox15.height               = 20
    @('0','1') | ForEach-Object {[void] $ComboBox15.Items.Add($_)}
    $ComboBox15.location             = New-Object System.Drawing.Point(171,436)
    $ComboBox15.Font                 = 'Calibri,10'
    $ComboBox15.ForeColor            = "#ffffff"
    
    $Label21                         = New-Object system.Windows.Forms.Label
    $Label21.text                    = "EnableSuperfetch:"
    $Label21.AutoSize                = $true
    $Label21.width                   = 25
    $Label21.height                  = 10
    $Label21.location                = New-Object System.Drawing.Point(15,384)
    $Label21.Font                    = 'Calibri,10'
    $Label21.ForeColor               = "#ffffff"
    
    $ComboBox16                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox16.BackColor            = "#171717"
    $ComboBox16.width                = 109
    $ComboBox16.height               = 20
    @('0','1') | ForEach-Object {[void] $ComboBox16.Items.Add($_)}
    $ComboBox16.location             = New-Object System.Drawing.Point(170,384)
    $ComboBox16.Font                 = 'Calibri,10'
    $ComboBox16.ForeColor            = "#ffffff"
    
    $Label22                         = New-Object system.Windows.Forms.Label
    $Label22.text                    = "Spectre Variante 2 and Meltdown :"
    $Label22.AutoSize                = $true
    $Label22.width                   = 25
    $Label22.height                  = 10
    $Label22.location                = New-Object System.Drawing.Point(15,543)
    $Label22.Font                    = 'Calibri,12,style=Underline'
    $Label22.ForeColor               = "#4a90e2"
    
    $Label23                         = New-Object system.Windows.Forms.Label
    $Label23.text                    = "FeatureSettingsOverride:"
    $Label23.AutoSize                = $true
    $Label23.width                   = 25
    $Label23.height                  = 10
    $Label23.location                = New-Object System.Drawing.Point(15,571)
    $Label23.Font                    = 'Calibri,10'
    $Label23.ForeColor               = "#ffffff"
    
    $Label24                         = New-Object system.Windows.Forms.Label
    $Label24.text                    = "FeatureSettingsOverrideMask:"
    $Label24.AutoSize                = $true
    $Label24.width                   = 25
    $Label24.height                  = 10
    $Label24.location                = New-Object System.Drawing.Point(15,597)
    $Label24.Font                    = 'Calibri,10'
    $Label24.ForeColor               = "#ffffff"
    
    $ComboBox17                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox17.BackColor            = "#171717"
    $ComboBox17.width                = 109
    $ComboBox17.height               = 20
    @('3') | ForEach-Object {[void] $ComboBox17.Items.Add($_)}
    $ComboBox17.location             = New-Object System.Drawing.Point(189,597)
    $ComboBox17.Font                 = 'Calibri,10'
    $ComboBox17.ForeColor            = "#ffffff"
    
    $ComboBox18                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox18.BackColor            = "#171717"
    $ComboBox18.width                = 109
    $ComboBox18.height               = 20
    @('0','1','3','8') | ForEach-Object {[void] $ComboBox18.Items.Add($_)}
    $ComboBox18.location             = New-Object System.Drawing.Point(189,571)
    $ComboBox18.Font                 = 'Calibri,10'
    $ComboBox18.ForeColor            = "#ffffff"
    
    $Label25                         = New-Object system.Windows.Forms.Label
    $Label25.text                    = "Processor and APICs:"
    $Label25.AutoSize                = $true
    $Label25.width                   = 25
    $Label25.height                  = 10
    $Label25.location                = New-Object System.Drawing.Point(302,32)
    $Label25.Font                    = 'Calibri,12,style=Underline'
    $Label25.ForeColor               = "#4a90e2"
    
    $Label29                         = New-Object system.Windows.Forms.Label
    $Label29.text                    = "HardwareAbstractionLayer(HAL) and KERNEL:"
    $Label29.AutoSize                = $true
    $Label29.width                   = 25
    $Label29.height                  = 10
    $Label29.location                = New-Object System.Drawing.Point(301,129)
    $Label29.Font                    = 'Calibri,12,style=Underline'
    $Label29.ForeColor               = "#4a90e2"
    
    $Label26                         = New-Object system.Windows.Forms.Label
    $Label26.text                    = "ServiceProvider:"
    $Label26.AutoSize                = $true
    $Label26.width                   = 25
    $Label26.height                  = 10
    $Label26.location                = New-Object System.Drawing.Point(305,356)
    $Label26.Font                    = 'Calibri,12,style=Underline'
    $Label26.ForeColor               = "#4a90e2"
    
    $Label27                         = New-Object system.Windows.Forms.Label
    $Label27.text                    = "Class:"
    $Label27.AutoSize                = $true
    $Label27.width                   = 25
    $Label27.height                  = 10
    $Label27.location                = New-Object System.Drawing.Point(305,378)
    $Label27.Font                    = 'Calibri,10'
    $Label27.ForeColor               = "#ffffff"
    
    $Label28                         = New-Object system.Windows.Forms.Label
    $Label28.text                    = "DnsPriority:"
    $Label28.AutoSize                = $true
    $Label28.width                   = 25
    $Label28.height                  = 10
    $Label28.location                = New-Object System.Drawing.Point(305,402)
    $Label28.Font                    = 'Calibri,10'
    $Label28.ForeColor               = "#ffffff"
    
    $Label30                         = New-Object system.Windows.Forms.Label
    $Label30.text                    = "HostsPriority:"
    $Label30.AutoSize                = $true
    $Label30.width                   = 25
    $Label30.height                  = 10
    $Label30.location                = New-Object System.Drawing.Point(305,426)
    $Label30.Font                    = 'Calibri,10'
    $Label30.ForeColor               = "#ffffff"
    
    $Label31                         = New-Object system.Windows.Forms.Label
    $Label31.text                    = "LocalPriority:"
    $Label31.AutoSize                = $true
    $Label31.width                   = 25
    $Label31.height                  = 10
    $Label31.location                = New-Object System.Drawing.Point(305,450)
    $Label31.Font                    = 'Calibri,10'
    $Label31.ForeColor               = "#ffffff"
    
    $Label32                         = New-Object system.Windows.Forms.Label
    $Label32.text                    = "NetbtPriority:"
    $Label32.AutoSize                = $true
    $Label32.width                   = 25
    $Label32.height                  = 10
    $Label32.location                = New-Object System.Drawing.Point(305,474)
    $Label32.Font                    = 'Calibri,10'
    $Label32.ForeColor               = "#ffffff"
    
    $ComboBox19                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox19.BackColor            = "#171717"
    $ComboBox19.width                = 109
    $ComboBox19.height               = 20
    @('8') | ForEach-Object {[void] $ComboBox19.Items.Add($_)}
    $ComboBox19.location             = New-Object System.Drawing.Point(463,378)
    $ComboBox19.Font                 = 'Calibri,10'
    $ComboBox19.ForeColor            = "#ffffff"
    
    $ComboBox20                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox20.BackColor            = "#171717"
    $ComboBox20.width                = 109
    $ComboBox20.height               = 20
    @('2000','6') | ForEach-Object {[void] $ComboBox20.Items.Add($_)}
    $ComboBox20.location             = New-Object System.Drawing.Point(463,402)
    $ComboBox20.Font                 = 'Calibri,10'
    $ComboBox20.ForeColor            = "#ffffff"
    
    $ComboBox21                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox21.BackColor            = "#171717"
    $ComboBox21.width                = 109
    $ComboBox21.height               = 20
    @('500','5') | ForEach-Object {[void] $ComboBox21.Items.Add($_)}
    $ComboBox21.location             = New-Object System.Drawing.Point(463,426)
    $ComboBox21.Font                 = 'Calibri,10'
    $ComboBox21.ForeColor            = "#ffffff"
    
    $ComboBox22                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox22.BackColor            = "#171717"
    $ComboBox22.width                = 109
    $ComboBox22.height               = 20
    @('499','4') | ForEach-Object {[void] $ComboBox22.Items.Add($_)}
    $ComboBox22.location             = New-Object System.Drawing.Point(463,450)
    $ComboBox22.Font                 = 'Calibri,10'
    $ComboBox22.ForeColor            = "#ffffff"
    
    $ComboBox23                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox23.BackColor            = "#171717"
    $ComboBox23.width                = 109
    $ComboBox23.height               = 20
    @('2001','7') | ForEach-Object {[void] $ComboBox23.Items.Add($_)}
    $ComboBox23.location             = New-Object System.Drawing.Point(463,474)
    $ComboBox23.Font                 = 'Calibri,10'
    $ComboBox23.ForeColor            = "#ffffff"
    
    $RefreshValues                   = New-Object system.Windows.Forms.Button
    $RefreshValues.text              = "Refresh"
    $RefreshValues.width             = 126
    $RefreshValues.height            = 22
    $RefreshValues.location          = New-Object System.Drawing.Point(764,671)
    $RefreshValues.Font              = 'Calibri,10'
    $RefreshValues.ForeColor         = "#4a90e2"
    
    $Label33                         = New-Object system.Windows.Forms.Label
    $Label33.text                    = "FeatureSettingsOverrideMask = 3 is for Enabling and Disabling!"
    $Label33.AutoSize                = $true
    $Label33.width                   = 25
    $Label33.height                  = 10
    $Label33.location                = New-Object System.Drawing.Point(311,627)
    $Label33.Font                    = 'Calibri,8,style=Italic'
    $Label33.ForeColor               = "#4a4a4a"
    
    $Label34                         = New-Object system.Windows.Forms.Label
    $Label34.text                    = "3 = to disable mitigations for CVE-2017-5715 (Spectre Variant 2) and CVE-2017-5754 (Meltdown)"
    $Label34.AutoSize                = $true
    $Label34.width                   = 25
    $Label34.height                  = 10
    $Label34.location                = New-Object System.Drawing.Point(311,580)
    $Label34.Font                    = 'Calibri,8,style=Italic'
    $Label34.ForeColor               = "#4a4a4a"
    
    $Button1                         = New-Object system.Windows.Forms.Button
    $Button1.text                    = "Default"
    $Button1.width                   = 126
    $Button1.height                  = 22
    $Button1.location                = New-Object System.Drawing.Point(630,671)
    $Button1.Font                    = 'Calibri,10'
    $Button1.ForeColor               = "#4a90e2"
    
    $btn_apply                       = New-Object system.Windows.Forms.Button
    $btn_apply.text                  = "Apply"
    $btn_apply.width                 = 126
    $btn_apply.height                = 22
    $btn_apply.location              = New-Object System.Drawing.Point(496,671)
    $btn_apply.Font                  = 'Calibri,10'
    $btn_apply.ForeColor             = "#4a90e2"
    
    $btn_adv                         = New-Object system.Windows.Forms.Button
    $btn_adv.text                    = "Advanced"
    $btn_adv.width                   = 126
    $btn_adv.height                  = 22
    $btn_adv.location                = New-Object System.Drawing.Point(898,671)
    $btn_adv.Font                    = 'Calibri,10'
    $btn_adv.ForeColor               = "#4a4a4a"
    
    $Label35                         = New-Object system.Windows.Forms.Label
    $Label35.text                    = "1 = to disable mitigations for CVE-2017-5715 (Spectre Variant 2)"
    $Label35.AutoSize                = $true
    $Label35.width                   = 25
    $Label35.height                  = 10
    $Label35.location                = New-Object System.Drawing.Point(310,594)
    $Label35.Font                    = 'Calibri,8,style=Italic'
    $Label35.ForeColor               = "#4a4a4a"
    
    $Label36                         = New-Object system.Windows.Forms.Label
    $Label36.text                    = "0 = to enable default mitigations for CVE-2017-5715 (Spectre Variant 2) and CVE-2017-5754 (Meltdown)"
    $Label36.AutoSize                = $true
    $Label36.width                   = 25
    $Label36.height                  = 10
    $Label36.location                = New-Object System.Drawing.Point(310,610)
    $Label36.Font                    = 'Calibri,8,style=Italic'
    $Label36.ForeColor               = "#4a4a4a"
    
    $Label37                         = New-Object system.Windows.Forms.Label
    $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)"
    $Label37.AutoSize                = $true
    $Label37.width                   = 25
    $Label37.height                  = 10
    $Label37.location                = New-Object System.Drawing.Point(311,565)
    $Label37.Font                    = 'Calibri,8,style=Italic'
    $Label37.ForeColor               = "#4a4a4a"
    
    $Label38                         = New-Object system.Windows.Forms.Label
    $Label38.text                    = "0 - 31"
    $Label38.AutoSize                = $true
    $Label38.width                   = 25
    $Label38.height                  = 10
    $Label38.location                = New-Object System.Drawing.Point(136,157)
    $Label38.Font                    = 'Calibri,8,style=Italic'
    $Label38.ForeColor               = "#4a4a4a"
    
    $Label39                         = New-Object system.Windows.Forms.Label
    $Label39.text                    = "TCP/IP Parameter:"
    $Label39.AutoSize                = $true
    $Label39.visible                 = $true
    $Label39.width                   = 25
    $Label39.height                  = 10
    $Label39.location                = New-Object System.Drawing.Point(9,4)
    $Label39.Font                    = 'Calibri,12,style=Underline'
    $Label39.ForeColor               = "#8b572a"
    
    $Label40                         = New-Object system.Windows.Forms.Label
    $Label40.text                    = "DefaultTTL:"
    $Label40.AutoSize                = $true
    $Label40.visible                 = $true
    $Label40.width                   = 25
    $Label40.height                  = 10
    $Label40.location                = New-Object System.Drawing.Point(19,30)
    $Label40.Font                    = 'Calibri,10'
    $Label40.ForeColor               = "#ffffff"
    
    $Label41                         = New-Object system.Windows.Forms.Label
    $Label41.text                    = "EnablePMTUDiscovery:"
    $Label41.AutoSize                = $true
    $Label41.visible                 = $true
    $Label41.width                   = 25
    $Label41.height                  = 10
    $Label41.location                = New-Object System.Drawing.Point(19,54)
    $Label41.Font                    = 'Calibri,10'
    $Label41.ForeColor               = "#ffffff"
    
    $Label42                         = New-Object system.Windows.Forms.Label
    $Label42.text                    = "EnablePMTUBHDetect:"
    $Label42.AutoSize                = $true
    $Label42.visible                 = $true
    $Label42.width                   = 25
    $Label42.height                  = 10
    $Label42.location                = New-Object System.Drawing.Point(19,78)
    $Label42.Font                    = 'Calibri,10'
    $Label42.ForeColor               = "#ffffff"
    
    $Label43                         = New-Object system.Windows.Forms.Label
    $Label43.text                    = "TcpMaxDupAcks:"
    $Label43.AutoSize                = $true
    $Label43.visible                 = $true
    $Label43.width                   = 25
    $Label43.height                  = 10
    $Label43.location                = New-Object System.Drawing.Point(19,102)
    $Label43.Font                    = 'Calibri,10'
    $Label43.ForeColor               = "#ffffff"
    
    $Label44                         = New-Object system.Windows.Forms.Label
    $Label44.text                    = "Tcp1323Opts:"
    $Label44.AutoSize                = $true
    $Label44.visible                 = $true
    $Label44.width                   = 25
    $Label44.height                  = 10
    $Label44.location                = New-Object System.Drawing.Point(19,126)
    $Label44.Font                    = 'Calibri,10'
    $Label44.ForeColor               = "#ffffff"
    
    $ComboBox24                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox24.BackColor            = "#171717"
    $ComboBox24.width                = 109
    $ComboBox24.height               = 20
    $ComboBox24.visible              = $true
    @('0','1','2','3') | ForEach-Object {[void] $ComboBox24.Items.Add($_)}
    $ComboBox24.location             = New-Object System.Drawing.Point(174,126)
    $ComboBox24.Font                 = 'Calibri,10'
    $ComboBox24.ForeColor            = "#ffffff"
    
    $ComboBox25                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox25.BackColor            = "#171717"
    $ComboBox25.width                = 109
    $ComboBox25.height               = 20
    $ComboBox25.visible              = $true
    @('2') | ForEach-Object {[void] $ComboBox25.Items.Add($_)}
    $ComboBox25.location             = New-Object System.Drawing.Point(174,102)
    $ComboBox25.Font                 = 'Calibri,10'
    $ComboBox25.ForeColor            = "#ffffff"
    
    $ComboBox26                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox26.BackColor            = "#171717"
    $ComboBox26.width                = 109
    $ComboBox26.height               = 20
    $ComboBox26.visible              = $true
    @('0','1') | ForEach-Object {[void] $ComboBox26.Items.Add($_)}
    $ComboBox26.location             = New-Object System.Drawing.Point(174,78)
    $ComboBox26.Font                 = 'Calibri,10'
    $ComboBox26.ForeColor            = "#ffffff"
    
    $ComboBox27                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox27.BackColor            = "#171717"
    $ComboBox27.width                = 109
    $ComboBox27.height               = 20
    $ComboBox27.visible              = $true
    @('0','1') | ForEach-Object {[void] $ComboBox27.Items.Add($_)}
    $ComboBox27.location             = New-Object System.Drawing.Point(174,54)
    $ComboBox27.Font                 = 'Calibri,10'
    $ComboBox27.ForeColor            = "#ffffff"
    
    $ComboBox28                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox28.BackColor            = "#171717"
    $ComboBox28.width                = 109
    $ComboBox28.height               = 20
    $ComboBox28.visible              = $true
    @('64','32') | ForEach-Object {[void] $ComboBox28.Items.Add($_)}
    $ComboBox28.location             = New-Object System.Drawing.Point(174,30)
    $ComboBox28.Font                 = 'Calibri,10'
    $ComboBox28.ForeColor            = "#ffffff"
    
    $Label46                         = New-Object system.Windows.Forms.Label
    $Label46.text                    = "SynAttackProtect:"
    $Label46.AutoSize                = $true
    $Label46.visible                 = $true
    $Label46.width                   = 25
    $Label46.height                  = 10
    $Label46.location                = New-Object System.Drawing.Point(19,224)
    $Label46.Font                    = 'Calibri,10'
    $Label46.ForeColor               = "#ffffff"
    
    $ComboBox30                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox30.BackColor            = "#171717"
    $ComboBox30.width                = 109
    $ComboBox30.height               = 20
    $ComboBox30.visible              = $true
    @('0','1') | ForEach-Object {[void] $ComboBox30.Items.Add($_)}
    $ComboBox30.location             = New-Object System.Drawing.Point(174,224)
    $ComboBox30.Font                 = 'Calibri,10'
    $ComboBox30.ForeColor            = "#ffffff"
    
    $Label47                         = New-Object system.Windows.Forms.Label
    $Label47.text                    = "TcpTimedWaitDelay:"
    $Label47.AutoSize                = $true
    $Label47.visible                 = $true
    $Label47.width                   = 25
    $Label47.height                  = 10
    $Label47.location                = New-Object System.Drawing.Point(19,200)
    $Label47.Font                    = 'Calibri,10'
    $Label47.ForeColor               = "#ffffff"
    
    $ComboBox31                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox31.BackColor            = "#171717"
    $ComboBox31.width                = 109
    $ComboBox31.height               = 20
    $ComboBox31.visible              = $true
    @('30') | ForEach-Object {[void] $ComboBox31.Items.Add($_)}
    $ComboBox31.location             = New-Object System.Drawing.Point(174,200)
    $ComboBox31.Font                 = 'Calibri,10'
    $ComboBox31.ForeColor            = "#ffffff"
    
    $ComboBox32                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox32.BackColor            = "#171717"
    $ComboBox32.width                = 109
    $ComboBox32.height               = 20
    $ComboBox32.visible              = $true
    @('65535') | ForEach-Object {[void] $ComboBox32.Items.Add($_)}
    $ComboBox32.location             = New-Object System.Drawing.Point(174,176)
    $ComboBox32.Font                 = 'Calibri,10'
    $ComboBox32.ForeColor            = "#ffffff"
    
    $Label48                         = New-Object system.Windows.Forms.Label
    $Label48.text                    = "MaxUserPort:"
    $Label48.AutoSize                = $true
    $Label48.visible                 = $true
    $Label48.width                   = 25
    $Label48.height                  = 10
    $Label48.location                = New-Object System.Drawing.Point(19,176)
    $Label48.Font                    = 'Calibri,10'
    $Label48.ForeColor               = "#ffffff"
    
    $Label49                         = New-Object system.Windows.Forms.Label
    $Label49.text                    = "SackOpts:"
    $Label49.AutoSize                = $true
    $Label49.visible                 = $true
    $Label49.width                   = 25
    $Label49.height                  = 10
    $Label49.location                = New-Object System.Drawing.Point(19,152)
    $Label49.Font                    = 'Calibri,10'
    $Label49.ForeColor               = "#ffffff"
    
    $ComboBox33                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox33.BackColor            = "#171717"
    $ComboBox33.width                = 109
    $ComboBox33.height               = 20
    $ComboBox33.visible              = $true
    @('0','1') | ForEach-Object {[void] $ComboBox33.Items.Add($_)}
    $ComboBox33.location             = New-Object System.Drawing.Point(174,152)
    $ComboBox33.Font                 = 'Calibri,10'
    $ComboBox33.ForeColor            = "#ffffff"
    
    $Groupbox1                       = New-Object system.Windows.Forms.Groupbox
    $Groupbox1.height                = 370
    $Groupbox1.width                 = 322
    $Groupbox1.location              = New-Object System.Drawing.Point(617,20)
    
    $Label45                         = New-Object system.Windows.Forms.Label
    $Label45.text                    = "0 = Timestamps and window scaling are disabled."
    $Label45.AutoSize                = $true
    $Label45.width                   = 25
    $Label45.height                  = 10
    $Label45.location                = New-Object System.Drawing.Point(11,268)
    $Label45.Font                    = 'Calibri,7,style=Italic'
    $Label45.ForeColor               = "#4a4a4a"
    
    $Label50                         = New-Object system.Windows.Forms.Label
    $Label50.text                    = "1 = Window scaling is enabled."
    $Label50.AutoSize                = $true
    $Label50.width                   = 25
    $Label50.height                  = 10
    $Label50.location                = New-Object System.Drawing.Point(11,282)
    $Label50.Font                    = 'Calibri,7,style=Italic'
    $Label50.ForeColor               = "#4a4a4a"
    
    $Label51                         = New-Object system.Windows.Forms.Label
    $Label51.text                    = "2 = Timestamps are enabled. 3 = Timestamps and window scaling are enabled."
    $Label51.AutoSize                = $true
    $Label51.width                   = 25
    $Label51.height                  = 10
    $Label51.location                = New-Object System.Drawing.Point(11,297)
    $Label51.Font                    = 'Calibri,7,style=Italic'
    $Label51.ForeColor               = "#4a4a4a"
    
    $Label52                         = New-Object system.Windows.Forms.Label
    $Label52.text                    = "Tcp1323Opts"
    $Label52.AutoSize                = $true
    $Label52.width                   = 25
    $Label52.height                  = 10
    $Label52.location                = New-Object System.Drawing.Point(11,253)
    $Label52.Font                    = 'Calibri,7,style=Italic'
    $Label52.ForeColor               = "#4a4a4a"
    
    $Label53                         = New-Object system.Windows.Forms.Label
    $Label53.text                    = "Services:"
    $Label53.AutoSize                = $true
    $Label53.width                   = 25
    $Label53.height                  = 10
    $Label53.location                = New-Object System.Drawing.Point(305,495)
    $Label53.Font                    = 'Calibri,12,style=Underline'
    $Label53.ForeColor               = "#4a90e2"
    
    $LabelS                          = New-Object system.Windows.Forms.Label
    $LabelS.text                     = "Superfetch(Sysmain):"
    $LabelS.AutoSize                 = $true
    $LabelS.width                    = 25
    $LabelS.height                   = 10
    $LabelS.location                 = New-Object System.Drawing.Point(305,517)
    $LabelS.Font                     = 'Calibri,10'
    $LabelS.ForeColor                = "#ffffff"
    
    $ComboBox29                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox29.BackColor            = "#171717"
    $ComboBox29.width                = 109
    $ComboBox29.height               = 20
    @('1','2','3','4') | ForEach-Object {[void] $ComboBox29.Items.Add($_)}
    $ComboBox29.location             = New-Object System.Drawing.Point(463,517)
    $ComboBox29.Font                 = 'Calibri,10'
    $ComboBox29.ForeColor            = "#ffffff"
    
    $Label54                         = New-Object system.Windows.Forms.Label
    $Label54.text                    = "USEPLATFORMCLOCK:"
    $Label54.AutoSize                = $true
    $Label54.width                   = 25
    $Label54.height                  = 10
    $Label54.location                = New-Object System.Drawing.Point(301,152)
    $Label54.Font                    = 'Calibri,10'
    $Label54.ForeColor               = "#ffffff"
    
    $ComboBox34                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox34.BackColor            = "#171717"
    $ComboBox34.width                = 109
    $ComboBox34.height               = 20
    @('On','Off') | ForEach-Object {[void] $ComboBox34.Items.Add($_)}
    $ComboBox34.location             = New-Object System.Drawing.Point(459,152)
    $ComboBox34.Font                 = 'Calibri,10'
    $ComboBox34.ForeColor            = "#ffffff"
    
    $ComboBox36                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox36.BackColor            = "#171717"
    $ComboBox36.width                = 109
    $ComboBox36.height               = 20
    @('Default','Enhanced','Legacy') | ForEach-Object {[void] $ComboBox36.Items.Add($_)}
    $ComboBox36.location             = New-Object System.Drawing.Point(459,202)
    $ComboBox36.Font                 = 'Calibri,10'
    $ComboBox36.ForeColor            = "#ffffff"
    
    $Label56                         = New-Object system.Windows.Forms.Label
    $Label56.text                    = "TSCSYNCPOLICY:"
    $Label56.AutoSize                = $true
    $Label56.width                   = 25
    $Label56.height                  = 10
    $Label56.location                = New-Object System.Drawing.Point(301,200)
    $Label56.Font                    = 'Calibri,10'
    $Label56.ForeColor               = "#ffffff"
    
    $ComboBox37                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox37.BackColor            = "#171717"
    $ComboBox37.width                = 109
    $ComboBox37.height               = 20
    @('On','Off') | ForEach-Object {[void] $ComboBox37.Items.Add($_)}
    $ComboBox37.location             = New-Object System.Drawing.Point(459,227)
    $ComboBox37.Font                 = 'Calibri,10'
    $ComboBox37.ForeColor            = "#ffffff"
    
    $Label57                         = New-Object system.Windows.Forms.Label
    $Label57.text                    = "USEFIRMWAREPCISETTING:"
    $Label57.AutoSize                = $true
    $Label57.width                   = 25
    $Label57.height                  = 10
    $Label57.location                = New-Object System.Drawing.Point(301,227)
    $Label57.Font                    = 'Calibri,10'
    $Label57.ForeColor               = "#ffffff"
    
    $Label59                         = New-Object system.Windows.Forms.Label
    $Label59.text                    = "FORCELEGACYPLATFORM:"
    $Label59.AutoSize                = $true
    $Label59.width                   = 25
    $Label59.height                  = 10
    $Label59.location                = New-Object System.Drawing.Point(301,253)
    $Label59.Font                    = 'Calibri,10'
    $Label59.ForeColor               = "#ffffff"
    
    $ComboBox39                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox39.BackColor            = "#171717"
    $ComboBox39.width                = 109
    $ComboBox39.height               = 20
    @('On','Off') | ForEach-Object {[void] $ComboBox39.Items.Add($_)}
    $ComboBox39.location             = New-Object System.Drawing.Point(459,253)
    $ComboBox39.Font                 = 'Calibri,10'
    $ComboBox39.ForeColor            = "#ffffff"
    
    $Label60                         = New-Object system.Windows.Forms.Label
    $Label60.text                    = "X2APICPOLICY:"
    $Label60.AutoSize                = $true
    $Label60.width                   = 25
    $Label60.height                  = 10
    $Label60.location                = New-Object System.Drawing.Point(302,101)
    $Label60.Font                    = 'Calibri,10'
    $Label60.ForeColor               = "#ffffff"
    
    $ComboBox40                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox40.BackColor            = "#171717"
    $ComboBox40.width                = 109
    $ComboBox40.height               = 20
    @('Enable','Disable','Default') | ForEach-Object {[void] $ComboBox40.Items.Add($_)}
    $ComboBox40.location             = New-Object System.Drawing.Point(460,101)
    $ComboBox40.Font                 = 'Calibri,10'
    $ComboBox40.ForeColor            = "#ffffff"
    
    $Label62                         = New-Object system.Windows.Forms.Label
    $Label62.text                    = "USEPLATFORMTICK:"
    $Label62.AutoSize                = $true
    $Label62.width                   = 25
    $Label62.height                  = 10
    $Label62.location                = New-Object System.Drawing.Point(301,176)
    $Label62.Font                    = 'Calibri,10'
    $Label62.ForeColor               = "#ffffff"
    
    $ComboBox42                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox42.BackColor            = "#171717"
    $ComboBox42.width                = 109
    $ComboBox42.height               = 20
    @('On','Off') | ForEach-Object {[void] $ComboBox42.Items.Add($_)}
    $ComboBox42.location             = New-Object System.Drawing.Point(459,176)
    $ComboBox42.Font                 = 'Calibri,10'
    $ComboBox42.ForeColor            = "#ffffff"
    
    $Label58                         = New-Object system.Windows.Forms.Label
    $Label58.text                    = "USELEGACYAPICMODE:"
    $Label58.AutoSize                = $true
    $Label58.width                   = 25
    $Label58.height                  = 10
    $Label58.location                = New-Object System.Drawing.Point(302,77)
    $Label58.Font                    = 'Calibri,10'
    $Label58.ForeColor               = "#ffffff"
    
    $ComboBox38                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox38.BackColor            = "#171717"
    $ComboBox38.width                = 109
    $ComboBox38.height               = 20
    @('On','Off') | ForEach-Object {[void] $ComboBox38.Items.Add($_)}
    $ComboBox38.location             = New-Object System.Drawing.Point(460,77)
    $ComboBox38.Font                 = 'Calibri,10'
    $ComboBox38.ForeColor            = "#ffffff"
    
    $btn_resetbcd                    = New-Object system.Windows.Forms.Button
    $btn_resetbcd.text               = "BCDSETTINGS *DEFAULT*"
    $btn_resetbcd.width              = 266
    $btn_resetbcd.height             = 22
    $btn_resetbcd.location           = New-Object System.Drawing.Point(303,318)
    $btn_resetbcd.Font               = 'Calibri,10'
    $btn_resetbcd.ForeColor          = "#4a90e2"
    
    $Label55                         = New-Object system.Windows.Forms.Label
    $Label55.text                    = "USEPHYSICALDESTINATION:"
    $Label55.AutoSize                = $true
    $Label55.width                   = 25
    $Label55.height                  = 10
    $Label55.location                = New-Object System.Drawing.Point(302,53)
    $Label55.Font                    = 'Calibri,10'
    $Label55.ForeColor               = "#ffffff"
    
    $ComboBox35                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox35.BackColor            = "#171717"
    $ComboBox35.width                = 109
    $ComboBox35.height               = 20
    @('On','Off') | ForEach-Object {[void] $ComboBox35.Items.Add($_)}
    $ComboBox35.location             = New-Object System.Drawing.Point(460,53)
    $ComboBox35.Font                 = 'Calibri,10'
    $ComboBox35.ForeColor            = "#ffffff"
    
    $Label61                         = New-Object system.Windows.Forms.Label
    $Label61.text                    = "DISABLEDYNAMICTICK:"
    $Label61.AutoSize                = $true
    $Label61.width                   = 25
    $Label61.height                  = 10
    $Label61.location                = New-Object System.Drawing.Point(301,280)
    $Label61.Font                    = 'Calibri,10'
    $Label61.ForeColor               = "#ffffff"
    
    $ComboBox41                      = New-Object system.Windows.Forms.ComboBox
    $ComboBox41.BackColor            = "#171717"
    $ComboBox41.width                = 109
    $ComboBox41.height               = 20
    @('On','Off') | ForEach-Object {[void] $ComboBox41.Items.Add($_)}
    $ComboBox41.location             = New-Object System.Drawing.Point(459,279)
    $ComboBox41.Font                 = 'Calibri,10'
    $ComboBox41.ForeColor            = "#ffffff"
    
    $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,$Label61,$ComboBox41))
    $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))
    
    $RefreshValues.Add_Click({  })
    
    Write-Host "St1cky Tweaker 2.00"
    Write-Host "Reading Registry..."
    $ErrorActionPreference = 'silentlycontinue'
    
    #GroupBox_Visibility
    $Groupbox1.visible              = $false
    
    #Write your logic code here
    #SystemProfil
    $ComboBox1.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" -Name "NetworkThrottlingIndex"
    $ComboBox2.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" -Name "SystemResponsiveness"
    $ComboBox3.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "Clock Rate"
    $ComboBox4.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "GPU Priority"
    $ComboBox5.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "Priority"
    $ComboBox6.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "Scheduling Category"
    $ComboBox7.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "SFIO Priority"
    #Memory Management
    $ComboBox8.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "DisablePagingExecutive"
    $ComboBox9.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "LargeSystemCache"
    $ComboBox11.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "PhysicalAddressExtension"
    $ComboBox10.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "SecondLevelDataCache"
    $returnSuperfetchReg             = (Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -Name "EnableSuperfetch")
        if ( $returnSuperfetchReg -eq $null) {
        #New-ItemProperty -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -PropertyType "DWORD" -Name "EnableSuperfetch" -Value "0"
        Write-Host "EnableSuperfetch is not present!"
        }else{
            Write-Host "Superfetch Found Reading..."
            $ComboBox16.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -Name "EnableSuperfetch"
        }
        
    $returnPrefetcherReg             = (Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -Name "EnablePrefetcher")
        if ( $returnPrefetcherReg -eq $null) {
        #New-ItemProperty -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -PropertyType "DWORD" -Name "EnablePrefetcher" -Value "0"
        Write-Host "EnablePrefetcher is not present!"
        }else{
            Write-Host "EnablePrefetcher Found Reading..."
            $ComboBox14.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -Name "EnablePrefetcher"
        }
    
    $returnEnableBoottraceReg         = (Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -Name "EnableBoottrace")
        if ( $returnEnableBoottraceReg -eq $null) {
        #New-ItemProperty -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -PropertyType "DWORD"-Name "EnableBoottrace" -Value "0"
        Write-Host "EnableBoottrace is not present!"
        }else{
            Write-Host "EnableBoottrace Found Reading..."
            $ComboBox15.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -Name "EnableBoottrace"
        }
    
    $ComboBox12.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl" -Name "ConvertibleSlateMode"
    $ComboBox13.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl" -Name "Win32PrioritySeparation"
    $ComboBox18.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "FeatureSettingsOverride"
    $ComboBox17.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "FeatureSettingsOverrideMask"
    $ComboBox19.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" -Name "Class"
    $ComboBox20.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" -Name "DnsPriority"
    $ComboBox21.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" -Name "HostsPriority"
    $ComboBox22.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" -Name "LocalPriority"
    $ComboBox23.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" -Name "NetbtPriority"
    $ComboBox28.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "DefaultTTL"
    $ComboBox27.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "EnablePMTUDiscovery"
    $ComboBox26.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "EnablePMTUBHDetect"
    $ComboBox25.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "TcpMaxDupAcks"
    $ComboBox24.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "Tcp1323Opts"
    $ComboBox33.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "SackOpts"
    $ComboBox32.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "MaxUserPort"
    $ComboBox31.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "TcpTimedWaitDelay"
    $ComboBox30.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "SynAttackProtect"
    $ComboBox29.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Sysmain" -Name "Start" 
    
    #Button Refresh Values
    $RefreshValues.Add_Click(
        {  
            $ErrorActionPreference = 'silentlycontinue'
            Write-Host "Reading Registry Values..."
            $ComboBox1.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" -Name "NetworkThrottlingIndex"
            $ComboBox2.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" -Name "SystemResponsiveness"
            $ComboBox3.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "Clock Rate"
            $ComboBox4.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "GPU Priority"
            $ComboBox5.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "Priority"
            $ComboBox6.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "Scheduling Category"
            $ComboBox7.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "SFIO Priority"
            $ComboBox8.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "DisablePagingExecutive"
            $ComboBox9.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "LargeSystemCache"
            $ComboBox11.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "PhysicalAddressExtension"
            $ComboBox10.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "SecondLevelDataCache"
            $ComboBox16.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -Name "EnableSuperfetch"
            $ComboBox14.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -Name "EnablePrefetcher"
            $ComboBox15.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" -Name "EnableBoottrace"
            $ComboBox12.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl" -Name "ConvertibleSlateMode"
            $ComboBox13.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl" -Name "Win32PrioritySeparation"
            $ComboBox18.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "FeatureSettingsOverride"
            $ComboBox17.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "FeatureSettingsOverrideMask"
            $ComboBox19.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" -Name "Class"
            $ComboBox20.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" -Name "DnsPriority"
            $ComboBox21.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" -Name "HostsPriority"
            $ComboBox22.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" -Name "LocalPriority"
            $ComboBox23.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" -Name "NetbtPriority"
            $ComboBox28.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "DefaultTTL"
            $ComboBox27.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "EnablePMTUDiscovery"
            $ComboBox26.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "EnablePMTUBHDetect"
            $ComboBox25.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "TcpMaxDupAcks"
            $ComboBox24.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "Tcp1323Opts"
            $ComboBox33.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "SackOpts"
            $ComboBox32.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "MaxUserPort"
            $ComboBox31.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "TcpTimedWaitDelay"
            $ComboBox30.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "SynAttackProtect"
            $ComboBox29.Text 				 = Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Sysmain" -Name "Start"
        }
    )
    
    
    function Setnew([string]$path, [string]$key, [string]$Value) {  
    $oldValue = (Get-ItemProperty -path $path).$key  
    Set-ItemProperty -path $path -name $key -Type DWORD -Value $Value  
    $newValue = (Get-ItemProperty -path $path).$key  
    $data =  "$path\$key=$oldValue"   
    Add-Content $LogFileName $data  
    Write-Output "Value for $path\$key changed from $oldValue to $newValue"  
    }  
    
    function SetSZ([string]$path, [string]$key, [string]$Value) {  
    $oldValue = (Get-ItemProperty -path $path).$key  
    Set-ItemProperty -path $path -name $key -Type STRING -Value $Value  
    $newValue = (Get-ItemProperty -path $path).$key  
    $data =  "$path\$key=$oldValue"   
    Add-Content $LogFileName $data  
    Write-Output "Value for $path\$key changed from $oldValue to $newValue"  
    }
    
    #SetProperty "HKLM:\System\CurrentControlSet\Control\Session Manager\Memory Management" "DisablePagingExecutive" 1  
    # Set SystemPages to 0xFFFFFFFF  
    # Maximize system pages. The system creates the largest number of page table entries possible within physical memory.   
    # The system monitors and adjusts this value dynamically when the configuration changes.  
    #SetProperty "HKLM:\System\CurrentControlSet\Control\Session Manager\Memory Management" "SystemPages" 0xFFFFFFFF  
    # HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters  
    # ======  
    #$path = "HKLM:\System\CurrentControlSet\Services\LanmanServer\Parameters"  
    #$returnValue = (Get-ItemProperty -path $path).IRPStackSize  
    #if ( $returnValue -eq $null) {  
    #SetProperty $path "IRPStackSize" 0x20 # IRPStackSize -> +10 (Use DWORD 0x20 (32) if not present)  
    #}else{  
    #$returnValue = $returnValue + 1  
    #SetProperty $path "IRPStackSize" $returnValue  
    #}  
    
    #Button Advanced
    $btn_adv.Add_Click(
        {
            $btn_adv.ForeColor               = "#8B572A"
            $Groupbox1.visible              = $true
        }
    )
    
    
    
    #BUTTON BCDSETTINGS DEFAULT
    $btn_resetbcd.Add_Click(
        {
            Write-Host "REMOVING BCDSETTINGS TO DEFAULT!"
            cmd /c BCDEDIT /DELETEVALUE X2APICPOLICY
            cmd /c BCDEDIT /DELETEVALUE USEPLATFORMCLOCK
            cmd /c BCDEDIT /DELETEVALUE USELEGACYAPICMODE
            cmd /c BCDEDIT /DELETEVALUE TSCSYNCPOLICY
            cmd /c BCDEDIT /DELETEVALUE FORCELEGACYPLATFORM
            cmd /c BCDEDIT /DELETEVALUE USEPLATFORMTICK
            cmd /c BCDEDIT /DELETEVALUE USEFIRMWAREPCISETTINGS
            cmd /c BCDEDIT /DELETEVALUE USEPHYSICALDESTINATION
            cmd /c BCDEDIT /DELETEVALUE DISABLEDYNAMICTICK
            Write-Host "BCDSETTINGS ARE DEFAULT NOW!"
            
            
        }
    )
    
    #Button Apply
    $btn_apply.Add_Click(
        {
            $ErrorActionPreference = 'silentlycontinue'
            $LogFileName="C:\St1ckyTweaker.log"  
            $LogTime=([System.DateTime]::Now).ToString("dd-MM-yyyy hh:mm:ss")   
            Add-Content $LogFileName "*********** Settings changed at $LogTime ************"  
            Write-Host "Logfile Enabled!"
            
            Write-Host "Writing..."
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" "NetworkThrottlingIndex" $ComboBox1.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" "SystemResponsiveness" $ComboBox2.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" "Clock Rate" $ComboBox3.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" "GPU Priority" $ComboBox4.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" "Priority" $ComboBox5.Text
            SetSZ -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" "Scheduling Category" $ComboBox6.Text
            SetSZ -Path "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" "SFIO Priority" $ComboBox7.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" "DisablePagingExecutive" $ComboBox8.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" "LargeSystemCache" $ComboBox9.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" "PhysicalAddressExtension" $ComboBox11.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" "SecondLevelDataCache" $ComboBox10.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" "EnableSuperfetch" $ComboBox16.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" "EnablePrefetcher" $ComboBox14.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" "EnableBoottrace" $ComboBox15.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl" "ConvertibleSlateMode" $ComboBox12.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl" "Win32PrioritySeparation" $ComboBox13.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" "Class" $ComboBox19.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" "DnsPriority" $ComboBox20.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" "HostsPriority" $ComboBox21.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" "LocalPriority" $ComboBox22.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" "NetbtPriority" $ComboBox23.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Sysmain" "Start" $ComboBox29.Text
    
    
    #Button Apply - BCEDIT SETTINGS
    $X2APICPOLICYVALUE = $ComboBox40.Text
    	if ($X2APICPOLICYVALUE -eq $null)
    	{
    		Write-Host "X2APICPOLICY Skip"
    	}else{	
    		Write-Host ("X2APICPOLICY $X2APICPOLICYVALUE") 
    		cmd /c "BCDEDIT /SET X2APICPOLICY $X2APICPOLICYVALUE"
        }
        
    $USEPLATFORMCLOCKVALUE = $ComboBox34.Text
    	if ($USEPLATFORMCLOCKVALUE -eq $null)
    	{
    		Write-Host "USEPLATFORMCLOCK Skip"
    	}else{	
    		Write-Host ("USEPLATFORMCLOCK $USEPLATFORMCLOCKVALUE") 
    		cmd /c "BCDEDIT /SET USEPLATFORMCLOCK $USEPLATFORMCLOCKVALUE"
        }
        
    $USELEGACYAPICMODEVALUE = $ComboBox38.Text
    	if ($USELEGACYAPICMODEVALUE -eq $null)
    	{
    		Write-Host "USELEGACYAPICMODE Skip"
    	}else{	
    		Write-Host ("USELEGACYAPICMODE $USELEGACYAPICMODEVALUE") 
    		cmd /c "BCDEDIT /SET USELEGACYAPICMODE $USELEGACYAPICMODEVALUE"
        }
        
    $TSCSYNCPOLICYVALUE = $ComboBox36.Text
    	if ($TSCSYNCPOLICYVALUE -eq $null)
    	{
    		Write-Host "TSCSYNCPOLICY Skip"
    	}else{	
    		Write-Host ("TSCSYNCPOLICY $TSCSYNCPOLICYVALUE") 
    		cmd /c "BCDEDIT /SET TSCSYNCPOLICY $TSCSYNCPOLICYVALUE"
        }
        
    $FORCELEGACYPLATFORMVALUE = $ComboBox39.Text
    	if ($TSCSYNCPOLICYVALUE -eq $null)
    	{
    		Write-Host "FORCELEGACYPLATFORM Skip"
    	}else{	
    		Write-Host ("FORCELEGACYPLATFORM $FORCELEGACYPLATFORMVALUE") 
    		cmd /c "BCDEDIT /SET FORCELEGACYPLATFORM $FORCELEGACYPLATFORMVALUE"
        }
        
    $USEPLATFORMTICKVALUE = $ComboBox42.Text
    	if ($USEPLATFORMTICKVALUE -eq $null)
    	{
    		Write-Host "USEPLATFORMTICK Skip"
    	}else{	
    		Write-Host ("USEPLATFORMTICK $USEPLATFORMTICKVALUE") 
    		cmd /c "BCDEDIT /SET USEPLATFORMTICK $USEPLATFORMTICKVALUE"
        }
        
    $USEFIRMWAREPCISETTINGSVALUE = $ComboBox37.Text
    	if ($USEFIRMWAREPCISETTINGSVALUE -eq $null)
    	{
    		Write-Host "USEFIRMWAREPCISETTINGS Skip"
    	}else{	
    		Write-Host ("USEFIRMWAREPCISETTINGS $USEFIRMWAREPCISETTINGSVALUE") 
    		cmd /c "BCDEDIT /SET USEFIRMWAREPCISETTINGS $USEFIRMWAREPCISETTINGSVALUE"
        }    
        
    $USEPHYSICALDESTINATIONVALUE = $ComboBox35.Text
    	if ($USEPHYSICALDESTINATIONVALUE -eq $null)
    	{
    		Write-Host "USEPHYSICALDESTINATION Skip"
    	}else{	
    		Write-Host ("USEPHYSICALDESTINATION $USEPHYSICALDESTINATIONVALUE") 
    		cmd /c "BCDEDIT /SET USEPHYSICALDESTINATION $USEPHYSICALDESTINATIONVALUE"
        }    
    
    $DISABLEDYNAMICTICKVALUE = $ComboBox41.Text
    	if ($USEPHYSICALDESTINATIONVALUE -eq $null)
    	{
    		Write-Host "DISABLEDYNAMICTICK Skip"
    	}else{	
    		Write-Host ("DISABLEDYNAMICTICK $DISABLEDYNAMICTICKVALUE") 
    		cmd /c "BCDEDIT /SET DISABLEDYNAMICTICK $DISABLEDYNAMICTICKVALUE"
        }    
            
        
        
        
        
        
        
        $returnFeatureSettingsOverrideReg             = (Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "FeatureSettingsOverride" -erroraction 'silentlycontinue')
            if ( $returnFeatureSettingsOverrideReg -eq $null) {
            $ComboBox18.Text = ""
            Write-Host "FeatureSettingsOverride is not present."
            }else{
            Write-Host "FeatureSettingsOverride Found, Writing new Value..."
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" "FeatureSettingsOverride" $ComboBox18.Text
            }
    
        $returnFeatureSettingsOverrideMask             = (Get-ItemPropertyValue -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "FeatureSettingsOverride" -erroraction 'silentlycontinue')
            if ( $returnFeatureSettingsOverrideMask -eq $null) {
            $ComboBox17.Text = ""
            Write-Host "FeatureSettingsOverrideMask is not present."
            }else{
            Write-Host "FeatureSettingsOverride Found, Writing new Value..."
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" "FeatureSettingsOverrideMask" $ComboBox17.Text
            }
        
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" "DefaultTTL" $ComboBox28.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" "EnablePMTUDiscovery" $ComboBox27.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" "EnablePMTUBHDetect" $ComboBox26.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" "TcpMaxDupAcks" $ComboBox25.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" "Tcp1323Opts" $ComboBox24.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" "SackOpts" $ComboBox33.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" "MaxUserPort" $ComboBox32.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" "TcpTimedWaitDelay" $ComboBox31.Text
            Setnew -Path "REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" "SynAttackProtect" $ComboBox30.Text
            }
    )
    
    
    
    
    [void]$Form.ShowDialog()
    Last edited by st1cky; 08-29-19 at 10:03 AM. Reason: Screenshot, Function DISABLEDYNAMICTICK added,

  2. #2
    Administrator Philip's Avatar
    Join Date
    May 1999
    Location
    Jacksonville, Florida, United States
    Posts
    10,344
    Blog Entries
    6
    Nice work, thanks for sharing!

  3. #3
    Quote Originally Posted by Philip View Post
    Nice work, thanks for sharing!
    Thank you, Phil

  4. #4
    SG Wizard Ashdaw's Avatar
    Join Date
    Dec 2000
    Location
    Smithfield, New South Wales, Australia, Australia
    Posts
    973
    Looks very promising st1cky.
    Main Computer:
    GA97X G3
    i7 4790K
    GTX960
    32gb Ram
    1TB Samsung 860 SSD
    NZXT Case

  5. #5
    Quote Originally Posted by Ashdaw View Post
    Looks very promising st1cky.
    Hey, Thanks. I will Update it soon, i found a Bug with Settings ( Critical One ) what will set "0" Zeros. After Apply and refresh.

    Im currently working on Windows 10 App Remover. And Driver Remover ( Windows Drivers what running in the Background ).





    Greetings St1cky

Similar Threads

  1. Applied tweaks, now comp acting like a "tweaker"
    By tmsgabber in forum Broadband Tweaks Help
    Replies: 1
    Last Post: 12-17-05, 07:14 PM
  2. Performance Tweaks
    By congocrew4 in forum Feedback, Suggestions & Questions
    Replies: 1
    Last Post: 04-05-00, 02:31 PM
  3. performance tweaks
    By congocrew4 in forum Feedback, Suggestions & Questions
    Replies: 0
    Last Post: 04-05-00, 12:26 AM
  4. PERFORMANCE TWEAKS
    By congocrew4 in forum Feedback, Suggestions & Questions
    Replies: 1
    Last Post: 04-05-00, 12:10 AM
  5. PERFORMANCE TWEAKS
    By congocrew4 in forum Feedback, Suggestions & Questions
    Replies: 0
    Last Post: 04-05-00, 12:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •