From a433e408415409ea63cb3ad01b1c1480c180592d Mon Sep 17 00:00:00 2001 From: abbodi1406 Date: Mon, 20 Apr 2026 23:46:29 +0300 Subject: [PATCH 1/4] add new category Ids --- shared/requests.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shared/requests.php b/shared/requests.php index 2b403f8..b1fa5a3 100644 --- a/shared/requests.php +++ b/shared/requests.php @@ -590,6 +590,13 @@ function composeFetchUpdRequest($arch, $flight, $ring, $build, $sku = 48, $type 3 30077688 30486944 + 316003061 + 326686062 + 326686063 + 327065581 + 327072300 + 327072305 + 327100345 5143990 5169043 5169044 -- 2.47.3 From 2ddfdfc9f478af7a9f40397fe5b5fb2def33a8ac Mon Sep 17 00:00:00 2001 From: abbodi1406 Date: Tue, 21 Apr 2026 00:06:49 +0300 Subject: [PATCH 2/4] add new OOBE attributes --- shared/requests.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/shared/requests.php b/shared/requests.php index b1fa5a3..d20d1d8 100644 --- a/shared/requests.php +++ b/shared/requests.php @@ -116,7 +116,7 @@ function composeDeviceAttributes($flight, $ring, $build, $arch, $sku, $type, $fl $attrib = array( 'App=WU_OS', 'AppVer='.$build, - 'AttrDataVer=331', + 'AttrDataVer=352', 'AllowInPlaceUpgrade=1', 'AllowOptionalContent=1', 'AllowUpgradesWithUnsupportedTPMOrCPU=1', @@ -174,6 +174,7 @@ function composeDeviceAttributes($flight, $ring, $build, $arch, $sku, $type, $fl 'IsDeviceRetailDemo=0', 'IsFlightingEnabled='.$flightEnabled, 'IsRetailOS='.$isRetail, + 'LaunchUserOOBE=1', 'LCUVer=0.0.0.0', 'MediaBranch=', 'MediaVersion='.$build, @@ -317,10 +318,12 @@ function branchFromBuild($build) { case 26100: case 26120: case 26200: + case 26300: $branch = 'ge_release'; break; case 28000: + case 28100: $branch = 'br_release'; break; @@ -474,6 +477,8 @@ function composeFetchUpdRequest($arch, $flight, $ring, $build, $sku = 48, $type $products[] = "PN=Windows.FeatureExperiencePack.$currArch&Repairable=1&V=0.0.0.0"; $products[] = "PN=Windows.ManagementOOBE.$currArch&IsWindowsManagementOOBE=1&Repairable=1&V=$build"; $products[] = "PN=Windows.OOBE.$currArch&IsWindowsOOBE=1&Repairable=1&V=$build"; + $products[] = "PN=Windows.OOBE.Cumulative.$currArch&V=0.0.0.0"; + $products[] = "PN=Windows.OOBE.Standalone.$currArch&V=0.0.0.0"; $products[] = "PN=Windows.UpdateStackPackage.$currArch&Name=Update Stack Package&Repairable=1&V=$build"; $products[] = "PN=Hammer.$currArch&Source=UpdateOrchestrator&V=0.0.0.0"; $products[] = "PN=MSRT.$currArch&Source=UpdateOrchestrator&V=0.0.0.0"; -- 2.47.3 From 1e07081a0e8732ed47e41998096a3d75a9b842ef Mon Sep 17 00:00:00 2001 From: abbodi1406 Date: Tue, 21 Apr 2026 00:23:36 +0300 Subject: [PATCH 3/4] rework detection for product info --- fetchupd.php | 57 ++++++++++++++++++++++++++++++++++------------------ 1 file changed, 37 insertions(+), 20 deletions(-) diff --git a/fetchupd.php b/fetchupd.php index f55a986..4e97707 100644 --- a/fetchupd.php +++ b/fetchupd.php @@ -301,32 +301,40 @@ function parseFetchUpdate($updateInfo, $out, $arch, $ring, $flight, $build, $sku return array('error' => 'EMPTY_FILELIST'); } - preg_match('/ProductReleaseInstalled Name\="(.*?)\..*\.(.*?)" Version\="10\.0\.(.*?)"/', $updateInfo, $info); - $foundType = @strtolower($info[1]); - $foundArch = @strtolower($info[2]); - $foundBuild = @$info[3]; + preg_match('/ProductReleaseInstalled Name\="(.*?)" Version\="(.*?)"/', $updateInfo, $info); + if(!isset($info[0]) || empty($info[0])) { + $infoExt = preg_grep('//', $updateMeta); + preg_match('/ProductName\="(.*?)" ReleaseVersion\="(.*?)"/', $infoExt[0], $info); + } + $matchName = @strtolower($info[1]); + $matchVersion = @$info[2]; - if(!isset($foundArch) || empty($foundArch)) { - preg_match('/ProductReleaseInstalled Name\="(.*?)\.(.*?)" Version\="10\.0\.(.*?)"/', $updateInfo, $info); - $foundType = @strtolower($info[1]); - $foundArch = @strtolower($info[2]); - $foundBuild = @$info[3]; + if($matchVersion == '1.0.0.0' || $matchVersion == '10.0.0.0') { + preg_match('/"BuildFlightVersion":"(.*?)"/', $updateInfo, $infoVer); + $matchVersion = @$infoVer[1]; } - if(!isset($foundArch) || empty($foundArch)) { - preg_match('/ProductReleaseInstalled Name\="(.*?)\.(.*?)" Version\="(.*?)"/', $updateInfo, $info); - $foundType = @strtolower($info[1]); - $foundArch = @strtolower($info[2]); - $foundBuild = @$info[3]; - } + $arrayName = explode('.', $matchName); + $arrayVersion = explode('.', $matchVersion); + + $foundArch = $arrayName[count($arrayName)-1]; + $foundType = $arrayName[0]; + if($foundType == 'windows' || $foundType == 'microsoft') + $foundType = $arrayName[1]; $isNet = 0; - if(strpos($foundArch, 'netfx') !== false) { + if(strpos($matchVersion, '10.0.') !== false) { + $foundBuild = $arrayVersion[2].'.'.$arrayVersion[3]; + } elseif($foundType == 'netfx') { + $foundBuild = $arrayVersion[1].'.'.$arrayVersion[2]; $isNet = 1; - preg_match('/ProductReleaseInstalled Name\=".*\.(.*?)\.(.*?)" Version\=".*\.\d{5}\.(.*?)"/', $updateInfo, $info); - $foundType = @strtolower($info[1]); - $foundArch = @strtolower($info[2]); - $foundBuild = @$info[3]; + } else { + $foundBuild = $matchVersion; + } + + $addKB = 0; + if($isNet || $foundType == 'oobe') { + $addKB = 1; } $updateTitle = preg_grep('/.*<\/Title>/', $updateMeta); @@ -345,6 +353,8 @@ function parseFetchUpdate($updateInfo, $out, $arch, $ring, $flight, $build, $sku if($foundType == 'hololens' || $foundType == 'wcosdevice0') $updateTitle = preg_replace('/ for .{3,5}-based/i', ' for', $updateTitle); + preg_match('/\((KB.*?)\)/', $updateTitle, $updateKB); + $isCumulativeUpdate = 0; if(preg_match('/\d{4}-\d{2}.+Update|(Cumulative|Security|Preview) Update|Microsoft Edge|Windows Feature Experience Pack|Cumulative security Hotpatch/i', $updateTitle)) { $isCumulativeUpdate = 1; @@ -368,6 +378,10 @@ function parseFetchUpdate($updateInfo, $out, $arch, $ring, $flight, $build, $sku $updateTitle = str_replace('Update', "Update for $osName", $updateTitle); } + if($foundType == 'oobe' && !preg_match("/OOBE|Out of Box/i", $updateTitle)) { + $updateTitle = str_replace('Update', 'Update for Windows OOBE', $updateTitle); + } + if($sku == 406) $updateTitle = str_replace('Microsoft server operating system', 'Azure Stack HCI', $updateTitle); @@ -377,6 +391,9 @@ function parseFetchUpdate($updateInfo, $out, $arch, $ring, $flight, $build, $sku if($foundType == 'hololens' || $foundType == 'wcosdevice0') $updateTitle = $updateTitle.' - '.$type; + if($addKB && isset($updateKB[0])) + $updateTitle = $updateTitle.' - '.$updateKB[1]; + if(!str_contains($updateTitle, $foundBuild)) $updateTitle = $updateTitle.' ('.$foundBuild.')'; -- 2.47.3 From 287a25a35371a64c356a3318360b240f8ee378fb Mon Sep 17 00:00:00 2001 From: abbodi1406 <abbodi86@gmail.com> Date: Tue, 21 Apr 2026 00:47:14 +0300 Subject: [PATCH 4/4] simplify OOBE title --- fetchupd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetchupd.php b/fetchupd.php index 4e97707..79395ea 100644 --- a/fetchupd.php +++ b/fetchupd.php @@ -379,7 +379,7 @@ function parseFetchUpdate($updateInfo, $out, $arch, $ring, $flight, $build, $sku } if($foundType == 'oobe' && !preg_match("/OOBE|Out of Box/i", $updateTitle)) { - $updateTitle = str_replace('Update', 'Update for Windows OOBE', $updateTitle); + $updateTitle = str_replace('Update', 'OOBE Update', $updateTitle); } if($sku == 406) -- 2.47.3