Windows is a desktop Operating Systems developed by Microsoft. For the past three decades, Windows has been the most popular operating system for personal computers.

Programs

ProgramsDescription
OpenRGBOpen source RGB lighting control that doesn’t depend on manufacturer software
NVcleanstallInstall NVIDIA Drivers
DebloaterRemove all unnecesary windows applications
AutohotkeyHotkey software
HotkeyDHotkey software
Trakt-scrobblerScrobbler for trakt.tv
VIAKeyboard mapping
VialKeyboard mapping
QMK FimewareKeyboard fimewares
PowerToysSystem utilities
O&O ShutUpAntySpy
SumatraPDFPDF Viewer
CoreTempMonitor CPU
OpenHardwareMonitor tempoerature sensors
PowerUPInformation about GPU
HandbrakerVideo transcoder
ShareXScreen capture
DevToysAn offline app that helps developers in daily tasks
ModernFlyoutsFluent design system for windows
FilesBuilding the best file manager experience for Windows
KeepassXCOpen-source password manager
FanControlHighly customizable fan controlling software for Windows|
mRemoteNGOpen source, tabbed, multi-protocol, remote connections manager
glazewmGlazeWM is a tiling window manager for Windows inspired by i3wm
TranslucentTBA lightweight utility that makes the Windows taskbar translucent/transparent
ZebarZebar is a tool for creating customizable and cross-platform taskbars
Flow.LauncherQuick file search & app launcher for Windows with community-made plugins
ExplorerPatcherThis project aims to enhance the working environment on Windows
KomorebiA tiling window manager for Windows
MagicPods-WindowsAdd little magic to your Airpods
mac-keyboard-behavior-in-windowsEmulates Mac keyboard shortcuts and modifier key behavior on Windows

Startup Programs

  • Open execute window Win+R:
# delete all unnecesary
shell:startup
# delete all unnecesary
shell:common startup
  • Open regedit and delete all unnecessary:
# For User
Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
# For Local Machine
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

Open Task scheduler and DISABLE all unnecessary.

  • Disable all Edge.
  • Disable all Nvidia reports and updates in background.

OpenRGB

E:\Programs\OpenRGB\OpenRGB.exe --gui --startminimized --server
  • Configuration folder
C:\Users\<user>\AppData\Roaming\OpenRGB

Liquidctl

pip install liquidctl pywin32 psutil
liquidctl list 
liquidctl initialize all 
liquidctl status
  • Control Fans (NZXT H500i)
  • fan1 - 2 frontal fans
  • fan2 - 1 back fan
  • fan3 - 1 top fan
liquidctl --match "Smart Device" set fan1 speed 40
liquidctl --match "Smart Device" set fan2 speed 40
liquidctl --match "Smart Device" set fan3 speed 40

FanControl

Get-ChildItem "C:\Program Files\FanControl\Plugins\" -Recurse -File | ForEach-Object {
    Unblock-File -Path $_.FullName -ErrorAction SilentlyContinue
}
  • Configuration folder
C:\Program Files\FanControl\Configurations

Variables

  • System variables for configure program, appdata and user profile.
# Env variables
%PROGRAMFILES%
%APPDATA%
%LocalAppData%
%USERPROFILE%

Folders

User config is in C:\Users\Borja, for example .ssh

  • Hosts
C:\Windows\System32\drivers\etc
  • Tmp
C:\Users\Borja\AppData\Local\Temp
  • SSH
C:\Users\Borja\.ssh

Commands

  • List which process is listening in a port
Get-Process -Id (Get-NetTCPConnection -LocalPort 6443).OwningProcess
  • List ports
netstat -abn
  • Kill process
Stop-Process -Id 30240 -Force

Install Modules

Install-Module -Name Terminal-Icons -Repository PSGallery
Install-Module -Name PSReadLine -Force
Install-Module -Name PSFzf -Force
Install-Module -Name z -Force

Powershell

Personalize Windows Terminal.

  1. Install windows terminal.
  2. Install Powershell from Windows Store.
  3. Install Nerd Fonts for active Icons in particular Inconsolata from the releases and select Inconsolata Regular Nerd Font Complete Windows Compatible.ttf.
  4. Change color scheme to Base 16 Ocean.
  5. Install Startship for custom prompt.
  6. Edit Powershell profile with VScode.
code $PROFILE
. $env:USERPROFILE\.config\powershell\profile.ps1
  1. Create profile.ps1 file in .config for custom configuration.
  2. Install Terminal Icons.
  3. Install PSReadLine.
  4. Install z Directory Jumper.
  5. Install fzf y PSfzf.

How to know which version of Powershell

$PSVersionTable

Package manager

A package manager or package-management system is a collection of software tools that automates the process of installing, upgrading, configuring, and removing computer programs for a computer in a consistent manner. A package manager deals with packages, distributions of software and data in archive files.

Key

For show windows key open regedit and see the key: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\SoftwareProtectionPlatform

Drivers

Uninstall all GPU drivers

WSL

# Link .ssh folder
sudo ln -s /mnt/c/Users/<user>/.ssh ~/.ssh
# Link .kube folder
sudo ln -s /mnt/c/Users/<user>/.kube ~/.kube

Network

# Add Port Forwarding
netsh interface portproxy add v4tov4 listenport=$port connectport=$port connectaddress=$remoteaddr
# Add Firewall Rule
netsh advfirewall firewall add rule name=$port dir=in action=allow protocol=TCP localport=$port
# Delete PortForwarding
netsh interface portproxy delete v4tov4 listenport=$port
# Delete Firewall Rule
netsh advfirewall firewall delete rule name=$port
# Show PortForwardings
netsh interface portproxy show v4tov4
tracert 8.8.8.8
  • Restart resolv.conf
sudo rm /etc/resolv.conf
sudo bash -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf'
sudo bash -c 'echo "[network]" > /etc/wsl.conf'
sudo bash -c 'echo "generateResolvConf = false" >> /etc/wsl.conf'
sudo chattr +i /etc/resolv.conf
  • Test connectivity between windows and WSL
# start server in WSL
python -m http.server --bind 0.0.0.0
# attack in windows
curl localhost:8000

Modify in regedit:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\NatNetwork Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\NatGatewayIpAddress
# Current IP
Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss

Errors

  • Windows doesn’t respond.
    1. Open terminal in Admin Mode.
    2. Enter this commands
taskkill /f /im explorer.exe
start explorer.exe