- Type in 'Diskpart'.
- Type in 'List volume'.
- Type 'Select volume=?' (Replacing the ? with whatever number is associated with the ESP label).
- Type 'Assign letter=Z'. (Or anything not currently in use.)
- Type 'exit'.
- Type 'bcdboot C:\windows /s Z: /f UEFI'. (Replacing the C: with the volume letter that is named OS).