opsi-template-with-user

Antworten
busabernhardg
Beiträge: 163
Registriert: 07 Jul 2008, 16:53

opsi-template-with-user

Beitrag von busabernhardg »

Hallo,

ich habe mittels opsi-setup-detector ein Paket (with user login) erstellt.
Ich Starte das Script mit dem Parameter: execution_method = loginOpsiSetupUser
Das Script installiert alle gewünschten Programme korrekt, jedoch erscheint als Status im opsi-configed trotzdem "unknown - failed(setup)
Im opsiscriptlog erscheint der Fehler im Stage 4 Bereich - Sub_Delete_OpsiSetupUser
Error: Request failed (Method Post). No connection to server could be established. Server-FQDN: localhost, Server-IP: 127.0.0.1 SLL lib loaded: True
[6] [2025-10-17 11:42:16.393] [opsipaket] ~~~~~~~ Start Sub ~~~~~~~ Sub_Delete_OpsiSetupUser
[5] [2025-10-17 11:42:16.393] [opsipaket] comment: Removing the opsiSetupUser if present
[5] [2025-10-17 11:42:16.393] [opsipaket] Execution of: opsiServiceCall_removeOpsiSetupUser /opsiclientd-once
[6] [2025-10-17 11:42:16.393] [opsipaket] "method": "removeOpsiSetupUser"
[6] [2025-10-17 11:42:16.397] [opsipaket] SSL lib (path) should be: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-script\libssl-3.dll
[7] [2025-10-17 11:42:16.397] [opsipaket] SSL lib loaded: OpenSSL 3.0.17 1 Jul 2025
[7] [2025-10-17 11:42:16.397] [opsipaket] Used Protocol: TLSv1.3
[6] [2025-10-17 11:42:16.442] [opsipaket] HTTPSender Post succeeded
[6] [2025-10-17 11:42:16.442] [opsipaket] Server-FQDN: localhost Server-IP: 127.0.0.1
[6] [2025-10-17 11:42:16.442] [opsipaket] JSON Bench for backend_getInterface "params":[],"id":1} Start: 11:42:16:397 Time: 00:00:00:045
[6] [2025-10-17 11:42:16.448] [opsipaket] No method backend_getLicensingInfo at service - perhaps old server or opsiclientd, we fallback to backend_info
[6] [2025-10-17 11:42:16.452] [opsipaket] HTTPSender Post succeeded
[6] [2025-10-17 11:42:16.452] [opsipaket] Server-FQDN: localhost Server-IP: 127.0.0.1
[6] [2025-10-17 11:42:16.452] [opsipaket] JSON Bench for backend_info "params":[],"id":1} Start: 11:42:16:448 Time: 00:00:00:004
[6] [2025-10-17 11:42:16.452] [opsipaket] No modules data in backend_info
[6] [2025-10-17 11:42:16.455] [opsipaket] HTTPSender Post succeeded
[6] [2025-10-17 11:42:16.455] [opsipaket] Server-FQDN: localhost Server-IP: 127.0.0.1
[6] [2025-10-17 11:42:16.455] [opsipaket] JSON Bench for backend_info "params":[],"id":1} Start: 11:42:16:452 Time: 00:00:00:003
[3] [2025-10-17 11:43:46.455] [opsipaket] Prog: Request failed (Method Post). No connection to server could be established. Line: 1566
[6] [2025-10-17 11:43:46.456] [opsipaket] Resolve (localhost) to following IPs:
[6] [2025-10-17 11:43:46.456] [opsipaket] 1. IP: ::1
[6] [2025-10-17 11:43:46.456] [opsipaket] 2. IP: 127.0.0.1
[3] [2025-10-17 11:43:46.456] [opsipaket] Error: Request failed (Method Post). No connection to server could be established. Server-FQDN: localhost, Server-IP: 127.0.0.1 SLL lib loaded: True
[6] [2025-10-17 11:43:46.462] [opsipaket] DisableWow64FsRedirection succeeded
[5] [2025-10-17 11:43:46.464] [opsipaket] ShellCall Executing: "C:\WINDOWS\system32\\cmd.exe" /C "NET USER opsiSetupUser /DELETE"
[6] [2025-10-17 11:43:46.692] [opsipaket] ExitCode 2
[7] [2025-10-17 11:43:46.692] [opsipaket] output:
[7] [2025-10-17 11:43:46.692] [opsipaket] --------------
[7] [2025-10-17 11:43:46.692] [opsipaket] Der Benutzername konnte nicht gefunden werden.
[7] [2025-10-17 11:43:46.692] [opsipaket]
[7] [2025-10-17 11:43:46.692] [opsipaket] Sie erhalten weitere Hilfe, wenn Sie NET HELPMSG 2221 eingeben.
[7] [2025-10-17 11:43:46.692] [opsipaket]
[7] [2025-10-17 11:43:46.692] [opsipaket]
[6] [2025-10-17 11:43:46.692] [opsipaket] RevertWow64FsRedirection succeeded
[6] [2025-10-17 11:43:46.698] [opsipaket] The value of the variable "$ExitCode$" is now: "2"
[5] [2025-10-17 11:43:46.699] [opsipaket] comment: Scanning for leftover opsiSetupUser profile folders
[7] [2025-10-17 11:43:46.699] [opsipaket] DisableWow64FsRedirection succeeded
[6] [2025-10-17 11:43:46.701] [opsipaket] ShellCall Executing: "C:\WINDOWS\system32\\cmd.exe" /C "DIR /B /AD "C:\Users""
[7] [2025-10-17 11:43:46.813] [opsipaket] ExitCode 0
[7] [2025-10-17 11:43:46.813] [opsipaket] RevertWow64FsRedirection succeeded
[7] [2025-10-17 11:43:46.817] [opsipaket] The value of the variable "$ResultList$" is now:
[7] [2025-10-17 11:43:46.817] [opsipaket] (string 0)Administrator
[7] [2025-10-17 11:43:46.817] [opsipaket] (string 1)All Users
[7] [2025-10-17 11:43:46.817] [opsipaket] (string 2)Default
[7] [2025-10-17 11:43:46.817] [opsipaket] (string 3)Default User
[7] [2025-10-17 11:43:46.817] [opsipaket] (string 4)opsisetupuser
[7] [2025-10-17 11:43:46.817] [opsipaket] (string 5)Public
[7] [2025-10-17 11:43:46.817] [opsipaket] expression: [count($ResultList$) INT = "0"] <<< is false
[6] [2025-10-17 11:43:46.817] [opsipaket] expression: [NOT (count($ResultList$) INT = "0")] <<< is true
[7] [2025-10-17 11:43:46.818] [opsipaket] The value of the variable "$ResultList$" is now:
[7] [2025-10-17 11:43:46.818] [opsipaket] (string 0)opsisetupuser
[7] [2025-10-17 11:43:46.818] [opsipaket] expression: [count($ResultList$) INT = "0"] <<< is false
[6] [2025-10-17 11:43:46.818] [opsipaket] expression: [NOT (count($ResultList$) INT = "0")] <<< is true
[5] [2025-10-17 11:43:46.818] [opsipaket] comment: Deleting leftover opsiSetupUser profile folders
[6] [2025-10-17 11:43:46.818] [opsipaket]
[6] [2025-10-17 11:43:46.819] [opsipaket] ~~~~~~ Looping through: 'opsisetupuser'
[6] [2025-10-17 11:43:46.819] [opsipaket] DisableWow64FsRedirection succeeded
[5] [2025-10-17 11:43:46.821] [opsipaket] ShellCall Executing: "C:\WINDOWS\system32\\cmd.exe" /C "rmdir /S /Q "C:\Users\opsisetupuser""
[6] [2025-10-17 11:43:47.465] [opsipaket] ExitCode 0
[7] [2025-10-17 11:43:47.465] [opsipaket] output:
[7] [2025-10-17 11:43:47.465] [opsipaket] --------------
[7] [2025-10-17 11:43:47.465] [opsipaket] C:\Users\opsisetupuser\AppData\Local\Packages\MICROS~1.CBS\LOCALS~1\EBWEBV~1\Variations - Das System kann die angegebene Datei nicht finden.
[7] [2025-10-17 11:43:47.465] [opsipaket] C:\Users\opsisetupuser\AppData\Local\Temp\pdf24.exe.stdout._0_66421_2083141076.log - Das System kann die angegebene Datei nicht finden.
[7] [2025-10-17 11:43:47.465] [opsipaket] C:\Users\opsisetupuser\AppData\Local\Temp\wmsetup.log - Das System kann die angegebene Datei nicht finden.
[7] [2025-10-17 11:43:47.465] [opsipaket] C:\Users\opsisetupuser\AppData\Roaming\MICROS~1\Windows\SendTo\Dokumente.mydocs - Das System kann die angegebene Datei nicht finden.
[7] [2025-10-17 11:43:47.465] [opsipaket] C:\Users\opsisetupuser\AppData\Roaming\MICROS~1\Windows\STARTM~1\Programs\File Explorer.lnk - Das System kann die angegebene Datei nicht finden.
[7] [2025-10-17 11:43:47.465] [opsipaket] C:\Users\opsisetupuser\AppData\Roaming\MICROS~1\Windows\STARTM~1\Programs\OneDrive.lnk - Das System kann die angegebene Datei nicht finden.
[7] [2025-10-17 11:43:47.465] [opsipaket]
[6] [2025-10-17 11:43:47.465] [opsipaket] RevertWow64FsRedirection succeeded
[6] [2025-10-17 11:43:47.469] [opsipaket]
[6] [2025-10-17 11:43:47.469] [opsipaket] ~~~~~~ End Loop
[7] [2025-10-17 11:43:47.469] [opsipaket] The value of the variable "$ResultList$" is now:
[5] [2025-10-17 11:43:47.470] [opsipaket] comment: Deleting leftover opsiSetupUser entries from ProfileList
[7] [2025-10-17 11:43:47.470] [opsipaket] Registry started without redirection (64 Bit)
[7] [2025-10-17 11:43:47.470] [opsipaket] The value of the variable "$ResultList$" is now:
[7] [2025-10-17 11:43:47.470] [opsipaket] (string 0)S-1-5-18
[7] [2025-10-17 11:43:47.470] [opsipaket] (string 1)S-1-5-19
[7] [2025-10-17 11:43:47.470] [opsipaket] (string 2)S-1-5-20
[7] [2025-10-17 11:43:47.470] [opsipaket] (string 3)S-1-5-21-1123226228-2918926867-1342183503-1002
[7] [2025-10-17 11:43:47.470] [opsipaket] (string 4)S-1-5-21-1123226228-2918926867-1342183503-500
[7] [2025-10-17 11:43:47.470] [opsipaket] (string 5)S-1-5-21-324167336-3636654602-2448241166-1109
[7] [2025-10-17 11:43:47.470] [opsipaket] (string 6)S-1-5-21-324167336-3636654602-2448241166-1177
[7] [2025-10-17 11:43:47.470] [opsipaket] (string 7)S-1-5-21-324167336-3636654602-2448241166-3153
[7] [2025-10-17 11:43:47.470] [opsipaket] (string 8)S-1-5-21-324167336-3636654602-2448241166-5636
[6] [2025-10-17 11:43:47.470] [opsipaket]
[6] [2025-10-17 11:43:47.470] [opsipaket] ~~~~~~ Looping through: 'S-1-5-18', 'S-1-5-19', 'S-1-5-20', 'S-1-5-21-1123226228-2918926867-1342183503-1002', 'S-1-5-21-1123226228-2918926867-1342183503-500', 'S-1-5-21-324167336-3636654602-2448241166-1109', 'S-1-5-21-324167336-3636654602-2448241166-1177', 'S-1-5-21-324167336-3636654602-2448241166-3153', 'S-1-5-21-324167336-3636654602-2448241166-5636'
[6] [2025-10-17 11:43:47.471] [opsipaket]
[6] [2025-10-17 11:43:47.471] [opsipaket] ~~~~~~~ Start Sub ~~~~~~~ Sub_Scan_ProfileList
[6] [2025-10-17 11:43:47.471] [opsipaket] The value of the variable "$SID$" is now: "S-1-5-18"
[7] [2025-10-17 11:43:47.471] [opsipaket] Registry started readonly
[7] [2025-10-17 11:43:47.471] [opsipaket] Registry started without redirection (64 Bit)
[6] [2025-10-17 11:43:47.471] [opsipaket] Registry key [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-18] opened
[6] [2025-10-17 11:43:47.471] [opsipaket] Key closed
[6] [2025-10-17 11:43:47.471] [opsipaket] expression: [contains(lower(GetRegistryValue("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\" + $SID$ , "ProfileImagePath", "SysNative")), "opsisetupuser")] <<< is false
[6] [2025-10-17 11:43:47.472] [opsipaket]
[6] [2025-10-17 11:43:47.472] [opsipaket] ~~~~~~~ End Sub ~~~~~~~ Sub_Scan_ProfileList
[6] [2025-10-17 11:43:47.472] [opsipaket]
[6] [2025-10-17 11:43:47.472] [opsipaket]
[6] [2025-10-17 11:43:47.472] [opsipaket] ~~~~~~~ Start Sub ~~~~~~~ Sub_Scan_ProfileList
[6] [2025-10-17 11:43:47.473] [opsipaket] The value of the variable "$SID$" is now: "S-1-5-19"
[7] [2025-10-17 11:43:47.473] [opsipaket] Registry started readonly
[7] [2025-10-17 11:43:47.473] [opsipaket] Registry started without redirection (64 Bit)
[6] [2025-10-17 11:43:47.473] [opsipaket] Registry key [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-19] opened
[6] [2025-10-17 11:43:47.473] [opsipaket] Key closed
[6] [2025-10-17 11:43:47.473] [opsipaket] expression: [contains(lower(GetRegistryValue("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\" + $SID$ , "ProfileImagePath", "SysNative")), "opsisetupuser")] <<< is false
[6] [2025-10-17 11:43:47.473] [opsipaket]
[6] [2025-10-17 11:43:47.473] [opsipaket] ~~~~~~~ End Sub ~~~~~~~ Sub_Scan_ProfileList
[6] [2025-10-17 11:43:47.473] [opsipaket]
[6] [2025-10-17 11:43:47.474] [opsipaket]
[6] [2025-10-17 11:43:47.474] [opsipaket] ~~~~~~~ Start Sub ~~~~~~~ Sub_Scan_ProfileList
[6] [2025-10-17 11:43:47.474] [opsipaket] The value of the variable "$SID$" is now: "S-1-5-20"
[7] [2025-10-17 11:43:47.474] [opsipaket] Registry started readonly
[7] [2025-10-17 11:43:47.474] [opsipaket] Registry started without redirection (64 Bit)
[6] [2025-10-17 11:43:47.474] [opsipaket] Registry key [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-20] opened
[6] [2025-10-17 11:43:47.474] [opsipaket] Key closed
[6] [2025-10-17 11:43:47.474] [opsipaket] expression: [contains(lower(GetRegistryValue("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\" + $SID$ , "ProfileImagePath", "SysNative")), "opsisetupuser")] <<< is false
[6] [2025-10-17 11:43:47.475] [opsipaket]
[6] [2025-10-17 11:43:47.475] [opsipaket] ~~~~~~~ End Sub ~~~~~~~ Sub_Scan_ProfileList
[6] [2025-10-17 11:43:47.475] [opsipaket]
[6] [2025-10-17 11:43:47.475] [opsipaket]
[6] [2025-10-17 11:43:47.475] [opsipaket] ~~~~~~~ Start Sub ~~~~~~~ Sub_Scan_ProfileList
[6] [2025-10-17 11:43:47.475] [opsipaket] The value of the variable "$SID$" is now: "S-1-5-21-1123226228-2918926867-1342183503-1002"
[7] [2025-10-17 11:43:47.476] [opsipaket] Registry started readonly
[7] [2025-10-17 11:43:47.476] [opsipaket] Registry started without redirection (64 Bit)
[6] [2025-10-17 11:43:47.476] [opsipaket] Registry key [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-1123226228-2918926867-1342183503-1002] opened
[6] [2025-10-17 11:43:47.476] [opsipaket] Key closed
[6] [2025-10-17 11:43:47.476] [opsipaket] expression: [contains(lower(GetRegistryValue("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\" + $SID$ , "ProfileImagePath", "SysNative")), "opsisetupuser")] <<< is true
[5] [2025-10-17 11:43:47.476] [opsipaket] comment: Deleting S-1-5-21-1123226228-2918926867-1342183503-1002 from ProfileList
[5] [2025-10-17 11:43:47.477] [opsipaket] Execution of: Registry_Delete_From_ProfileList /SysNative
[7] [2025-10-17 11:43:47.482] [opsipaket] Registry started without redirection (64 Bit)
[6] [2025-10-17 11:43:47.483] [opsipaket] Registry key [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-1123226228-2918926867-1342183503-1002] opened
[6] [2025-10-17 11:43:47.483] [opsipaket] Key closed
[6] [2025-10-17 11:43:47.483] [opsipaket] Registry key [HKLM\] opened
[6] [2025-10-17 11:43:47.483] [opsipaket] SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-1123226228-2918926867-1342183503-1002 deleted
[6] [2025-10-17 11:43:47.483] [opsipaket] Key closed
[6] [2025-10-17 11:43:47.483] [opsipaket]
[6] [2025-10-17 11:43:47.483] [opsipaket] ~~~~~~~ End Sub ~~~~~~~ Sub_Scan_ProfileList
[6] [2025-10-17 11:43:47.483] [opsipaket]
[6] [2025-10-17 11:43:47.483] [opsipaket]
[6] [2025-10-17 11:43:47.483] [opsipaket] ~~~~~~~ Start Sub ~~~~~~~ Sub_Scan_ProfileList
[6] [2025-10-17 11:43:47.484] [opsipaket] The value of the variable "$SID$" is now: "S-1-5-21-1123226228-2918926867-1342183503-500"
[7] [2025-10-17 11:43:47.484] [opsipaket] Registry started readonly
[7] [2025-10-17 11:43:47.484] [opsipaket] Registry started without redirection (64 Bit)
[6] [2025-10-17 11:43:47.484] [opsipaket] Registry key [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-1123226228-2918926867-1342183503-500] opened
[6] [2025-10-17 11:43:47.484] [opsipaket] Key closed
[6] [2025-10-17 11:43:47.484] [opsipaket] expression: [contains(lower(GetRegistryValue("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\" + $SID$ , "ProfileImagePath", "SysNative")), "opsisetupuser")] <<< is false
[6] [2025-10-17 11:43:47.484] [opsipaket]
[6] [2025-10-17 11:43:47.485] [opsipaket] ~~~~~~~ End Sub ~~~~~~~ Sub_Scan_ProfileList
[6] [2025-10-17 11:43:47.485] [opsipaket]
[6] [2025-10-17 11:43:47.485] [opsipaket]
[6] [2025-10-17 11:43:47.485] [opsipaket] ~~~~~~~ Start Sub ~~~~~~~ Sub_Scan_ProfileList
[6] [2025-10-17 11:43:47.485] [opsipaket] The value of the variable "$SID$" is now: "S-1-5-21-324167336-3636654602-2448241166-1109"
[7] [2025-10-17 11:43:47.486] [opsipaket] Registry started readonly
[7] [2025-10-17 11:43:47.486] [opsipaket] Registry started without redirection (64 Bit)
[6] [2025-10-17 11:43:47.486] [opsipaket] Registry key [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-324167336-3636654602-2448241166-1109] opened
[6] [2025-10-17 11:43:47.486] [opsipaket] Key closed
[6] [2025-10-17 11:43:47.486] [opsipaket] expression: [contains(lower(GetRegistryValue("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\" + $SID$ , "ProfileImagePath", "SysNative")), "opsisetupuser")] <<< is false
[6] [2025-10-17 11:43:47.486] [opsipaket]
[6] [2025-10-17 11:43:47.486] [opsipaket] ~~~~~~~ End Sub ~~~~~~~ Sub_Scan_ProfileList
[6] [2025-10-17 11:43:47.486] [opsipaket]
[6] [2025-10-17 11:43:47.487] [opsipaket]
[6] [2025-10-17 11:43:47.487] [opsipaket] ~~~~~~~ Start Sub ~~~~~~~ Sub_Scan_ProfileList
[6] [2025-10-17 11:43:47.487] [opsipaket] The value of the variable "$SID$" is now: "S-1-5-21-324167336-3636654602-2448241166-1177"
[7] [2025-10-17 11:43:47.487] [opsipaket] Registry started readonly
[7] [2025-10-17 11:43:47.487] [opsipaket] Registry started without redirection (64 Bit)
[6] [2025-10-17 11:43:47.487] [opsipaket] Registry key [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-324167336-3636654602-2448241166-1177] opened
[6] [2025-10-17 11:43:47.487] [opsipaket] Key closed
[6] [2025-10-17 11:43:47.487] [opsipaket] expression: [contains(lower(GetRegistryValue("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\" + $SID$ , "ProfileImagePath", "SysNative")), "opsisetupuser")] <<< is false
[6] [2025-10-17 11:43:47.487] [opsipaket]
[6] [2025-10-17 11:43:47.487] [opsipaket] ~~~~~~~ End Sub ~~~~~~~ Sub_Scan_ProfileList
[6] [2025-10-17 11:43:47.487] [opsipaket]
[6] [2025-10-17 11:43:47.488] [opsipaket]
[6] [2025-10-17 11:43:47.488] [opsipaket] ~~~~~~~ Start Sub ~~~~~~~ Sub_Scan_ProfileList
[6] [2025-10-17 11:43:47.488] [opsipaket] The value of the variable "$SID$" is now: "S-1-5-21-324167336-3636654602-2448241166-3153"
[7] [2025-10-17 11:43:47.489] [opsipaket] Registry started readonly
[7] [2025-10-17 11:43:47.489] [opsipaket] Registry started without redirection (64 Bit)
[6] [2025-10-17 11:43:47.489] [opsipaket] Registry key [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-324167336-3636654602-2448241166-3153] opened
[6] [2025-10-17 11:43:47.489] [opsipaket] Key closed
[6] [2025-10-17 11:43:47.489] [opsipaket] expression: [contains(lower(GetRegistryValue("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\" + $SID$ , "ProfileImagePath", "SysNative")), "opsisetupuser")] <<< is false
[6] [2025-10-17 11:43:47.489] [opsipaket]
[6] [2025-10-17 11:43:47.489] [opsipaket] ~~~~~~~ End Sub ~~~~~~~ Sub_Scan_ProfileList
[6] [2025-10-17 11:43:47.489] [opsipaket]
[6] [2025-10-17 11:43:47.489] [opsipaket]
[6] [2025-10-17 11:43:47.489] [opsipaket] ~~~~~~~ Start Sub ~~~~~~~ Sub_Scan_ProfileList
[6] [2025-10-17 11:43:47.490] [opsipaket] The value of the variable "$SID$" is now: "S-1-5-21-324167336-3636654602-2448241166-5636"
[7] [2025-10-17 11:43:47.490] [opsipaket] Registry started readonly
[7] [2025-10-17 11:43:47.490] [opsipaket] Registry started without redirection (64 Bit)
[6] [2025-10-17 11:43:47.490] [opsipaket] Registry key [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-324167336-3636654602-2448241166-5636] opened
[6] [2025-10-17 11:43:47.490] [opsipaket] Key closed
[6] [2025-10-17 11:43:47.490] [opsipaket] expression: [contains(lower(GetRegistryValue("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\" + $SID$ , "ProfileImagePath", "SysNative")), "opsisetupuser")] <<< is false
[6] [2025-10-17 11:43:47.490] [opsipaket]
[6] [2025-10-17 11:43:47.490] [opsipaket] ~~~~~~~ End Sub ~~~~~~~ Sub_Scan_ProfileList
[6] [2025-10-17 11:43:47.490] [opsipaket]
[6] [2025-10-17 11:43:47.491] [opsipaket]
[6] [2025-10-17 11:43:47.491] [opsipaket] ~~~~~~ End Loop
[7] [2025-10-17 11:43:47.491] [opsipaket] The value of the variable "$ResultList$" is now:
[6] [2025-10-17 11:43:47.491] [opsipaket]
[6] [2025-10-17 11:43:47.491] [opsipaket] ~~~~~~~ End Sub ~~~~~~~ Sub_Delete_OpsiSetupUser
[6] [2025-10-17 11:43:47.491] [opsipaket]
[5] [2025-10-17 11:43:47.492] [opsipaket] comment: Cleanup: Disable start of opsicliend service in safe mode with network
[5] [2025-10-17 11:43:47.493] [opsipaket] Execution of: Registry_start_opsiclientd_in_safemode_network_delete /sysnative
[7] [2025-10-17 11:43:47.493] [opsipaket] Registry started without redirection (64 Bit)
[5] [2025-10-17 11:43:47.493] [opsipaket] Registry key [HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\opsiclientd] does not exist
[6] [2025-10-17 11:43:47.493] [opsipaket] Registry key [HKLM\] opened
[6] [2025-10-17 11:43:47.493] [opsipaket] Info: key "SYSTEM\CurrentControlSet\Control\SafeBoot\Network\opsiclientd" not found
[6] [2025-10-17 11:43:47.493] [opsipaket] Key closed
[5] [2025-10-17 11:43:47.493] [opsipaket] comment: Determining if local files need to be deleted
[7] [2025-10-17 11:43:47.493] [opsipaket] expression: [contains("https://192.168.10.26:4447", "https://127.0.0.1")] <<< is false
[7] [2025-10-17 11:43:47.493] [opsipaket] expression: [contains("https://192.168.10.26:4447", "https://localhost")] <<< is false
[7] [2025-10-17 11:43:47.494] [opsipaket] expression: [contains("p:\opsipaket", "\opsi.org\cache\depot")] <<< is false
[7] [2025-10-17 11:43:47.494] [opsipaket] expression: [$CopyFilesLocally$ = "false"] <<< is true
[7] [2025-10-17 11:43:47.494] [opsipaket] expression: [($CopyFilesLocally$ = "false")] <<< is true
[7] [2025-10-17 11:43:47.494] [opsipaket] expression: [(contains("p:\opsipaket", "\opsi.org\cache\depot")) OR ($CopyFilesLocally$ = "false")] <<< is true
[7] [2025-10-17 11:43:47.494] [opsipaket] expression: [(contains("https://192.168.10.26:4447", "https://localhost")) OR (contains("p:\opsipaket", "\opsi.org\cache\depot")) OR ($CopyFilesLocally$ = "false")] <<< is true
[7] [2025-10-17 11:43:47.494] [opsipaket] expression: [(contains("https://192.168.10.26:4447", "https://127.0.0.1")) OR (contains("https://192.168.10.26:4447", "https://localhost")) OR (contains("p:\opsipaket", "\opsi.org\cache\depot")) OR ($CopyFilesLocally$ = "false")] <<< is true
[6] [2025-10-17 11:43:47.494] [opsipaket] expression: [NOT ((contains("https://192.168.10.26:4447", "https://127.0.0.1")) OR (contains("https://192.168.10.26:4447", "https://localhost")) OR (contains("p:\opsipaket", "\opsi.org\cache\depot")) OR ($CopyFilesLocally$ = "false"))] <<< is false
[5] [2025-10-17 11:43:47.494] [opsipaket] comment: Resetting the Stage
[6] [2025-10-17 11:43:47.494] [opsipaket] The value of the variable "$Stage$" is now: "1"
[5] [2025-10-17 11:43:47.495] [opsipaket] Execution of: Registry_Save_Stage /32bit
[7] [2025-10-17 11:43:47.495] [opsipaket] Registry started with redirection (32 Bit)
[7] [2025-10-17 11:43:47.495] [opsipaket] Key is: HKLM\SOFTWARE\opsi.org\opsipaket
[6] [2025-10-17 11:43:47.495] [opsipaket] Registry key [HKLM\SOFTWARE\opsi.org\opsipaket] opened
[6] [2025-10-17 11:43:47.495] [opsipaket] Variable "Stage" had value "4"
[6] [2025-10-17 11:43:47.495] [opsipaket] Info: "Stage" changed to "1"
[6] [2025-10-17 11:43:47.495] [opsipaket] Key closed
[5] [2025-10-17 11:43:47.496] [opsipaket] comment: Evaluating errors
[7] [2025-10-17 11:43:47.496] [opsipaket] Registry started readonly
[7] [2025-10-17 11:43:47.496] [opsipaket] Registry started with redirection (32 Bit)
[6] [2025-10-17 11:43:47.496] [opsipaket] Registry key [HKLM\SOFTWARE\opsi.org\opsipaket] opened
[6] [2025-10-17 11:43:47.496] [opsipaket] Key closed
[6] [2025-10-17 11:43:47.496] [opsipaket] expression: [GetRegistryValue($ProductSettingsKey$, "FatalFlag", "32bit") = "true"] <<< is true
[7] [2025-10-17 11:43:47.496] [opsipaket] Registry started readonly
[7] [2025-10-17 11:43:47.496] [opsipaket] Registry started with redirection (32 Bit)
[6] [2025-10-17 11:43:47.496] [opsipaket] Registry key [HKLM\SOFTWARE\opsi.org\opsipaket] opened
[6] [2025-10-17 11:43:47.496] [opsipaket] Key closed
[6] [2025-10-17 11:43:47.496] [opsipaket] The value of the variable "$ErrorFlag$" is now: ""
[5] [2025-10-17 11:43:47.497] [opsipaket] comment: Deleting the $ProductSettingsKey$
[5] [2025-10-17 11:43:47.497] [opsipaket] Execution of: Registry_Delete_ProductSettingsKey /32bit
[7] [2025-10-17 11:43:47.497] [opsipaket] Registry started with redirection (32 Bit)
[6] [2025-10-17 11:43:47.497] [opsipaket] Registry key [HKLM\SOFTWARE\opsi.org\opsipaket] opened
[6] [2025-10-17 11:43:47.497] [opsipaket] Key closed
[6] [2025-10-17 11:43:47.497] [opsipaket] Registry key [HKLM\] opened
[6] [2025-10-17 11:43:47.497] [opsipaket] SOFTWARE\opsi.org\opsipaket deleted
[6] [2025-10-17 11:43:47.498] [opsipaket] Key closed
[5] [2025-10-17 11:43:47.498] [opsipaket] comment: The installation was not completed successfully
[3] [2025-10-17 11:43:47.498] [opsipaket] Error:
[2] [2025-10-17 11:43:47.498] [opsipaket] Error level set to fatal:
[6] [2025-10-17 11:43:47.498] [opsipaket] Process aborted
[1] [2025-10-17 11:43:47.498] [opsipaket] ___________________
[1] [2025-10-17 11:43:47.498] [opsipaket] script finished: failed
[1] [2025-10-17 11:43:47.498] [opsipaket] 3 errors
[1] [2025-10-17 11:43:47.498] [opsipaket] 1 warning
[1] [2025-10-17 11:43:47.498] [opsipaket] Exitcode will be: 1
[1] [2025-10-17 11:43:47.498] [opsipaket]
[1] [2025-10-17 11:43:47.498] [opsipaket] handled product: opsipaket Version: 7.1-1
Was mich auch noch stutzig macht, er meldet sich mit dem opsisetupuser an windows an, führt das Script dann aber trotzdem als user:system aus. Denke das ist aber ein andere Problem, oder ist das per Design so?

lg
Bernhard
Opsiuser45
Beiträge: 3
Registriert: 12 Okt 2025, 10:52

Re: opsi-template-with-user

Beitrag von Opsiuser45 »

Moin,

hört sich ja nach einem ähnlichen Problem wie bei mir an. Das ist leider eine lange Lernkurve gewesen bis ich verstanden hatte, das alle Userscripte als Systemuser ausgeführt werden. Bis auf WinBatch Sektionen die Explizit als /RunAsLoggedOnUser gestartet werden. Die haben dann aber auch keinen Zugriff auf das Depotverzeichnis.

Ist meiner Meinung nach irgendwie eine komische Konstellation, da man so gezwungen wird den Userpart komplett mit dem OPSI-Script umzusetzen.

Schöner wäre es gewesen, wenn man das schon so umsetzen muss, dass man im Install Script Dateien oder ein Verzeichnis definieren kann, dessen Dateien als Userpart ausgewiesen werden und auf den Rechner in ein verstecktes Verzeichnis unter der Product-ID des Pakets kopiert werden, wo dann der Userpart immer lokale verfügbar bleibt um beim anmelden der User verfügbar zu sein. So wäre das dann nicht so problematisch und konzeptionell so wie man es auch von anderen Softwareverteilungen kennt. So wie es jetzt ist, ist es meiner Meinung nach ziemlich kompliziert umgesetzt.

Das könnte man sich jetzt so manuell gescriptet auch selber bauen, dafür müsste aber garantiert sein das die Product-id Variable im OPSI-script immer verfügbar ist, woran ich bisher auch gescheitert bin. Das Konzept von OPSI ist im Allgemeinen nicht schlecht, aber der Feinschliff fehlt gerade bei solchen Dingen meiner Meinung nach noch.

Gruß
OpsiUser45
busabernhardg
Beiträge: 163
Registriert: 07 Jul 2008, 16:53

Re: opsi-template-with-user

Beitrag von busabernhardg »

Hallo,

zu Installierende SW: progress open-edge-client

Script:

Code: Alles auswählen

Comment "Starting the setup program"
	Message "Installing "
	ChangeDirectory "%ScriptPath%\localsetup\files"
		comment "start shellscript as LoggedOnUser"
		shellscript_info /RunAsLoggedOnUser

[shellscript_info]
whoami >> c:\tmp\info.txt
habe jetz folgendes getestet:
opsi-template-with-user => Property: execution_method: loginOpsiSetupUser
Das Ergebnis in c:\tmp\info.txt
nt-autorität\system
In diesem Fall ist zwar der opsisetupuser an Windows angemeldet, die Installation wird aber mit nt-autorität\system gestartet => funktioniert nicht

Wenn ich das ganze mit dieser Property laufe lasse:
opsi-template-with-user => Property: execution_method: runOpsiScriptAsOpsiSetupUser
Bekomme ich als Ergebnis in c:\tmp\info.txt
win11test\opsisetupuser
In diesem Fall wird die Installation als opsisetupuser gestartet, doch es ist kein User an Windows angemeldet => funktioniert auch nicht

Nach meinen Beobachtungen muss der open-edge-client jedoch als angemeldeter User und in dessen Context ausgeführt werden, sonst bricht die Installation ab.

Hat das noch jemand eine Idee, wie ich das zum Laufen bringe?

lg
Bernhard
busabernhardg
Beiträge: 163
Registriert: 07 Jul 2008, 16:53

Re: opsi-template-with-user

Beitrag von busabernhardg »

Hallo,

so ich hab's nun doch geschafft, den openedge Client mit dem script opsi-template-with-user zu installieren.
Wie schon im 1. Post geschrieben, wird das Programm korrekt installiert, nur beim "Aufräumen" wirft das Script einen Fehler und stellt den Paketstatus im opsi-configed auf "failed(setup)"
Setup with user login1.png
Setup with user login1.png (18.83 KiB) 139 mal betrachtet
lg
Bernhard
Antworten