Windows recovery path

Windows tools.
One thin path.

Start with a focused tracer bullet that uses PowerShell and Windows Package Manager when available, with Ansible running from Ubuntu under WSL.

PowerShell — Windows tracer bullet
PS> $securePassword = Read-Host "Bootstrap password" -AsSecureString
PS> $passwordPointer = [Runtime.InteropServices.Marshal]::SecureStringToBSTR($securePassword)
PS> $plainPassword = [Runtime.InteropServices.Marshal]::PtrToStringBSTR($passwordPointer)
PS> $basicToken = [Convert]::ToBase64String(
    [Text.Encoding]::ASCII.GetBytes("bootstrap:$plainPassword")
  )
PS> Invoke-WebRequest `
    -Uri "https://dotfilesetup.netlify.app/bootstrap-windows.ps1" `
    -Headers @{ Authorization = "Basic $basicToken" } `
    -OutFile "$env:TEMP\bootstrap-windows.ps1"
PS> [Runtime.InteropServices.Marshal]::ZeroFreeBSTR($passwordPointer)
PS> Remove-Variable securePassword, passwordPointer, plainPassword, basicToken
PS> Get-Content "$env:TEMP\bootstrap-windows.ps1"
PS> & "$env:TEMP\bootstrap-windows.ps1"
Download script
  1. UnlockEnter the dedicated Netlify bootstrap password.
  2. InspectReview the downloaded PowerShell script before running it.
  3. PrepareAllow WSL installation and restart if Windows requests it.
  4. InstallAnsible applies allowed packages independently, or skips them when Winget is unavailable.