KevFin

KevFin's CMDs

Jun 17th, 2025 (edited)
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.15 KB | Fixit | 0 0
  1. MS OS Commands
  2. Windows Integrity
  3. dism /online /cleanup-image /scanhealth
  4. dism /online /cleanup-image /checkhealth
  5. dism /online /cleanup-image /restorehealth
  6.  
  7. sfc /scannow
  8.  
  9. Drive Integrity
  10. chkdsk ?: /f /r /x
  11.  
  12. Network Integrity
  13. ipconfig /release
  14. ipconfig /flushdns
  15. ipconfig /renew
  16. ipconfig /registerdns
  17.  
  18. netsh int ip reset
  19. netsh winsock reset
  20.  
  21. Classic Explorer Context Menu
  22. reg add "HKEY_CURRENT_USER\SOFTWARE\CLASSES\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /ve /f
  23. taskkill /f /im explorer.exe
  24. start explorer.exe
  25.  
  26. MS Powershell Commands
  27. Windows Optimization
  28. iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/debloat'))
  29.  
  30. irm "https://christitus.com/win" | iex
  31.  
  32. # List all possible power config GUIDs in Windows
  33. # Run: this-script.ps1 | Out-File powercfg.ps1
  34. # Then edit and run powercfg.ps1
  35. # (c) Pekka "raspi" Järvinen 2017
  36. # Modified by andmade 2019
  37.  
  38. $powerSettingTable = Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSetting
  39. $powerSettingInSubgroubTable = Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSettingInSubgroup
  40.  
  41. Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSettingCapabilities | ForEach-Object {
  42. $tmp = $_.ManagedElement
  43. $tmp = $tmp.Remove(0, $tmp.LastIndexOf('{') + 1)
  44. $tmp = $tmp.Remove($tmp.LastIndexOf('}'))
  45.  
  46. $guid = $tmp
  47.  
  48. $s = ($powerSettingInSubgroubTable | Where-Object PartComponent -Match "$guid")
  49.  
  50. if (!$s) {
  51. return
  52. }
  53.  
  54. $tmp = $s.GroupComponent
  55. $tmp = $tmp.Remove(0, $tmp.LastIndexOf('{') + 1)
  56. $tmp = $tmp.Remove($tmp.LastIndexOf('}'))
  57.  
  58. $groupguid = $tmp
  59.  
  60. $s = ($powerSettingTable | Where-Object InstanceID -Match "$guid")
  61.  
  62. $descr = [string]::Format("# {0}", $s.ElementName)
  63. $runcfg = [string]::Format("Set-ItemProperty -Path HKLM:\SYSTEM\ControlSet001\Control\Power\PowerSettings\{0}\{1} -Name Attributes -Value 2", $groupguid, $guid)
  64.  
  65. Write-Output $descr
  66. Write-Output $runcfg
  67. Write-Output ""
  68. Invoke-Expression $runcfg
  69. }
  70.  
  71. Registry Tweaks (.reg)
  72.  
  73. Windows Registry Editor Version 5.00
  74.  
  75. ;Edited by KevFin v1.2 16.06.2025
  76.  
  77. [HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Copy To]
  78. @="{C2FBB630-2971-11D1-A18C-00C04FD75D13}"
  79.  
  80. [HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Move To]
  81. @="{C2FBB631-2971-11D1-A18C-00C04FD75D13}"
  82.  
  83. [HKEY_CURRENT_USER\Control Panel\Desktop]
  84. "AutoEndTasks"="1"
  85. "HungAppTimeout"="1000"
  86. "MenuShowDelay"="0"
  87. "WaitToKillAppTimeout"="2000"
  88. "LowLevelHooksTimeout"="1000"
  89.  
  90. [HKEY_CURRENT_USER\Control Panel\Mouse]
  91. "MouseHoverTime"="10"
  92.  
  93. [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
  94. "NoLowDiskSpaceChecks"=dword:00000001
  95. "LinkResolveIgnoreLinkInfo"=dword:00000001
  96. "NoResolveSearch"=dword:00000001
  97. "NoResolveTrack"=dword:00000001
  98. "NoInternetOpenWith"=dword:00000001
  99.  
  100. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control]
  101. "WaitToKillServiceTimeout"="2000"
  102.  
  103. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching]
  104.  
  105. "SearchOrderConfig"=dword:00000000
  106.  
  107. [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Serialize]
  108.  
  109. "StartupDelayInMSec"=dword:00000000
  110.  
  111. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]
  112.  
  113. "HiberBootEnabled"=dword:00000000
  114.  
  115. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power]
  116.  
  117. "HibernateEnabled"=dword:00000000
  118.  
  119. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
  120.  
  121. "EnablePrefetcher"=dword:00000000
  122.  
  123. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile]
  124.  
  125. "NetworkThrottlingIndex"=dword:ffffffff
  126.  
  127. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile]
  128.  
  129. "SystemResponsiveness"=dword:00000000
  130.  
  131. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\config]
  132.  
  133. "AutoConnectAllowedOEM"=dword:00000000
  134.  
  135. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lfsvc\Service\Configuration]
  136.  
  137. "Status"=dword:00000000
  138.  
  139. [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search]
  140.  
  141. "AllowCortana"=dword:00000000
  142.  
  143. [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection]
  144.  
  145. "DoNotShowFeedbackNotifications"=dword:00000001
  146.  
  147. [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppCompat]
  148.  
  149. "DisableUAR"=dword:00000001
  150.  
  151. [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Inventory]
  152.  
  153. "EnableInventory"=dword:00000000
  154.  
  155. [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppCompat]
  156.  
  157. "AITEnable"=dword:00000000
  158.  
  159. [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\SQMClient\Windows]
  160.  
  161. "CEIPEnable"=dword:00000000
  162.  
  163. [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection]
  164.  
  165. "AllowTelemetry"=dword:00000000
  166.  
  167. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DiagTrack]
  168.  
  169. "Start"=dword:00000004
  170.  
  171. [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo]
  172.  
  173. "Enabled"=dword:00000000
  174.  
  175. [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Siuf\Rules]
  176.  
  177. "NumberOfSIUFInPeriod"=dword:00000000
  178.  
  179. [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Privacy]
  180.  
  181. "TailoredExperiencesWithDiagnosticDataEnabled"=dword:00000000
  182.  
  183. [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System]
  184.  
  185. "UploadUserActivities"=dword:00000000
  186.  
  187. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}]
  188.  
  189. "SensorPermissionState"=dword:00000000
  190.  
  191. [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]
  192.  
  193. "MetricsReportingEnabled"=dword:00000000
  194.  
  195. [HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications]
  196.  
  197. "NoTileApplicationNotification"=dword:00000001
  198.  
  199. [HKEY_CURRENT_USER\Software\Microsoft\GameBar]
  200.  
  201. "AllowAutoGameMode"=dword:00000000
  202. "AutoGameModeEnabled"=dword:00000000
  203.  
  204. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\Maintenance]
  205.  
  206. "MaintenanceDisabled"=dword:00000001
  207.  
  208. [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\GameDVR]
  209.  
  210. "AppCaptureEnabled"=dword:00000000
  211. "GameDVR_Enabled"=dword:00000000
Advertisement
Add Comment
Please, Sign In to add comment