06/11/2025
[Windows] Delete recovery partition
01/11/2025
[Windows 11] Disable lnk resolver
- User Configuration\Administrative Templates\Start Menu and Taskbar\Do not use the search-based method when resolving shell shortcuts
- User Configuration\Administrative Templates\Start Menu and Taskbar\Do not use the tracking-based method when resolving shell shortcuts
- User Configuration\Administrative Templates\Windows Components\File Explorer\Do not track shell shortcuts during roaming
26/07/2025
[Lenovo] Fix PSR screen issues with AMD graphics
24/04/2025
[Windows 11] Uninstall widgets app
[Windows] Hash a file
23/04/2025
[Windows 11] Disable telemetry and diagnostic data
Windows 11 collects some data and allows some configuration under Settings > Privacy & Security > Diagnostics & Feedback however you are not allowed to completely disable it. If you wanted to do so, you could apply a policy using the Local Group Policy Editor app (gpedit).
Find the Local Computer Policy > Administrative Templates > Windows Components > Data Collection and Preview Builds > Allow Diagnostic Data
Click to modify it, enable it and set it to "Diagnostic data off"
You can then logout and login again or run from a terminal the command to force reload policies:
gpupdate /force
[Windows 11] Remove PhoneLink app
Removing the PhoneLink app on Windows, is as easy as running (from administrator shell):
Get-AppxPackage Microsoft.YourPhone -AllUsers | Remove-AppxPackage
12/03/2025
[Windows 11] Initial setup without forced login
09/11/2023
[Windows 11] Default show more options explorer right click menu (old UI behavior)
One change with Windows 11 is that the right click menu in Explorer was replaced with some condensed version where the old behavior is hidden behind a "Show more options" entry. This makes some actions slower to find and quite annoying, for example 7-zip or Notepad++
To revert it to the nicer old UI you can add a personal registry key, by typing this in a command prompt:
reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
Then logout and login again or restart explorer process to see the effect take place.
This is setting an override on the default config found under (which remains untouched):
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InProcServer32
To undo the change, simply delete the registry key created by the command.
21/04/2020
[Windows] Share environment variables in Windows Subsystem for Linux
Luckily there is a workaround, using the WSLENV variable. Unfortunately, it is not a direct 1:1 translation of your existing variables, rather you will need to craft them manually and convert between the two environments before you run a command or switch environment.
For example, to pass your JAVA_HOME correctly to wsl:
set JAVA_HOME=%JAVA_HOME%
set WSLENV=JAVA_HOME/up
wsl
echo $JAVA_HOME
And the magic is behind that last /up flag which says: set the value when invoking WSL from Windows (u) and translate between Windows and Unix paths (p)
WARNING: spaces are NOT escaped
WARNING2: only ONE variable is shared, so you cannot share both JAVA_HOME and PATH for example at the same time
[Windows] Activate and configure Windows Subsystem for Linux
Setup could be a bit more straightforward, but still not a big issue:
- Enable Windows Subsystem for Linux as a Windows feature from Control Panel > Programs and Features > Turn Windows features on or off
- Reboot
- Make sure LxssManager service is running
- Install a Linux distro from Windows store, search for "WSL" and pick the one you prefer, for example Alpine or Ubuntu, if no distro is installed, you get an error instead:
17/04/2020
[Windows] Store command output in variable in batch script
FOR /F "tokens=*" %%g IN ('your_command ^| with_escaped_pipe_if_you_need_it') do (SET VAR=%%g)
07/04/2020
[Windows] Custom keyboard layout QWERTZ to QWERTY
22/03/2018
[Windows] Blood Bowl 2 offline league manager
This command line tool provides capability to edit - AT YOUR OWN RISK - the SQLite database where team and player information is stored so that, with a bit of paper tracking, you can update the stats after a friendly match.
This tool is not a cheat/trainer!, it only allows you to edit offline team data, much like the "Custom team" feature of the Legendary Edition, except that feature is only usable at team creation.
This tool is based on the rules found in the Blood Bowl Living Rulebook version 6 and might NOT reflect the actual rules implemented in the game - yet, since I saw some rule tables in the DB, and need to investigate further there..
This tool is an alpha version!, it works without hiccups - but its a barebone tool with some open todos and limitations and the user experience can be further improved, but it works as a starting point if you, like me, crave this feature! :)
You can find the BBManager project on my GitHub and download the compiled jar as well.
Please refer to the project README to find out how to use the tool.
22/05/2015
[Windows Server 2012] Add role fails
The reason was that these services had to be enabled before trying to add the new role:
- Server
- Workstation
- Computer Browser
- TCP/IP NetBIOS Helper
29/11/2014
[Windows Server] Disable shutdown reason tracker
This can be disabled by running:
gpedit.msc
then browsing to
Computer Configuration->Administrative Templates->System then searching for the entry: Display Shutdown Event Tracker and setting it to disabled.
[Windows Server] Change password policy
- User cannot change password
- Password must be at least X characters long
- Password expires after X days
- ...
[Windows Server] Disable Server Manager auto start at login
Open Server Manager, then click on the Manage button and choose "Server Manager properties", you'll have the choice there.
[Windows Server] Enable automatic login
Simply run:
netplwiz.exe
Found under WIN_INSTALL_DIR\System32, and uncheck "Users must enter a username [...]". You'll have to insert you username and password and at the next reboot you'll brought directly to your desktop.
If your server is a Domain Controller (DC) too, then you cannot use this tool, but will have to uncheck the same setting from the "Active Directory Users and Computers" snap-in
26/10/2014
[Windows 7] Create repair USB key to run bootrec
For some very important reasons, this extremely useful tool can only be run from a Windows install DVD and you don't have direct access to it, even from the safe mode. Luckily, you can create a bootable USB key where to place the Windows RE without having to get said DVD - only catch: you'll need access to a working Windows 7 PC.
Now that your friend generously gave you permission to use his PC, let's get started.