Windows Utilities

Commands, programs, and other stuff thats good to know for Windows!

Back to guides…

Activate Windows

Open Powershell as Admin and run:

irm https://get.activated.win | iex

Install chocolatey

Chocolatey is a Package Manager for WIndows, like apt
Open Powershell as Admin and run:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

Write Boot files from a recovery disk/usb

Rewrites the boot files into the EFI partition. If you are Dual-Booting with Linux, this won’t override the Linux boot files.

  1. Load into Windows recovery environment and open the Command Line

  2. Start diskpart

  3. Find your main disk with list disk, then select it with select disk #

  4. Find the EFI Partition on the disk with list partition, then select it with select partition # , It should be of type System and have >100MB space

  5. Assign letter B to the EFI Partition: assign letter B

  6. Enter exit to exit DISKPART

  7. Write the boot files:

bcdboot C:\Windows /s B: /addlast /d /c
  1. Restart your computer and hope it worked: shutdown /r
  2. (optional) If you are dual-booting with Linux and use GRUB, reboot into Linux and update-grub. Make sure os-prober is enabled!