Some notes on using Windows 11

Created: December 06, 2021   Last Modified: December 13, 2021   Category: windows, linux   Print this pageBack to Home

Full right-click context menu

To enable full context menu, run

reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve

and restart the explorer process.

To enable the default Windows 11 right-click context menu, run

reg delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f

Backup and Restore Windows partitions with Clonezilla

  • I use GPT partition table.
  • I use a Arch Linux live USB with pre-installed Clonezilla to backup my Windows EFI boot partition and the main Bitlocker-encrypted partition containing the whole system. I also keep a copy of the following information:
    • Recovery key of the Bitlocker-encrypted partition.
    • The PARTUUIDs of both partitions, which can be obtained via blkid in Arch Linux.
    • The disk layout (you can get by running fdisk -l in Arch Linux). This is necessary in case you have a new disk and want to restore Windows to that disk.
  • I saved Windows partitions as Clonezilla images. You may also backup the whole disk, not just the partitions.
  • After cloning with Clonezilla, verify that the PARTUUIDs of the partitions are matched. If this is not the case, follow this instruction to change their PARTUUIDs. I made a copy of an example for a disk with GPT partition table. Here, /dev/sda2 is the partition whose PARTUUID will be changed. Instead of using a random PARTUUID as in the example, enter the saved PARTUUID.

    $ sudo gdisk /dev/sda
    [sudo] password for mook: 
    GPT fdisk (gdisk) version 1.0.5
    
    Partition table scan:
      MBR: protective
      BSD: not present
      APM: not present
      GPT: present
    
    Found valid GPT with protective MBR; using GPT.
    
    Command (? for help): x                                       # enter x to change to experts menu
    
    Expert command (? for help): c                                # enter c to change PARTUUID
    Partition number (1-2): 2                                     # enter the number of the partition you want to change
    Enter the partition's new unique GUID ('R' to randomize): r 
    New GUID is 76349364-D66C-4C19-B422-237A0D2DB9F5
    
    Expert command (? for help): m                                # enter m to go back to main menu
    
    Command (? for help): w                                       # enter w to write the change to disk
    
    Command (? for help): q                                       # enter q to exit gdisk
    $
    
  • In some cases, the UEFI boot entry may change and fails to load the correct Windows partition. Follow this instruction to re-create a “Windows Boot Manager” with efibootmgr. I made a copy of an example here, where /dev/sdb2 is the Windows EFI partition.

    sudo efibootmgr -c  -L "Windows Boot Manager" -l "\EFI\Microsoft\Boot\bootmgfw.efi" -d /dev/sdb -p 2
    

C:\usr\snmp\persist\snmpapp.conf keeps appearing

The folder C:\usr appears in my C:\ drive and even when I removed it, after rebooting Windows, it appears again. It contains a single directory persist and that directory has only one file named snmpapp.conf with the following content.

#
# net-snmp (or ucd-snmp) persistent data file.
#
############################################################################
# STOP STOP STOP STOP STOP STOP STOP STOP STOP 
#
#          **** DO NOT EDIT THIS FILE ****
#
# STOP STOP STOP STOP STOP STOP STOP STOP STOP 
############################################################################
#
# DO NOT STORE CONFIGURATION ENTRIES HERE.
# Please save normal configuration tokens for snmpapp in SNMPCONFPATH/snmpapp.conf.
# Only "createUser" tokens should be placed here by snmpapp administrators.
# (Did I mention: do not edit this file?)
#




engineBoots 1
oldEngineID 0x80001f8880340200006dc1b46100000000

From this page, I figure out that this is because I added a Kyocera printer to my list of printers in Windows.

Firefox show MOZILLA_PKIX_ERROR_OCSP_RESPONSE_FOR_CERT_MISSING error when entering a support.microsoft.com page

See this page for more details. To fix the issue, follow this workaround:

  1. Open a tab and type about:config in the address bar.
  2. Once in, type ocsp in the config search bar.
  3. Toggle the parameter security.ssl.enable_ocsp_stapling from true to false.

Back to top Powered by Jekyll
Back to Home Last Modified: December 13, 2021