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.
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"
- UnlockEnter the dedicated Netlify bootstrap password.
- InspectReview the downloaded PowerShell script before running it.
- PrepareAllow WSL installation and restart if Windows requests it.
- InstallAnsible applies allowed packages independently, or skips them when Winget is unavailable.