Microsoft
Contents
BIOS/UEFI Time
By default MS Windows stores the time as a local time to the BIOS. This leads to wrong times in multiboot setups.
This behaviour can be changed to store the time in UTC by creating a registry key of typee REG_DWORD (32-bit double word).
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\RealTimeIsUniversal = 0x00000001
Original Product Key
Open powershell
Recover Password
Start any Live Distribution like GRML, Fedora or Ubuntu.
Install chntpw
1 apt install chntpw ntfs-3g
Mount the Windows System Disk
Check Disk
Schedule chkdsk on next reboot
1 chkdsk /x /f /r
Mount Dirty NTFS
Can't mount a dirty filesystem.
1 # mount -o rw /media/data
2 The disk contains an unclean file system (0, 0).
3 Metadata kept in Windows cache, refused to mount.
4 Falling back to read-only mount because the NTFS partition is in an
5 unsafe state. Please resume and shutdown Windows fully (no hibernation
6 or fast restarting.)
7 Could not mount read-write, trying read-only
Cleanup
1 # mount | grep data
2 /dev/sdb1 on /media/data type fuseblk (ro,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,allow_other,blksize=4096,user)
3 # umount /media/data
4 # ntfsfix /dev/sdb1
5 Mounting volume... The disk contains an unclean file system (0, 0).
6 Metadata kept in Windows cache, refused to mount.
7 FAILED
8 Attempting to correct errors...
9 Processing $MFT and $MFTMirr...
10 Reading $MFT... OK
11 Reading $MFTMirr... OK
12 Comparing $MFTMirr to $MFT... OK
13 Processing of $MFT and $MFTMirr completed successfully.
14 Setting required flags on partition... OK
15 Going to empty the journal ($LogFile)... OK
16 Checking the alternate boot sector... OK
17 NTFS volume version is 3.1.
18 NTFS partition /dev/sdb1 was processed successfully.
19 # mount -o rw /media/data
20
Create bootable media from Linux
Prepare
Download current Windows 10 image
- approx. 5,4GiB
Use a fast USB-Stick USB 3+
Use a fast CPU and a tmpfs (in RAM) to create the installation media.
Identify usb-stick carefully
Manually - gpt and FAT32
- FAILED attempts
- msdos and exFAT
- dd to device
- worked
- gpt, vfat and a optimization of the install.vim finally worked out.
Create gpt partitioning table and a single partition.
1 parted /dev/sdc
2 GNU Parted 3.4
3 Using /dev/sdc
4 Welcome to GNU Parted! Type 'help' to view a list of commands.
5 (parted) unit MiB
6 (parted) print free
7 Model: SanDisk Extreme Pro (scsi)
8 Disk /dev/sdc: 122112MiB
9 Sector size (logical/physical): 512B/512B
10 Partition Table: msdos
11 Disk Flags:
12
13 Number Start End Size Type File system Flags
14 0,00MiB 1,00MiB 1,00MiB Free Space
15 1 1,00MiB 122111MiB 122110MiB primary udf
16 122111MiB 122112MiB 1,00MiB Free Space
17
18 (parted) mktable gpt
19 Warning: The existing disk label on /dev/sdc will be destroyed and all data on this disk will be lost. Do you want to continue?
20 Yes/No? yes
21 (parted) mkpart primary 1 -1
22 (parted) quit
23 Information: You may need to update /etc/fstab.
Create vfat filesystem (32bit - max 4GiB) :-/
Create a mount point
install.wim is too big for FAT32 (4GiB)
1 ### RSYNC THE CONTENT (FAILS JUST FOR DEMONSTRATION)
2 rsync -rltD /mnt/ "/media/$LABEL"
3 rsync: [receiver] write failed on "/media/Win10/sources/install.wim": File too large (27)
4 rsync error: error in file IO (code 11) at receiver.c(378) [receiver=3.2.3]
5 rsync: [sender] write error: Broken pipe (32)
Workaround:<<BR>> Sync image content to tmpfs and optimize the install.wim
1 [ "$LABEL" ] && mkdir "/tmp/$LABEL"
2 rsync -rltD /mnt/ "/tmp/$LABEL"
3 ### INSTALL wimtools
4 ### Tools for manipulating Windows Imaging files
5 apt install wimtools
6 wimlib-imagex optimize "/tmp/$LABEL/sources/install.wim" --solid
7 "/tmp/Win10/sources/install.wim" original size: 4805651 KiB
8 Using LZMS compression with 32 threads
9 Archiving file data: 9 GiB of 9 GiB (100%) done
10 "/tmp/Win10/sources/install.wim" optimized size: 3611026 KiB
11 Space saved: 1194624 KiB
12 wimlib-imagex optimize "/tmp/$LABEL/sources/install.wim" --solid 10824,21s user 53,19s system 2343% cpu 7:44,17 total
13 rsync -rltD /tmp/Win10/ "/media/$LABEL"
14 #### rsync -rltD /tmp/Win10/ "/media/$LABEL" 1,44s user 6,07s system 127% cpu 5,912 total
15
Cleanup
Enjoy!
Install in UEFI mode without Compatibility Storage Mode (CSM).
Repair DOCX
Repair corrupted file FOUND.000/FILE0006.CHK recovered during a fsck of a FAT32 filesystem.
Explicit Congestion Notification (ECN)
Please see:
networking#Explicit Congestion Notification (ECN)
Enable ECN with
1 netsh interface tcp set global ecncapability=enabled
Unauthenticated guest access to shares
Microsoft DE - Zugriff auf freigegebene Ordner im Datei-Explorer in Windows 10 nicht möglich
Microsoft EN - Can't access shared folders from File Explorer in Windows 10
Change password on RDP host
1 C:\Windows\explorer.exe shell:::{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}