How to completely remove Ubuntu from Windows dual boot without USB

All of these steps can be done from Windows, you can do the following to completely remove Ubuntu from Windows dual-boot

First, let’s use Windows partition manager and remove the Linux partition, you can extend it to the main partition again if you want.

Then, open the Windows Prompt and enter the following:

# Open command prompt with administrator permission
bootsect /nt60 c: /mbr

# Remove the ubuntu partition
mountvol S: /S
S:
cd .\EFI\
dir
rd /S Ubuntu
Add to my src(0)

No account yet? Register

Check port exclusion on Windows

These ports are blocked by default if opening from WSL, so either make exception for it or open a new port, for example nodejs port 3000 cannot be open from WSL

 netsh int ipv4 show excludedportrange protocol=tcp
 Protocol tcp Port Exclusion Ranges

Start Port    End Port
----------    --------
      1051        1150
      1151        1250
      1338        1437
      1438        1537
      1538        1637
      1638        1737
      1766        1865
      1938        2037
      2038        2137
      2180        2279
      2280        2379
      2380        2479
      2480        2579
      2699        2798
      2830        2929
      2930        3029
      3030        3129
      3130        3229
      3230        3329
      3430        3529
      3530        3629
      3630        3729
      3757        3856
      3857        3956
      3957        4056
      4057        4156
      4157        4256
      4315        4414
      4466        4565
      4566        4665
      5357        5357
      5426        5426
     50000       50059     *
     54235       54235
     54236       54236

* - Administered port exclusions.
Add to my src(0)

No account yet? Register