Win 10 1709 Installation

sschindler
Beiträge: 60
Registriert: 12 Mär 2010, 12:31

Win 10 1709 Installation

Beitrag von sschindler »

Hallo zusammen,

ich möchte gerade unsere Windows 10 Installationsroutine auf die Version 1709 updaten. Soweit läuft auch alles korrekt durch, allerdings funktioniert der erste automatische Logon des lokalen Admin nicht mehr (und damit wird auch nicht der Opsi Agent automatisch installiert). Ich vermute hier muss wieder eine Kleinigkeit in der unattend.xml angepasst werden. Leider finde ich im Netz nichts passendes. Hatte hier schon jemand ein ähnliches Problem? Ich kann mich erinnern, das mit 1703 hier weitere Parameter notwendig waren.

Derzeit steht in der unattend.xml

Code: Alles auswählen

    <settings pass="oobeSystem">

        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

            <TimeZone>#@system_timezone*#</TimeZone>
            <AutoLogon>
                <Enabled>true</Enabled>
                <LogonCount>1</LogonCount>
                <Username>Administrator</Username>
                <Password>
                    <PlainText>true</PlainText>
                    <Value>****</Value>
                </Password>
            </AutoLogon>
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <RequiresUserInput>false</RequiresUserInput>
                    <Description>Opsi tasks</Description>
                    <Order>1</Order>
                    <CommandLine>cmd.exe /c #@winpe_partition_letter*#:\opsi\postinst.cmd</CommandLine>
                </SynchronousCommand>
            </FirstLogonCommands>

            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <ProtectYourPC>3</ProtectYourPC>
                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                <HideLocalAccountScreen>true</HideLocalAccountScreen>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
		<SkipUserOOBE>true</SkipUserOOBE>
                <SkipMachineOOBE>true</SkipMachineOOBE>
                <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
            </OOBE>

        </component>

    </settings>
Besten Dank im Voraus.
Benutzeravatar
m.radtke
uib-Team
Beiträge: 1517
Registriert: 10 Jun 2015, 12:19

Re: Win 10 1709 Installation

Beitrag von m.radtke »

Hi

Welche Version des win10-x64 Pakets hast Du im Einsatz?

Gruß
Mathias
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
sschindler
Beiträge: 60
Registriert: 12 Mär 2010, 12:31

Re: Win 10 1709 Installation

Beitrag von sschindler »

Moin,

anbei die Versionen:
Product ID Version Name

opsi-winst 4.12.0.12-1 winst
opsi-client-agent 4.0.7.24-2 opsi.org client agent
win10-x64 4.0.7.1-9 Windows 10 x64

Ich habe schon mal ein "opsi-product-updater -p win10-x64" probiert, aber dabei folgende Fehlermeldung bekommen:

Traceback:
line 1187 in '<module>' in file '/usr/bin/opsi-product-updater'
line 1180 in 'main' in file '/usr/bin/opsi-product-updater'
line 490 in 'processUpdates' in file '/usr/bin/opsi-product-updater'
==>>> You have searched for a product, which was not found in configured repository: 'win10-x64'
ERROR: You have searched for a product, which was not found in configured repository: 'win10-x64'
Benutzeravatar
ueluekmen
uib-Team
Beiträge: 1939
Registriert: 28 Mai 2008, 10:53

Re: Win 10 1709 Installation

Beitrag von ueluekmen »

Sieht aus, als wenn deine opsi-product-updater.conf nicht vollständig ist.
opsi support - uib gmbh
For productive opsi installations we recommend support contracts.
http://www.uib.de
sschindler
Beiträge: 60
Registriert: 12 Mär 2010, 12:31

Re: Win 10 1709 Installation

Beitrag von sschindler »

Hallo,

also die opsi-product-updater.conf sieht wie folgt aus:

Code: Alles auswählen

[general]
; Where to store package files
packageDir = /var/lib/opsi/repository
; Location of log file
logFile = /var/log/opsi/opsi-product-updater.log
; Log level 0...9
logLevel = 5
; set defaulttimeout
timeout = 60
; path to temp directory for package installation
tempdir = /tmp

[notification]
; Activate/deactivate eMail notification
active = false
; SMTP server address
smtphost = smtp
; SMTP server port
smtpport = 25
; Sender eMail address
sender = opsi-product-updater@localhost
; Comma separated list of receivers
receivers = root@localhost

[installation]
; If window start AND end are set, installation of the newly downloaded packages
; will only be done if the time when all downloads are completed is inside the time window
; Times have to be speciefied in the form HH:MM, i.e. 06:30
windowStart = 
windowEnd = 
; Comma separated list of product ids which will be installed even outside the time window
exceptProductIds = 

[wol]
; If active is set to true, wake on lan will be sent to clients which need to perform actions
active = false
; Comma separated list of product ids which will not trigger wake on lan
excludeProductIds = 
; Shutdown clients after installation?
; Before you set this to true please asure that the product shutdownwanted is installed on the depot
shutdownWanted = true
; Gap in seconds between wake ups
startGap = 10

[repository_uib]
; Activate/deactivate the repository
active = true
; If the repository is an opsi depot, opsiDepotId should be set
; In that case it is not required (but allowed) to set baseUrl, dirs, username and password
opsiDepotId =
; The base url of a product package repository
baseUrl = http://download.uib.de
; Comma separated directories to include in search for product packages
; Use / if search should be done in baseUrl
dirs = opsi4.0/products/localboot, opsi4.0/products/netboot
; Comma separated list of productIds that will be updated
; If not a product package file matches one of these regular expressions it will not be downloaded
includeProductIds = 
; Comma separated list of regular expressions
; If a product package file matches one of these regular expressions it will not be downloaded
excludes = ^win.*
; Username for connection to repository
username = 
; Password for connection to repository
password = 
; AutoInstall will be checked if a product package is found on the repository
; and the product is not yet installed on the local depot
autoInstall = false
; AutoUpdate will be checked if a product is already installed on the local depot
; and a more recent product version is found in the repository
autoUpdate = true
; If autoSetup is set to true, the action request "setup" will be set for every updated product
; on all clients of the local depot where the installation status of the product is "installed"
autoSetup = false
; Set True if you want only Download packages without installation
onlyDownload = false
; Set Proxy handler like: http://10.10.10.1:8080
proxy = 

[repository_master]
active = false
opsiDepotId = 
autoInstall = true
autoUpdate = true
autoSetup = true

Das Logging von meinem gestrigen Versuch sagt folgendes:

Code: Alles auswählen

Jan 23 08:21:33 [notice] Getting installed products (opsi-product-updater|958)
Jan 23 08:21:33 [notice] Getting info for local packages in '/var/lib/opsi/repository' (opsi-product-updater|933)
Jan 23 08:21:36 [notice] Getting package infos from repository 'http://download.uib.de' (opsi-product-updater|974)
Jan 23 08:21:38 [critical] Traceback: (Logger.py|765)
Jan 23 08:21:38 [critical]      line 1187 in '<module>' in file '/usr/bin/opsi-product-updater' (Logger.py|765)
Jan 23 08:21:38 [critical]      line 1180 in 'main' in file '/usr/bin/opsi-product-updater' (Logger.py|765)
Jan 23 08:21:38 [critical]      line 490 in 'processUpdates' in file '/usr/bin/opsi-product-updater' (Logger.py|765)
Jan 23 08:21:38 [critical]      ==>>> You have searched for a product, which was not found in configured repository: 'win10-x64' (opsi-product-updater|1193)
Er verbindet sich schon nach http://download.uib.de. Muss ich die komplette Version angeben?
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: Win 10 1709 Installation

Beitrag von uncle_scrooge »

Kommentiere mal spaßeshalber 'excludes = ^win.*' aus.
sschindler
Beiträge: 60
Registriert: 12 Mär 2010, 12:31

Re: Win 10 1709 Installation

Beitrag von sschindler »

Hallo Uncle,

nach dem auskommentieren scheint er es zu tun, im Anschluss erhalte ich aber folgende Meldung:

Code: Alles auswählen

root@srv023:/var/lib/opsi/depot/win10-x64# opsi-product-updater -p win10-x64
Traceback:
     line 204 in 'installPackage' in file '/usr/lib/python2.7/dist-packages/OPSI/Backend/Depotserver.py'
     line 303 in 'extractData' in file '/usr/lib/python2.7/dist-packages/OPSI/Util/Product.py'
     ==>>> Failed to extract data from package '/var/lib/opsi/repository/win10-x64_4.0.7.1-10.opsi': Failed to extract archive '/var/lib/opsi/repos                                                                                 itory/win10-x64_4.0.7.1-10.opsi': [Errno 2] No such file or directory
Traceback:
     line 1187 in '<module>' in file '/usr/bin/opsi-product-updater'
     line 1180 in 'main' in file '/usr/bin/opsi-product-updater'
     line 672 in 'processUpdates' in file '/usr/bin/opsi-product-updater'
     line 1 in 'depot_installPackage' in file '<string>'
     line 483 in '_executeMethod' in file '/usr/lib/python2.7/dist-packages/OPSI/Backend/Backend.py'
     line 1 in 'depot_installPackage' in file '<string>'
     line 483 in '_executeMethod' in file '/usr/lib/python2.7/dist-packages/OPSI/Backend/Backend.py'
     line 1 in 'depot_installPackage' in file '<string>'
     line 483 in '_executeMethod' in file '/usr/lib/python2.7/dist-packages/OPSI/Backend/Backend.py'
     line 102 in 'depot_installPackage' in file '/usr/lib/python2.7/dist-packages/OPSI/Backend/Depotserver.py'
     line 387 in 'installPackage' in file '/usr/lib/python2.7/dist-packages/OPSI/Backend/Depotserver.py'
     ==>>> Backend error: Failed to install package '/var/lib/opsi/repository/win10-x64_4.0.7.1-10.opsi' on depot 'srv023.kevb.lan': Failed to extr                                                                                 act data from package '/var/lib/opsi/repository/win10-x64_4.0.7.1-10.opsi': Failed to extract archive '/var/lib/opsi/repository/win10-x64_4.0.7.1-1                                                                                 0.opsi': [Errno 2] No such file or directory
ERROR: Backend error: Failed to install package '/var/lib/opsi/repository/win10-x64_4.0.7.1-10.opsi' on depot 'srv023.kevb.lan': Failed to extract                                                                                  data from package '/var/lib/opsi/repository/win10-x64_4.0.7.1-10.opsi': Failed to extract archive '/var/lib/opsi/repository/win10-x64_4.0.7.1-10.op                                                                                 si': [Errno 2] No such file or directory
Kann ich ds File nich einfach über den opsi-package-manager offline installieren?
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: Win 10 1709 Installation

Beitrag von uncle_scrooge »

>>Kann ich ds File nich einfach über den opsi-package-manager offline installieren?
Im Prinzip schon.
Aber irgendetwas ist hier oberfaul.
Wenn Du das Paket aus ../repository in die workbench kopierst und versuchst, die Datei mit dem package-manager auszupacken. Funktioniert das?

Irgendwelche .bak-Verzeichnisse in /var/lib/opsi/depot?

Berechtigungen noch mal gesetzt?
sschindler
Beiträge: 60
Registriert: 12 Mär 2010, 12:31

Re: Win 10 1709 Installation

Beitrag von sschindler »

Also die gute Nachricht, die Installation des Pakets hat manuel funktioniert.

Product ID Version Name
win10-x64 4.0.7.1-10 Windows 10 x64

Aber mit meinem eigentlichen Problem komme ich nicht weiter. Die Installationsroutine meldet sich nicht einmalig automatisch an. Wenn ich die gleichen Credentials, die auch in der unattend.xml stehen, eintippe, läuft die Installation des Opsiclient an und alles geht seinen gewohnten gang.

Ich habe auch schon versucht ein Autologon via registry keys zu erzwingen. Aber scheint auch nicht zu klappen. :cry:
<RunSynchronousCommand wcm:action="add">
<Description>Set Autologon</Description>
<Order>5</Order>
<Path>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoAdminLogon /d 1 /f</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Description>Set Logon Count</Description>
<Order>6</Order>
<Path>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoLogonCount /t REG_DWORD /d 1 /f</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Description>Set Logonuser</Description>
<Order>7</Order>
<Path>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultUserName /d administrator /f</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Description>Set Password</Description>
<Order>8</Order>
<Path>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultPassWord /d ++++ /f</Path>
</RunSynchronousCommand>
Noch Ideen?
Benutzeravatar
ueluekmen
uib-Team
Beiträge: 1939
Registriert: 28 Mai 2008, 10:53

Re: Win 10 1709 Installation

Beitrag von ueluekmen »

Hast du schon probiert die unattend.xml.template aus opsi als unattend.xml in custom ab zu legen? Vorher die unter custom sichern, ist immer eine gute Idee.
opsi support - uib gmbh
For productive opsi installations we recommend support contracts.
http://www.uib.de
Antworten