Files
Powershell-Scripts/App Update Scripts/Windows 11 24H2 Upgrade.ps1
T

32 lines
1.4 KiB
PowerShell
Raw Normal View History

2025-08-08 19:01:51 +00:00
<#
Author: Gabe Kerntke
Date: 06/18/2025
.Synopsis
Script downloads the zipped version of the iso from moveit, extracts zip, removes zip, runs setup.exe with correct parameters
.Reference
.Modified
2025-06-18 (GabeK) - Script created
2025-07-01 (GabeK) - Updated to June 2025 version of 24H2
#>
#Variables
$EPCache_Folder = "software"
$Install_Parameters = "/Auto Upgrade /BitLocker AlwaysSuspend /CompactOS Disable /Compat IgnoreWarning /DynamicUpdate Disable /EULA accept /Priority Normal /ShowOOBE None /Telemetry Disable"
$File_Name = "Windows11_24H2_June_2025_Upgrade.zip"
$DownloadURL = "https://files.gabesville.com/filebrowser/files/ISO%20Files/Windows/Windows%2011/Windows11_24H2_June_2025_Upgrade.zip"
$ProgressPreference = 'SilentlyContinue'
#Region Script Start
If ((Test-Path "C:\Temp\Script Cache") -eq $False) { New-Item -ItemType directory -Path "C:\Temp\Script Cache" }
Invoke-WebRequest -UseBasicParsing "https://scripts.gabesville.com/Gabesville/Powershell-Scripts/raw/branch/main/Functions%20Scripts/Functions.ps1" -outfile "C:\Temp\Script Cache\Functions.ps1"
. "C:\Temp\Script Cache\Functions.ps1"
Test-Probe_MoveIT
Expand-Archive $EPCacheLocalLocation -DestinationPath "C:\Temp\Script Cache" -Force
Remove-Item $EPCacheLocalLocation -Force
$EPCacheLocalLocation = "C:\Temp\Script Cache\Windows11_24H2_June_2025_Upgrade\setup.exe"
Install-App
#Region Script End