Recovery, Your PC/Device needs to be repaired

File: \EFI\Microsoft\Boot\BCD
Error code: 0x000000f 
The Boot Configuration data for your PC is missing or contains errors.

The following notes may be of some help when trying to resolve the above error. Think the primary issue had to do with cloning a GPT drive to a RAID array that was using MBR. So think everything worked after converting it to GPT

All the commands are/were run from a recovery Command Prompt

Convert MBR disk to GPT

After running the following command the EFI directory was automatically created.
The command is supposed to be non destructive. Change the disk to whichever disk your trying to change to gpt.

gpt2efi /validate /disk:0

Other commands

If running the above command did not work then you may give the following command a try. Change the drive names where appropriate.

bcdboot c:\windows /s s: /f UEFI /v

You may be able to get away with just using

cdboot c:\windows

You can check if the above worked by seeing if it created any files in the directory, if new efi partition is S:, then from a command prompt run

S:
dir

Commands for recreating the EFI partition (WARNING! MAY DESTROY DATA!)

diskpart
list disk
select disk # Note: Select the disk where you deleted the EFI System partition.
list partition
create partition efi
format quick fs=fat32
list partition
list volume


Windows 10 – How to “fully” shutdown

Windows 10 by default does a hybrid shutdown which is supposed to make it quicker to start back up.

To fully shutdown you can hold the Shift key down while clicking the shutdown button.

Side note. A Restart will do a full shutdown before starting back up.

More info.

https://www.bleepingcomputer.com/forums/t/625963/details-of-shut-down-vs-restart-please/#entry4079503
https://superuser.com/questions/974553/what-does-shiftshutdown-do-in-windows-10

TFTP firmware to Ubiquiti radio

Boot up radio in tftp mode by pressing the reset button for ~20seconds or till you get the crossing blinky lights.

Enable TFTP
In Windows, search for
“turn windows features on or off”
Open up and select tftp client. Then hit OK.

That should install the tftp client

Flash firmware
To flash the firmware, open up a command prompt and run the tftp command

tftp -i 192.168.1.20 PUT "\Users\bob\Downloads\XM.v6.1.3.31939.171117.1238.bin"

Vim config file .vimrc

Line numbers

Turn line numbers on

:set nu

Turn line numbers off

:set nu!

Color Scheme

:colorscheme evening

Syntax Highlighting

Turn Syntax highlighting on

:syntax on

Turn Syntax highlighting off

:syntax off

Highlight all search terms

:set hlsearch

https://vim.fandom.com/wiki/Highlight_all_search_pattern_matches

You can add the following to your ~/.vimrc in Linux or ~\.vimrc in Windows so the options are used every time you run vim.

colorscheme evening 
syntax on
set hlsearch
set nu


Can’t set default app for .blend file on Windows 10

Problem: Can’t set default program for .blend files to Windows store version of Blender

Usually is not a problem as you’ll get asked if you want to set a default program. When you hit yes, blender does not show up in the list of apps. That wouldn’t be a problem, except Blender is from the Windows Store, so there is no launcher in the ordinary places.

Resolution: Install regular Windows installer from Blenders website.

Other Info

Not sure if the issue is with the Store or Blender. The .blend file type does not show up in the Windows Settings under “Apps -> Default apps -> Choose default apps by file type” and Blender doesn’t show up under “Apps -> Default apps -> Set defaults by app”


BitLocker – Command Prompt Commands

You’ll need administrator privileges to use these command. You can also run them from a command prompt in recovery

Check Status

manage-bde -status

Turn off Encryption

manage-bde -off C:

Change C: to the drive that has BitLocker on it. Check with the status command. May not be C if your in recovery.
Also note that after the encryption is turned off it takes awhile to decrypt. Check with status command

Unlock BitLocker Encrypted Drive

manage-bde -unlock C: -recoverypassword 11111-...-99999

Replace C: with actual drive

Replace the numbers at the end to your actual recovery key.