Windows 11 skip microsoft login

do not connect to the internet, when the login prompt appears, SHIFT+F10 to open CMD
OOBE\BYPASSNRO

after restart, select "I don't have internet"





Common windows troubleshooting

Dism /Online /Cleanup-image /RestoreHealth -> get healthy system files
if DISM fails, download windows ISO, mount it and add (this is an example filepath): "/source:d:\sources\install.esd", sometimes the file is "install.wim"

SFC /scannow -> scans the system drive and attempts to repair broken files

chkdsk C: /f /r /x -> checks for drive errors





Resetting, formatting a drive with diskpart:

diskpart

list disk

select disk [disknumber]

detail disk

clean

create partition primary

format fs=ntfs

optionally assign a drive letter:
assign





Disable windows reservable bandwidth limit (default - 20% of connection speed)

run gpedit.msc
Local Computer Policy > Computer Configuration > Administrative Templates > Network > QoS Packet Scheduler
open "Limit reservable bandwidth" and set the value to 0





Repair windows installer with admin cmd

Dism /Online /Cleanup-image /RestoreHealth -> get healthy system files
if DISM fails, download windows ISO, mount it and add (this is an example filepath): "/source:d:\sources\install.esd", sometimes the file is "install.wim"

SFC /scannow -> scans the system drive and attempts to repair broken files

chkdsk C: /f /r /x -> checks for drive errors

%windir%\system32\msiexec.exe /unregister

%windir%\system32\msiexec.exe /regserver

%windir%\syswow64\msiexec.exe /unregister

%windir%\syswow64\msiexec.exe /regserver

regsvr32 scrrun.dll





Stop windows using CPU when idle

open task scheduler, navigate to \Microsoft\Windows\MemoryDiagnostic\RunFullMemoryDiagnostic and disable RunFullMemoryDiagnostic





Show all wifi passwords

for /f "skip=9 tokens=1,2 delims=:" %i in ('netsh wlan show profiles') do @if "%j" NEQ "" (echo SSID: %j & netsh wlan show profiles %j key=clear | findstr "Key Content") & echo





Repair windows boot after moving drives or partitions

boot from installation media, click repair your computer then troubleshoot, advanced options, command prompt:

bootrec / fixmbr

bootrec / fixboot

bootrec / scanos

bootrec / rebuildbcd





Repair GRUB bootloader after moving drives or partitions (error unknown filesystem grub rescue)

first we will display all partitions by using: ls

then try to ls into every partition listed until you find one that does not give the filesystem is unknown error, for example: ls (hd0,part1)

when you find the correct partition, (hd0, part1) in this example, use:

set root= (hd0, part1)

set prefix= (hd0, part1)/boot/grub

insmod normal

normal

now you should be on the GRUB screen, boot into your linux OS and update the configuration:

sudo update-grub

sudo grub-install/dev/sda