Seite 1 von 1

Windows 10 22H2 update

Verfasst: 11 Jul 2023, 15:18
von Peckatop
Liebe Forenmitglieder,

ich erstelle gerade ein 22h2-Update-Paket, aber es funktioniert nicht. Es startet, aber dann passiert nichts und es wird angezeigt, dass es erfolgreich installiert wurde. Kann mir jemand einen Weg vorschlagen, wie ich es machen kann oder mich anleiten?

https://drive.google.com/file/d/1y6Ecrg ... drive_link

Vielen Dank im Voraus!

Re: Windows 10 22H2 update

Verfasst: 12 Jul 2023, 14:08
von ThomasT

Re: Windows 10 22H2 update

Verfasst: 13 Jul 2023, 15:00
von Peckatop
ThomasT hat geschrieben: 12 Jul 2023, 14:08 Hallo Peckatop,

wie wäre es mit:
https://download.uib.de/opsi4.2/stable/ ... 2h2-2.opsi
Hi,

ich habe versucht aber konnte ich nicht verstehen wie soll es funktionieren.. ich habe manual da gefunden im PDF, aber funktionierte bei mir nicht (mit diese ISO Datei)

Re: Windows 10 22H2 update

Verfasst: 14 Jul 2023, 12:54
von feltel
Du willst das kleine Enablement-Update verteilen, um von z.B. 21H2 auf 22H2 zu kommen, richtig? Ich habe für unseren Einsatz ff. Skript:

Code: Alles auswählen

[Actions]
requiredWinstVersion >= "4.11.5.16"

DefVar $bitmap$
DefVar $headline$
DefVar $ExitCode$
DefVar $CurrentWindowsBuild$
DefVar $CurrentWindowsPatchlevel$
include_append "%WinstDir%\lib\section_sub_check_exitcode.opsiinc"
Set $headline$ = getValue("name", getProductMap)
Set $bitmap$ = "_logo.png"


ShowBitmap "%ScriptPath%\" + $bitmap$ $headline$
Message "installiere " + $headline$ + " %installingProdVersion%"

set $CurrentWindowsBuild$ = GetRegistryStringValueSysNative ("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion] CurrentBuild")
set $CurrentWindowsPatchlevel$ = GetRegistryStringValueSysNative ("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion] UBR")

Switch $CurrentWindowsBuild$

        Case "19041"
                Comment "Windows 10 2004 found."
                if $CurrentWindowsPatchlevel$ INT>= "1415"
                        comment "Windows 10 2004 Cummulative Update KB5008212 or later found. 22H2 Upgrade can be applied."
                        DosInAnIcon_22H2Upgrade
                        opsiServiceCall_setProductActionRequest_Install_Edge
                        ExitWindows /Reboot
                else
                        LogError "Windows 10 2004 Cummulative Update KB5008212 not found. 22H2 Upgrade cannot be applied."
                        isFatalError
                endif
        EndCase
        
        Case "19042"
                Comment "Windows 10 20H2 found."
                if $CurrentWindowsPatchlevel$ INT>= "1706"
                        comment "Windows 10 20H2 Cummulative Update KB5013942 or later found. 22H2 Upgrade can be applied."
                        DosInAnIcon_22H2Upgrade
                        ExitWindows /Reboot
                else
                        LogError "Windows 10 20H2 Cummulative Update KB5013942 not found. 22H2 Upgrade cannot be applied."
                        isFatalError
                endif
        EndCase

        Case "19043"
                Comment "Windows 10 21H1 found."
                if $CurrentWindowsPatchlevel$ INT>= "1806"
                        comment "Windows 10 20H2 Cummulative Update KB5014666 or later found. 22H2 Upgrade can be applied."
                        DosInAnIcon_22H2Upgrade
                        ExitWindows /Reboot
                else
                        LogError "Windows 10 21H1 Cummulative Update KB5014666 not found. 22H2 Upgrade cannot be applied."
                        isFatalError
                endif
        EndCase 

        Case "19044"
                Comment "Windows 10 21H2 found"
                if $CurrentWindowsPatchlevel$ INT>= "1806"
                        comment "Windows 10 21H2 Cummulative Update KB5014666 or later found. 22H2 Upgrade can be applied."
                        DosInAnIcon_22H2Upgrade
                        ExitWindows /Reboot
                else
                        LogError "Windows 10 21H1 Cummulative Update KB5014666 not found. 22H2 Upgrade cannot be applied."
                        isFatalError
                endif
        EndCase

        Case "19045"
                Comment "Windows 10 22H2 already installed. Nothing to do."
        EndCase

        DefaultCase
                LogError "Windows 10 2004, 20H2, 21H1 or 21H2 is needed for this upgrade."
                isFatalError
        EndCase

EndSwitch

[DosInAnIcon_22H2Upgrade]
%Systemroot%\System32\dism.exe /online /Add-Package /PackagePath:%ScriptPath%\Setup\windows10.0-kb5015684-x64.cab /NoRestart /quiet

[opsiServiceCall_setProductActionRequest_Install_Edge]
        "method": "setProductActionRequestWithDependencies"
        "params": [
                "microsoft-edge",
                "%HostID%",
                "setup"
                ]
Das Edge auf Setup stellen ist noch ein Überbleibsel aus früheren Zeiten, wo der Chromium Edge noch nicht auf bestimmten Windows 10-Versionen Standard war. Das kann eigentlich weg, weil ja niemand mehr 20H2 o.ä. produktiv einsetzen wird.

Re: Windows 10 22H2 update

Verfasst: 21 Jul 2023, 07:44
von NorbertKoch
Guten Morgen Feltel,

hast Du das als normales Paket erstellt?

Ich habe auch Probleme mit dem Paket von opsi.

Danke!

Re: Windows 10 22H2 update

Verfasst: 21 Jul 2023, 08:15
von feltel
Ja, ist ein OPSI-Paket.

Re: Windows 10 22H2 update

Verfasst: 21 Jul 2023, 13:21
von ThomasT
Wir haben dafür auch ein OPSI-Paket:
https://download.uib.de/opsi_stable/pro ... 2h2-1.opsi