From 02fa9724770565e75e5b84af7f38404b35108808 Mon Sep 17 00:00:00 2001 From: Upgrayedd Date: Sun, 26 Jan 2025 20:46:21 -0600 Subject: [PATCH] Add WinUpgrayeddMediaCreation.ps1 got the download, turns out the iso creation bit is fucked, thanks ms --- WinUpgrayeddMediaCreation.ps1 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 WinUpgrayeddMediaCreation.ps1 diff --git a/WinUpgrayeddMediaCreation.ps1 b/WinUpgrayeddMediaCreation.ps1 new file mode 100644 index 0000000..008a67b --- /dev/null +++ b/WinUpgrayeddMediaCreation.ps1 @@ -0,0 +1,17 @@ +#A better version lives here +#https://github.com/AveYo/MediaCreationTool.bat +#but this one is mine + + +#make our working directory if it ain't there +$programData = $env:PROGRAMDATA +$workDir = "$programData\UG\temp" +if(!(test-path -PathType container $workDir)) +{ + New-Item -ItemType Directory -Path $workDir +} + +#download the media creation tool +Start-BitsTransfer -Source "https://go.microsoft.com/fwlink/?linkid=2156295" -Destination $workDir\mediaCreationTool.exe + +