CMD Oneliner:
powershell -Command "Enable-ComputerRestore -Drive C:; New-PSDrive -PSProvider Registry -Name HKU -Root HKEY_USERS; $RegPath = 'HKU:\S-1-5-18\Software\Microsoft\PCHC'; $UpgradeEligibilityValue = '1'; New-Item $regpath -Force | out-null; New-ItemProperty -Path $RegPath -Name UpgradeEligibility -Value $UpgradeEligibilityValue -PropertyType DWORD -Force | Out-Null; $ProgressPreference = 'SilentlyContinue'; $Link = 'https://go.microsoft.com/fwlink/?linkid=2171764'; $Path = 'C:\Users\Public\Downloads'; $File = 'windows11installationassistant.exe'; Invoke-WebRequest -Uri $Link -OutFile $Path\$File -UseBasicParsing; Start-Process -FilePath $Path\$File -ArgumentList '/QuietInstall /SkipEULA /auto upgrade /NoRestartUI /copylogs $Path'"
PowerShell:
Enable-ComputerRestore -Drive C: New-PSDrive -PSProvider Registry -Name HKU -Root HKEY_USERS $RegPath = "HKU:\S-1-5-18\Software\Microsoft\PCHC" $UpgradeEligibilityValue = "1" New-Item $regpath -Force | out-null New-ItemProperty -Path $RegPath -Name UpgradeEligibility -Value $UpgradeEligibilityValue -PropertyType DWORD -Force | Out-Null $ProgressPreference = "SilentlyContinue" $Link = "https://go.microsoft.com/fwlink/?linkid=2171764" $Path = "C:\Users\Public\Downloads" $File = "windows11installationassistant.exe" Invoke-WebRequest -Uri $Link -OutFile $Path\$File -UseBasicParsing Start-Process -FilePath $Path\$File -ArgumentList "/QuietInstall /SkipEULA /auto upgrade /NoRestartUI /copylogs $Path"
Show full progress:
Get-Content "C:\`$WINDOWS.~BT\Sources\Panther\setupact.log" -Wait -Tail 10
Show overall progress only:
Get-Content "C:\`$WINDOWS.~BT\Sources\Panther\setupact.log" -Wait | Where-Object { $_ -match "Overall progress: \[\d+%\]" }
cmd oneliner with proxy:
powershell -Command "&{Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyEnable -Value 1;Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyServer -Value 'proxy.ezorg.nl:8080';Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyOverride -Value ';*.ehsnet.nl;*.ehealthservices.nl;172.*.*.*';netsh winhttp import proxy ie;Enable-ComputerRestore -Drive C:;New-PSDrive -PSProvider Registry -Name HKU -Root HKEY_USERS;$RegPath = 'HKU:\S-1-5-18\Software\Microsoft\PCHC';$UpgradeEligibilityValue = '1';New-Item $RegPath -Force | Out-Null;New-ItemProperty -Path $RegPath -Name UpgradeEligibility -Value $UpgradeEligibilityValue -PropertyType DWORD -Force | Out-Null;$ProgressPreference = 'SilentlyContinue';$Link = 'https://go.microsoft.com/fwlink/?linkid=2171764';$Path = 'C:\Users\Public\Downloads';$File = 'windows11installationassistant.exe';Invoke-WebRequest -Uri $Link -OutFile $Path\$File -Proxy http://proxy.ezorg.nl:8080 -ProxyUseDefaultCredentials -UseBasicParsing;Start-Process -FilePath $Path\$File -ArgumentList '/QuietInstall /SkipEULA /auto upgrade /NoRestartUI /copylogs $Path'}" We couldn't update the system reserved partition:
mountvol y: /s y: cd EFI\Microsoft\Boot\Fonts del *.*