Skip to content

Instantly share code, notes, and snippets.

View dszp's full-sized avatar

David Szpunar dszp

  • Servant 42
  • US
  • 13:22 (UTC -04:00)
View GitHub Profile
@dszp
dszp / Extend-WinRE-RecoveryPartition.ps1
Last active May 8, 2024 21:16
Extend WinRE Partition if possible for MS KB5034441 (run with -SkipConfirmation to actually make changes, read-only by default) -- RMM-optimized Microsoft script, adds NinjaRMM Custom Fields in v0.0.2 revision, and better logging in 0.0.3 (see comments for GitHub link)
<# Extend-WinRE-RecoveryPartition.ps1
SOURCE: https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/add-update-to-winre?view=windows-11#extend-the-windows-re-partition
To assist with resolution of failed install error status 0x80070643 for Microsoft KB5034441
https://support.microsoft.com/kb/5034441
MICROSOFT DESCRIPTION:
The sample script below can be used to increase the size of recovery partition to enable successfully update
Windows Recovery Environment (WinRE). Updates to WinRE require at minimum 250MB of free space in the
recovery partition to install successfully. On devices that may not have adequate free space in the recovery
@dszp
dszp / keybase.md
Created March 14, 2017 04:23
Keybase.io Verification

Keybase proof

I hereby claim:

  • I am dszp on github.
  • I am dszp (https://keybase.io/dszp) on keybase.
  • I have a public key ASDwL5tWtPDYYZRNQvob3ki6DxXVmgQkhEOqADmTP2hAjQo

To claim this, I am signing this object: