ich habe aktuell das Windows10-Upgrade Paket in neuer Version ausgerollt, habe dazu alle Dokus gelesen, alle Pakete auf den aktuellsten Stand gebracht, opsi-client-agent ist auf 4.2.x und ich habe auch den anderen Thread hierzu durchgelesen, wo die Links zu den experimental Paketen zu finden sind, was installiert sein muss.
Ich habe dies alles gemacht, was aber leider nicht funktioniert ist die neue Installationsvariante mit "runOpsiScriptAsOpsiSetupUser".
Bei uns funktioniert leider "nur" die loginOpsiSetupUser Variante.
Außerdem logged die Variante auch keinen User ein, funktioniert dann aber manchmal trotzdem. Früher im Upgrade Paket wurde wirklich der User auf den Desktop angemeldet, so wie es auch in der Doku steht. Das ist hier nicht der Fall?! Korrekt?
Ich wollte eigentlich sehr gerne die neue "Default" Variante nutzen, könnt Ihr mir vielleicht sagen was das Problem sein könnte?
Gleich vorweg, super Paket soweit. Ich bin jedes Jahr hier ja dran und dieses Paket ist wirklich viel besser geworden, Fehlererkennung, Schalterauswahl usw. Danke dafür vorab !!!
Diese Ausgabe bekomme ich, wenn ich die Default Methode verwende. Übrigens egal ob ich localcopy anschalte, debug true oder quiet auf false setze. Habe ganz viele Varianten und Kombinationen durch, er bringt immer die selbe Fehlermeldung und startet auch nie mit dem eigentlichen Windows Setup.
Code: Alles auswählen
Error: retrieveJSONObject --- opsi service problem ----> {"message":"RuntimeError('No login capable opsi credential provider connected')","class":"RuntimeError"}
Received (first 512): {"id": 1, "error": {"class": "RuntimeError", "message": "RuntimeError('No login capable opsi credential provider connected')"}, "result": null}
Error: -> {"message":"RuntimeError('No login capable opsi credential provider connected')","class":"RuntimeError"}
Code: Alles auswählen
Actionrequest for Product: windows10-upgrade is: setup
SslLib should be: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-script\ssleay32.dll
JSON Bench for getProductProperties_hash "params":["windows10-upgrade","pcXXXXXX Start: 10:39:16:570 Time: 00:00:00:036
SslLib should be: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-script\ssleay32.dll
JSON Bench for getProduct_hash "params":["windows10-upgrade","opsi-wgt Start: 10:39:16:607 Time: 00:00:00:019
in TOpsi4Data.initProduct : windows10-upgrade
SslLib should be: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-script\ssleay32.dll
JSON Bench for productOnClient_getObjects "params":["",{"clientId":"pcXXXXXX Start: 10:39:16:626 Time: 00:00:00:016
scriptname: "setup.opsiscript", special path: "p:\windows10-upgrade\"
SslLib should be: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-script\ssleay32.dll
JSON Bench for productOnClient_updateObject "params":[{"clientId":"pcXXXXXX Start: 10:39:16:642 Time: 00:00:00:021
Using new Depot path: p:\
Load from Unicode file
============ Version 4.12.4.36 script "p:\windows10-upgrade\setup.opsiscript"
used script encoding: utf8
used system encoding: cp1252
start: 2022-02-11 10:39:16
installing product: windows10-upgrade_21h2-1
on client named "pcXXXXXX"
loggedin user ""
opsi-script running as "SYSTEM"
opsi-script running with admin privileges
opsi-script running in standard script mode
Scaling for screen DPI: 96
executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-script\opsi-script.exe"
system infos:
B8-xx-xx-xx-xx-AA - PC hardware address
pcXXXXXX - IP name
192.168.xx.xx - IP address
DEU - System default locale
Registry started without redirection (64 Bit)
Registry started readonly
Registry started without redirection (64 Bit)
Registry key [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion] opened
Key closed
Registry started without redirection (64 Bit)
Registry started readonly
Registry started without redirection (64 Bit)
Registry key [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion] opened
Key closed
MS Windows 10.0 64 Bit, Release: 20H2, Edition: PRODUCT_PROFESSIONAL
opsi service version : 4
Registry started readonly
Registry started without redirection (64 Bit)
Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion] opened
Key closed
Starting with script...
Found Include_append statement for: p:\windows10-upgrade\sections.opsiinc
Load from file with encoding: system
Load from file with encoding: utf8
Included (append) file: p:\windows10-upgrade\sections.opsiinc with encoding: utf8
Found Include_insert statement for: p:\windows10-upgrade\declarations.opsiinc
Load from file with encoding: system
Load from file with encoding: utf8
Included (insert) file: p:\windows10-upgrade\declarations.opsiinc with encoding: utf8
AutoActivityDisplay was True is set to true
ScriptErrorMessages was False is set to false
LogLevel was 7
LogLevel set to 7
defined global string list $ResultList$ with value:
comment: Setting initial values
Set $CopyFilesLocally$ = GetProductProperty("copy_files_locally", "false")
The value of the variable "$CopyFilesLocally$" is now: "False"
Set $DisableUAC$ = "true"
The value of the variable "$DisableUAC$" is now: "true"
Set $ExecutionMethod$ = GetProductProperty("execution_method", "runOpsiScriptAsOpsiSetupUser")
The value of the variable "$ExecutionMethod$" is now: "runOpsiScriptAsOpsiSetupUser"
Set $OpsiScriptDir$ = stringReplace("C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-script", "\", "\\\\")
The value of the variable "$OpsiScriptDir$" is now: "C:\\\\Program Files (x86)\\\\opsi.org\\\\opsi-client-agent\\\\opsi-script"
Set $OpsiScriptInterpreter$ = $OpsiScriptDir$ + "\\\\opsi-script.exe"
The value of the variable "$OpsiScriptInterpreter$" is now: "C:\\\\Program Files (x86)\\\\opsi.org\\\\opsi-client-agent\\\\opsi-script\\\\opsi-script.exe"
If
Starting query if file exists ...
FileOrFolderExists($OpsiScriptInterpreter$, "32Bit") <<< result true
NOT (FileOrFolderExists($OpsiScriptInterpreter$, "32Bit")) <<< result false
Then
If
Then
EndIf
EndIf
Set $ProductSettingsKey$ = "HKLM\SOFTWARE\opsi.org\windows10-upgrade"
The value of the variable "$ProductSettingsKey$" is now: "HKLM\SOFTWARE\opsi.org\windows10-upgrade"
Set $ProductSizeMB$ = "15000"
The value of the variable "$ProductSizeMB$" is now: "15000"
Set $RequiredOperatingSystem$ = "Windows_NT"
The value of the variable "$RequiredOperatingSystem$" is now: "Windows_NT"
Set $RequiredOpsiclientdVersion$ = "4.2.0.104"
The value of the variable "$RequiredOpsiclientdVersion$" is now: "4.2.0.104"
Set $RequiredOpsiScriptVersion$ = "4.12.4.35"
The value of the variable "$RequiredOpsiScriptVersion$" is now: "4.12.4.35"
comment: Determining if the client is using the wan extension
If
contains("https://192.168.xx.xx:4447", "https://127.0.0.1") <<< result false
contains("https://192.168.xx.xx:4447", "https://localhost") <<< result false
contains("p:\windows10-upgrade", "\opsi.org\cache\depot") <<< result false
(contains("p:\windows10-upgrade", "\opsi.org\cache\depot")) <<< result false
(contains("https://192.168.xx.xx:4447", "https://localhost")) OR (contains("p:\windows10-upgrade", "\opsi.org\cache\depot")) <<< result false
(contains("https://192.168.xx.xx:4447", "https://127.0.0.1")) OR (contains("https://192.168.xx.xx:4447", "https://localhost")) OR (contains("p:\windows10-upgrade", "\opsi.org\cache\depot")) <<< result false
Then
Else
Switch : runOpsiScriptAsOpsiSetupUser
Case : loginOpsiSetupUser
EndCase
Case : runAsOpsiSetupUser
EndCase
Case : runOpsiScriptAsOpsiSetupUser
Case match: runOpsiScriptAsOpsiSetupUser = runOpsiScriptAsOpsiSetupUser
comment: Setting values for runOpsiScriptAsOpsiSetupUser mode
If
$CopyFilesLocally$ = "false" <<< result true
Then
Set $ServiceCallPath$ = "windows10-upgrade"
The value of the variable "$ServiceCallPath$" is now: "windows10-upgrade"
Set $SetupFilesPath$ = "p:\\windows10-upgrade"
The value of the variable "$SetupFilesPath$" is now: "p:\\windows10-upgrade"
Else
EndIf
EndCase
EndSwitch
EndIf
comment: Determining the Stage registry value
Set $Stage$ = GetRegistryValue($ProductSettingsKey$, "Stage", "32bit")
Registry started readonly
Registry started with redirection (32 Bit)
Registry key [HKLM\SOFTWARE\opsi.org\windows10-upgrade] opened
Key closed
The value of the variable "$Stage$" is now: "3"
comment: Displaying product picture
If
$Stage$ = "2" <<< result false
$Stage$ = "3" <<< result true
$Stage$ = "4" <<< result false
($Stage$ = "4") <<< result false
($Stage$ = "3") OR ($Stage$ = "4") <<< result true
($Stage$ = "2") OR ($Stage$ = "3") OR ($Stage$ = "4") <<< result true
NOT (($Stage$ = "2") OR ($Stage$ = "3") OR ($Stage$ = "4")) <<< result false
Then
If
Then
EndIf
If
Then
EndIf
If
Then
If
Then
If
Then
EndIf
Else
EndIf
Else
If
Then
Else
EndIf
EndIf
If
Then
Else
EndIf
EndIf
If
$Stage$ = "2" <<< result false
Then
If
Then
Else
EndIf
If
Then
EndIf
If
Then
Else
EndIf
If
Then
EndIf
If
Then
EndIf
Switch : True
Case : false
EndCase
Case : true
Case match: true = True
If
Then
Else
EndIf
EndCase
EndSwitch
EndIf
If
$Stage$ = "3" <<< result true
Then
message Stage 3 - Installation
set ActionProgress to: Stage 3 - Installation
SslLib should be: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-script\ssleay32.dll
JSON Bench for productOnClient_updateObject "params":[{"clientId":"pcXXXXXX Start: 10:39:17:038 Time: 00:00:00:025
comment: Setting the Stage to 4 prior to calling the setup-local script. Should anything fail in the setup-local script the cleanup stage will be processed afterwards
Set $Stage$ = "4"
The value of the variable "$Stage$" is now: "4"
Execution of: Registry_Save_Stage /32bit
Registry started with redirection (32 Bit)
Key is: HKLM\SOFTWARE\opsi.org\windows10-upgrade
Registry key [HKLM\SOFTWARE\opsi.org\windows10-upgrade] opened
Variable "Stage" had value "3"
Info: "Stage" changed to "4"
Key closed
comment: Triggering the auto logon
Switch : runOpsiScriptAsOpsiSetupUser
Case : loginOpsiSetupUser
EndCase
Case : runAsOpsiSetupUser
EndCase
Case : runOpsiScriptAsOpsiSetupUser
Case match: runOpsiScriptAsOpsiSetupUser = runOpsiScriptAsOpsiSetupUser
Execution of: opsiServiceCall_runOpsiScriptAsOpsiSetupUser /opsiclientd-once
Got timeout in exprstr:
Got timeout: 3600
"method": "runOpsiScriptAsOpsiSetupUser"
Lib should be: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-script\ssleay32.dll
SLLVersion : TLSv1.2
Loaded: ssl_openssl
HTTPSender.Sock.SSL.LibVersion: OpenSSL 1.0.2u 20 Dec 2019
SslLib should be: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-script\ssleay32.dll
JSON Bench for backend_info "params":[],"id":1} Start: 10:39:17:102 Time: 00:00:00:043
SslLib should be: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-script\ssleay32.dll
JSON Bench for runOpsiScriptAsOpsiSetupUser "params":["windows10-upgrade\\localsetup\\setup-lo Start: 10:39:17:146 Time: 00:00:23:568
Error: retrieveJSONObject --- opsi service problem ----> {"message":"RuntimeError('No login capable opsi credential provider connected')","class":"RuntimeError"}
Received (first 512): {"id": 1, "error": {"class": "RuntimeError", "message": "RuntimeError('No login capable opsi credential provider connected')"}, "result": null}
Error: -> {"message":"RuntimeError('No login capable opsi credential provider connected')","class":"RuntimeError"}
EndCase
EndSwitch
Set: Stop script and leave switches unchanged
Process stopped
___________________
script finished: success
3 errors
0 warnings
handled product: windows10-upgrade Version: 21h2-1
We do not look for a update script, because noUpdateScript is set
BuildPC: update switches .....