Add files via upload

This commit is contained in:
Belim 2024-11-28 08:44:14 +01:00 committed by GitHub
parent 513a58ab0a
commit 063d779171
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 121 additions and 0 deletions

View File

@ -0,0 +1,21 @@
{
"PlugID": "Force Windows Update to Windows 11 24H2 (HW-Ready Systems Only)",
"PlugInfo": "1. This script unlocks the direct path to Windows 11 24H2 via Windows Update—no Installation Assistant or Media Creation Tool needed!\n2. Tailored for systems meeting official hardware requirements.\n3. After running, a restart will be required. Then, simply head to Windows Update and let the magic happen.",
"PlugCategory": "Scripts (optional)",
"PlugCheck": [
"reg query \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\" /v ProductVersion"
],
"PlugDo": [
"reg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\" /f",
"reg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\" /v ProductVersion /t REG_SZ /d \"Windows 11\" /f",
"reg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\" /v TargetReleaseVersionInfo /t REG_SZ /d \"24H2\" /f",
"reg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\" /v TargetReleaseVersion /t REG_DWORD /d 1 /f",
"powershell -command \"Add-Type -AssemblyName PresentationFramework; [System.Windows.MessageBox]::Show('Registry updated for Windows 11 24H2! Restart your PC, then head to Windows Update to grab your upgrade.', 'Restart Needed', 'OK', 'Information')\"",
"shutdown /r /t 10"
],
"PlugUndo": [
"reg delete \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\" /v ProductVersion /f",
"reg delete \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\" /v TargetReleaseVersionInfo /f",
"reg delete \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\" /v TargetReleaseVersion /f"
]
}

View File

@ -0,0 +1,23 @@
{
"PlugID": "Inplace Upgrade to 24H2 via Registry",
"PlugInfo": "1. Apply script\n2. Download Windows 11 version 24H2 ISO (via Microsoft site or Fido script) and mount the image.\n3. Click setup.exe and follow the on-screen instructions. \n\nSource: https://github.com/pbatard/rufus/issues/2568#issuecomment-2387934171\nOfficial Documentation: https://support.microsoft.com/en-us/windows/ways-to-install-windows-11-e0edbbfb-cfc5-4011-868b-2ce77ac7c70e",
"PlugCategory": "Scripts (optional)",
"PlugCheck": [
"reg query \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\HwReqChk\" /v HwReqChkVars"
],
"PlugDo": [
"reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\HwReqChk\" /f",
"reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\HwReqChk\" /v HwReqChkVars /t REG_MULTI_SZ /d \"SQ_SecureBootCapable=TRUE\\0SQ_SecureBootEnabled=TRUE\\0SQ_TpmVersion=2\\0SQ_RamMB=8192\" /f",
"reg delete \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\CompatMarkers\" /f",
"reg delete \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Shared\" /f",
"reg delete \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\TargetVersionUpgradeExperienceIndicators\" /f",
"reg add \"HKLM\\SYSTEM\\Setup\\MoSetup\" /f /v AllowUpgradesWithUnsupportedTPMOrCPU /t REG_DWORD /d 1"
],
"PlugUndo": [
"reg delete \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\HwReqChk\" /f",
"reg delete \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\CompatMarkers\" /f",
"reg delete \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Shared\" /f",
"reg delete \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\TargetVersionUpgradeExperienceIndicators\" /f",
"reg delete \"HKLM\\SYSTEM\\Setup\\MoSetup\" /f /v AllowUpgradesWithUnsupportedTPMOrCPU"
]
}

View File

@ -0,0 +1,77 @@
# Inplace Upgrade via Server Setup. (Current release: Windows 11 2024 Update l Version 24H2)
# This method leverages the Windows Server variant of the Windows setup, which skips most hardware compatibility checks. It allows Windows 11 to be installed on unsupported PCs, bypassing the usual system requirements. Importantly, while the setup runs in server mode, it installs the standard Windows 11 (not the server version).
# Function to open a file selection dialog and return the selected file path
function Select-ISOFile {
Add-Type -AssemblyName System.Windows.Forms
$fileDialog = New-Object System.Windows.Forms.OpenFileDialog
$fileDialog.Filter = "ISO Files (*.iso)|*.iso"
$fileDialog.Title = "Select an ISO File"
$fileDialog.InitialDirectory = [Environment]::GetFolderPath("Desktop") # Start at Desktop
if ($fileDialog.ShowDialog() -eq [System.Windows.Forms.DialogResult]::OK) {
return $fileDialog.FileName
} else {
return $null
}
}
# Prompt user to select an ISO file
$isoFilePath = Select-ISOFile
if (-not $isoFilePath -or -not (Test-Path $isoFilePath)) {
Write-Host "No valid ISO file selected. Exiting." -ForegroundColor Red
exit
}
Write-Host "Selected ISO file: $isoFilePath" -ForegroundColor Green
Write-Host "Mounting the ISO..." -ForegroundColor Blue
# Mount the ISO file
try {
Mount-DiskImage -ImagePath $isoFilePath
Write-Host "ISO mounted successfully." -ForegroundColor Green
} catch {
Write-Host "Failed to mount the ISO. Error: $_" -ForegroundColor Red
exit
}
# Retrieve the drive letter of the mounted ISO
$mountedVolume = Get-Volume | Where-Object { $_.DriveType -eq 'CD-ROM' -and $_.FileSystemLabel -ne $null } | Select-Object -First 1
if (-not $mountedVolume) {
Write-Host "Failed to find mounted drive. Exiting." -ForegroundColor Red
exit
}
$driveLetter = $mountedVolume.DriveLetter + ":"
Write-Host "Mounted drive letter: $driveLetter" -ForegroundColor Green
# Check for the Sources folder
$sourcesFolderPath = Join-Path -Path $driveLetter -ChildPath "sources"
if (-not (Test-Path $sourcesFolderPath)) {
Write-Host "Sources folder not found at $sourcesFolderPath. Exiting." -ForegroundColor Red
exit
}
Write-Host "Sources folder found at $sourcesFolderPath" -ForegroundColor Green
# Create the path to the setup file
$setupFile = Join-Path -Path $sourcesFolderPath -ChildPath "setupprep.exe"
# Ensure $setupFile is a valid string
if (-not (Test-Path $setupFile)) {
Write-Host "setupprep.exe not found in Sources folder. Exiting." -ForegroundColor Red
exit
}
Write-Host "Launching Windows setup. Path: $setupFile" -ForegroundColor Blue
# Launch the setup process
try {
Start-Process -FilePath $setupFile -ArgumentList "/product server" -NoNewWindow
Write-Host "Windows setup launched successfully. Follow the instructions on the screen." -ForegroundColor Green
} catch {
Write-Host "Error launching Windows setup: $_" -ForegroundColor Red
}