Skip to content

Instantly share code, notes, and snippets.

@gquittet
Last active January 4, 2023 06:37
Show Gist options
  • Save gquittet/4a59ad3a157085e479e6e37b1177ebef to your computer and use it in GitHub Desktop.
Save gquittet/4a59ad3a157085e479e6e37b1177ebef to your computer and use it in GitHub Desktop.
Windows Install Tips

Windows Install tips

SSD optimizations

Indexing

Service

  1. Open services.msc
  2. Search Windows Search
  3. Click on it.
  4. Disable it.
  5. Stop it.

You can do it with a Administrator console:

sc stop wsearch -and sc config wsearch start=disabled

Disable file indexing

  1. Open explorer
  2. Right click on the C: drive
  3. Uncheck "Allow files on this drive to have contents indexed..."

Disable Superfetch (also called prefetch)

Superfetch is a service to load file on RAM to speed up because HDD is slow.
On SSD, we can disable it because the gain of speed is not relevant.
To disable it, you need to disable the service, edit and create some regedit keys.

Service

  1. Go to services.msc.
  2. Search Superfetch or SysMain (It's the same service. The name depends of your Windows language).
  3. Click on it.
  4. Disable it.
  5. Stop it.

RegEdit

  1. Open regedit.
  2. Go to HKEY_LOCAL_MACHINE -> SYSTEM -> CurrentControlSet -> Control -> Session Manager -> MemoryManagement -> PrefetchParameters
  3. Create or edit EnablePrefetcher REG_DWORD to 0.
  4. Create or edit EnableSuperfetch REG_DWORD to 0.

Performance Improvement

Disable transparency

Settings, choose Personalization > Colors, scroll down to “Transparency effects” and move the slider to Off.

Turn on automated Windows maintenance

Run the Control Panel app and select System and Security > Security and Maintenance. In the Maintenance section, under Automatic Maintenance, click “Start maintenance” if you want it to run now. To make sure that it runs every day, click “Change maintenance settings,” and from the screen that appears, select the time you’d like maintenance to run, and check the box next to “Allow scheduled maintenance to wake up my computer at the scheduled time.” Then click OK.

(Thinkpad Only)

  1. Install TPFanControl : https://sourceforge.net/projects/tp4xfancontrol/
  2. Download the latest fork: https://github.com/Shuzhengz/TPFanCtrl2
  3. Rename fancontrol.exe to TPFanControl.exe
  4. Replace the original exe and ini files with the new ones
  5. Edit the config
  6. Find NoExtSensor and set it to 1
  7. Find Level= and replace the default configuration with this one:
Level=50 0
Level=60 0
Level=70 0
Level=80 0
Level=85 3
Level=90 128

With this config, your laptop will be quiet and the 128 is to let your BIOS handle hot temperatures.

To start it automatically:

  1. Press WIN+r -> type shell:startup -> hit enter
  2. Copy the TPFanControl link from Start Menu into this folder
  3. Go to Settings -> System -> Notifications -> Scroll down and disable its notifications because it is annoying when it starts.
  4. Enjoy ❤

Power profile

Create a custom power profile with these options:

  • Internet Explorer - JavaScript Timer:
    • Battery: Maximum Power Saving
    • AC: Maximum Performance
  • Wireless Adapter Saving
    • Battery: Medium Power Saving
    • AC: Maximum Performance
  • Intel(R) Graphics Settings: use Balanced (équilibré) mode for both AC and Battery.
  • PCI Express: Moderate power saving
  • Processor Management
    • Minimum: 5% for both
    • Cooling: passive for both
    • Maximum: 90% for both
  • Multimedia
    • Playback
      • Battery: Power saving
      • AC: Performance
    • Playing: balanced for both

Disable Game Mode

To turn it off, go to Settings > Gaming > Game Mode and move the Game Mode slider to Off.

After you do that, click the Xbox Game Bar category on the left hand side of the screen, and on the screen you come to, turn the slider at the top of the screen to Off.

Shut off Windows tips and tricks

To do so, click the Start button, select the Settings icon and then go to System > Notifications & actions. Scroll down to the Notifications section and uncheck the box marked “Get tips, tricks, and suggestions as you use Windows.”

Remove suggestions from start menu

Press Win+i, go to Personalization -> Start -> toggle off Show suggestions

Antivirus

Exclude dev and scoop folder from Windows Defender.

Disable Cortana

  1. Open regedit
  2. Go to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\
  3. Create a Windows Search folder inside Windows
  4. In Windows Search folder, create a DWORD (32-bit) Value called AllowCortana and set it to 0.

Disable automatic update

  1. Open regedit
  2. Go to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
  3. Create a DWORD (32-bit) Value called ScheduledInstallTime and set it to 3.
  4. Create a DWORD (32-bit) Value called AUOptions and set it to 2.
  5. Create a DWORD (32-bit) Value called NoAutoUpdate and set it to 1.
  6. Create a DWORD (32-bit) Value called ScheduledInstallDay and set it to 0.
  7. Create a DWORD (32-bit) Value called ScheduledInstallEveryWeek and set it to 0.

Disable hibernation

Open a CMD as Administrator and type: powercfg.exe /hibernate off

Scoop

Installation

Set-ExecutionPolicy RemoteSigned -scope CurrentUser
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')

Software

scoop bucket add extras java

In the below list don't install openssh because Windows 10 or higher includes this build of OpenSSH in the system itself, hence it is recommended to use the system OpenSSH there.

Read command result because some of them require to run commands after the installation.

scoop install aria2
sudo scoop install 7zip git
scoop install curl grep sed less touch sudo
scoop install appbuster revouninstaller shutup10
scoop install notepadplusplus powertoys
scoop install keepassxc qbittorrent vlc
scoop install discord signal
scoop install nodejs-lts nvm python rustup
scoop install obs-studio handbrake

scoop install openjdk android-sdk obs-studio putty teamviewer

Privacy

Download my ooshutup10.cfg gist, import it in OOShutUp10 and restart your laptop.

Remove useless packages

Get-AppxPackage *microsoft.windowsmaps* | Remove-AppxPackage
Get-AppxPackage *microsoft.windowsfeedbackhub* | Remove-AppxPackage

Issues

TeamViewer

Unable to save the connection.

  • Edit ~/scoop/apps/teamviewer/current/teamviewer.ini
  • Change nosave=1 to nosave=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment