Skip to content

Instantly share code, notes, and snippets.

@fredjoseph
Last active June 28, 2022 12:22
Show Gist options
  • Select an option

  • Save fredjoseph/fdacd1e88c57e8b44829ae3ace521d0b to your computer and use it in GitHub Desktop.

Select an option

Save fredjoseph/fdacd1e88c57e8b44829ae3ace521d0b to your computer and use it in GitHub Desktop.
Windows 10 - Tips

Tips

God Mode

  • Create a folder named GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} on desktop

Show wifi passwords

  • Show all the saved profiles in your system
netsh wlan show profiles
  • Show Details about a specific WiFi Profile
netsh wlan show profile <profile>

If in the result you can see Security key: Present in the Security Settings Section, you can add the parameter key=clearfor displaying it.

netsh wlan show profile <profile> key=clear

Port Forwarding

To create a port forwarding rule on Windows 10, run a command prompt as an administrator and run the following command:

netsh interface portproxy add v4tov4 listenport=3340 listenaddress=10.1.1.110 connectport=3389 connectaddress=10.1.1.110

List all rules

netsh interface portproxy show all

Dump the portproxy configuration

netsh interface portproxy dump

To remove a specific port forwarding rule:

netsh interface portproxy delete v4tov4 listenport=3340 listenaddress=10.1.1.110

To remove all existing mapping rules and completely clear the port forwarding rules table:

netsh interface portproxy reset

Disable Quick Access

Acceder à l’explorateur de fichiers et faites un clic droit sur Accès rapide pour accéder à ses Options.
Décochez les deux cases sous Déclaration de confidentialité et le tour est joué. Vous pouvez aussi Effacer les traces actuelles.

Disable Startup Delay

By default, Windows 10 has a 10-second delay during boot before all your apps and programs become accessible. This is called the “Startup Delay,” and it helps make sure everything works as it should when you start up your PC. If, however, you have a powerful PC, or not many startup programs in Windows 10, then you can try to reduce or even disable the startup delay altogether to help your PC start up faster. In the registry :

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize
=> Add a new DWORD Value named 'StartupDelayInMSec' and set to '0'

Windows Start Menu doesn't respond

Deactivate option called "Use my sign-in info to automatically finish setting up my device after an update or restart." in Settings -> Accounts -> Sign-In Options

Powershell slow to start

In Powershell :

Set-Alias ngen (Join-Path ([Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory()) ngen.exe)
ngen update

It will take a few minutes with a lot of output and errors (ignore). Then restart PowerShell, it will start much faster.

Hyper-V Activation/Deactivation

  • Enable
dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
  • Disable
dism.exe /Online /Disable-Feature:Microsoft-Hyper-V-All

Java Swing on High DPI screen is badly displayed

On a High DPI screen, the Java Swing applications are not well displayed. To solve this, it's necessary to change the properties of the java.exe executable. In Compatibility/Change high DPI settings, override the value Override high DPI scaling behavior to System.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment