Fehler in windows11-upgrade_24H2-1

Antworten
kinzi
Beiträge: 193
Registriert: 27 Okt 2010, 11:38

Fehler in windows11-upgrade_24H2-1

Beitrag von kinzi »

Hallo,

das Paket windows11-upgrade_24H2-1 hat MMN einen Fehler. der sich im Log so äußert:

Code: Alles auswählen

(518)     [5] [2025-03-27 17:18:41.585] [windows11-upgrade]   comment: Backing up the local smart card security policy value
(519)     [7] [2025-03-27 17:18:41.585] [windows11-upgrade]   Registry started readonly
(520)     [7] [2025-03-27 17:18:41.585] [windows11-upgrade]   Registry started without redirection (64 Bit)
(521)     [6] [2025-03-27 17:18:41.585] [windows11-upgrade]   Registry key [HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System] opened
(522)     [6] [2025-03-27 17:18:41.585] [windows11-upgrade]   Variable "scforceoption"  not found. Code: 2
(523)     [6] [2025-03-27 17:18:41.586] [windows11-upgrade]   Variable "scforceoption"  not found. Code: 2
(524)     [6] [2025-03-27 17:18:41.586] [windows11-upgrade]   Key closed
(525)     [6] [2025-03-27 17:18:41.586] [windows11-upgrade]     The value of the variable "$ScForceOption$" is now: ""
(526)     [5] [2025-03-27 17:18:41.586] [windows11-upgrade]   Execution of: Registry_Backup_ScForceOption /32bit
(527)     [7] [2025-03-27 17:18:41.586] [windows11-upgrade]     Registry started with redirection (32 Bit)
(528)     [7] [2025-03-27 17:18:41.586] [windows11-upgrade]     Key is: HKLM\SOFTWARE\opsi.org\windows11-upgrade
(529)     [6] [2025-03-27 17:18:41.586] [windows11-upgrade]     Registry key [HKLM\SOFTWARE\opsi.org\windows11-upgrade] opened
(530)     [2] [2025-03-27 17:18:41.586] [windows11-upgrade]         Exception in CreateAndProcessScript: Handling Aktionsliste: "" is an invalid integer
(531)     [1] [2025-03-27 17:18:41.586] [windows11-upgrade] ___________________
(532)     [1] [2025-03-27 17:18:41.586] [windows11-upgrade] script finished: failed
(533)     [1] [2025-03-27 17:18:41.586] [windows11-upgrade] 0 errors
(534)     [1] [2025-03-27 17:18:41.586] [windows11-upgrade] 0 warnings
(535)     [1] [2025-03-27 17:18:41.587] [windows11-upgrade] Exitcode will be: 1
(536)     [1] [2025-03-27 17:18:41.587] [windows11-upgrade] 
(537)     [1] [2025-03-27 17:18:41.587] [windows11-upgrade] handled product: windows11-upgrade Version: 24h2-1
(538)     [1] [2025-03-27 17:18:41.587] [windows11-upgrade] 
(539)     [5] [2025-03-27 17:18:41.587] [windows11-upgrade] We do not look for a update script, because the setup script is failed
Wenn der ausgelesene Wert nicht existiert, schlägt das Abspeichern desselben (als Backup) fehl. Betroffene Code-Stelle im "setup.opsiscript" des Pakets:

Code: Alles auswählen

	Comment "Backing up the local smart card security policy value"
		Set $ScForceOption$	= GetRegistryValue("HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System", "scforceoption", "SysNative")
		Registry_Backup_ScForceOption /32bit

	Comment "Disabling ScForceOption"
		if $ScForceOption$ = "1"
			Registry_Disable_ScForceOption /SysNative
		endif
Da gehört vor "Registry_Backup_ScForceOption /32bit" eine Prüfung auf "" rein.

Vielleicht interessiert es jemanden und man möchte es nachziehen.

Gruß
kinzi
Benutzeravatar
Der-Matze
uib-Team
Beiträge: 107
Registriert: 16 Mär 2009, 11:00

Re: Fehler in windows11-upgrade_24H2-1

Beitrag von Der-Matze »

Hallo Kinzi,

vielen Dank für dein ausführliches Feedback. Bitte teste mal mit dieser Version:
https://opsipackages.43.opsi.org/testin ... 4h2-3.opsi
Damit sollte der Fehler behoben sein. Über eine Rückmeldung würde ich mich freuen.

Gruß
Matthias
Antworten