public-en3my
Goto Top

Windows7 mit Sysprep und unattend.xml Problem

Hallo. Mein problem betrifft die versiegelung von Windows7 mit sysprerp.

Hab Win7 inst und befinde mich im "Audit Mode", hab da alle meine einstellungen gamacht und möchte di installation jetzt mit sysprep versiegeln und den "Administrator" Account in den "Default" user kopieren. bei Vista war das noch einfach über "systemeigenschaften->Benutzerprofile" möglich.
Bei Win7 wurde diese option nun leider deaktiviert und man soll dies mithilfe einer "unattend.XML" und dem "<CopyProfile>true</CopyProfile>" Eintrag machen.

Mein Problem liegt jetzt bei der unattend.XML die ich nicht hin bekomme. Ich möchte nur den "CopyProfile" ausführen. Bekomme beim ausführen von sysprerp einen schwerwiegenden fehler, leider ohne genauere infos wie Error code usw.

hoffe mir kann wer weiter helfen.

PS: meine unattend.XML


[QUOTE]<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="specialize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CopyProfile>true</CopyProfile>
<RegisteredOrganization />
<RegisteredOwner />
</component>
</settings>
<cpifflineImage cpi:source="wim:d:/sources/install.wim#Windows 7 HOMEPREMIUM" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend> [/QUOTE]

Content-Key: 127312

Url: https://administrator.de/contentid/127312

Printed on: April 25, 2024 at 21:04 o'clock

Member: ichbindernikolaus
ichbindernikolaus Oct 16, 2009 at 16:00:42 (UTC)
Goto Top
Der CopyProfile-Schalter funktioniert unter Win7 (noch) nicht.
Eine andere Möglichkeit ist, vor dem sysprep den Default-User durch einen vorher generierten und konfigurierten User zu ersetzen.
Das hat bei mir heute gut geklappt.
Member: public-en3my
public-en3my Oct 16, 2009 at 16:46:46 (UTC)
Goto Top
Wie meinst du das?
einfach drüberkopieren? wenn ja hast du das unter nem anderen OS bzw in der wiederherstellungskonsole gamacht?
wie hast du da die sicherheitseinstellungen(NTFS Richtlinien) eingestellt?

dake für die schnelle Antwort.
Member: public-en3my
public-en3my Oct 16, 2009 at 17:08:59 (UTC)
Goto Top
Hallo
hab glaub ich selbst die Lösung gefunden. muss zwar noch testen ob alles geht aber der fehler vom sysprerp kam vom WMP Netzwerkdienst. hab also einfach vorher "net stop wmpnetworksvc" ausgeführt.

meld mich morgen nochmal und berichte ob alles geht.

[UPDATE]: Also nach dem stopen des WMP Dienstes geht Sysprep ohne Fehler auch mit dem "<copyprofile> true </copyprofile>" parameter.
Zusammenfassend nochmal meine "unattend.xml":

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<servicing></servicing>
<settings pass="specialize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ProductKey></ProductKey>
<ComputerName></ComputerName>
<CopyProfile>true</CopyProfile>
<RegisteredOrganization></RegisteredOrganization>
<RegisteredOwner></RegisteredOwner>
<TimeZone>W. Europe Standard Time</TimeZone>
</component>
</settings>
<cpi:offlineImage cpi:source="wim://win-kfnefnr41te/users/administrator/desktop/install.wim#Windows 7 HOMEPREMIUM" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>


und auserdem mein befehl zum starten von sysprep:

net stop wmpnetworksvr
sysprep.exe /generalize /oobe /shutdown /unattend:Unattend.xml

nach der Ersteinrichtung werden die von mir gemachten Einstellungen bei jeden neuen User übernommen also hat auch der "<CopyProfile>true</CopyProfile>" Eintrag funktioniert.
Member: Schnaps
Schnaps Oct 19, 2009 at 11:16:52 (UTC)
Goto Top
also bei mir kommt leider immer noch der schwerwiegende fehler, obwohl ich den netzwerk dienst beendet habe.

in der setupact.log steht folgendes:

Beginning of a new sysprep run ===
2009-10-19 13:10:39, Info SYSPRP ========================================================
2009-10-19 13:10:39, Info [0x0f004d] SYSPRP The time is now 2009-10-19 13:10:39
2009-10-19 13:10:39, Info [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\sysprep\Panther
2009-10-19 13:10:39, Info [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
2009-10-19 13:10:39, Info [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
2009-10-19 13:10:40, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE'
2009-10-19 13:10:40, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE'
2009-10-19 13:10:40, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'UNATTEND'
2009-10-19 13:10:40, Info [0x0f004a] SYSPRP WaitThread:Entering spawned waiting thread
2009-10-19 13:10:40, Info [sysprep.exe] UnattendFindAnswerFile: Looking at explicitly provided unattend file [C:\Windows\Panther\Unattend.xml]...
2009-10-19 13:10:40, Info [sysprep.exe] UnattendFindAnswerFile: [C:\Windows\Panther\Unattend.xml] meets criteria for an explicitly provided unattend file.
2009-10-19 13:10:40, Info SYSPRP SysprepSearchForUnattend: Using unattend file at [C:\Windows\Panther\Unattend.xml].
2009-10-19 13:10:40, Info SYSPRP SysprepSearchForUnattend: [generalize] pass in unattend file [C:\Windows\Panther\Unattend.xml] either doesn't exist or passed validation
2009-10-19 13:10:40, Info SYSPRP WinMain:Found unattend file at [C:\Windows\Panther\Unattend.xml]; caching...
2009-10-19 13:10:40, Info SYSPRP WinMain:Processing unattend file's 'generalize' pass...
2009-10-19 13:10:40, Info SYSPRP Sysprep is running a generalize pass with the following unattend file: [%windir%\panther\unattend.xml]
2009-10-19 13:10:40, Info SYSPRP RunUnattendGeneralizePass: Sysprep unattend generalize pass exits; hr = 0x0, hrResult = 0x0, bRebootRequired = 0x0
2009-10-19 13:10:40, Info [0x0f00ac] SYSPRP WinMain:Processing 'cleanup' external provider request.
2009-10-19 13:10:40, Error [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn't update the recorded state, dwRet = 31
2009-10-19 13:10:40, Error [0x0f00ae] SYSPRP WinMain:Hit failure while processing sysprep cleanup external providers; hr = 0x8007001f
2009-10-19 13:10:43, Info [0x0f004c] SYSPRP WaitThread:Exiting spawned waiting thread
2009-10-19 13:10:43, Info [0x0f0052] SYSPRP Shutting down SysPrep log
2009-10-19 13:10:43, Info [0x0f004d] SYSPRP The time is now 2009-10-19 13:10:43
Member: public-en3my
public-en3my Oct 19, 2009 at 12:57:40 (UTC)
Goto Top
Wie sieht denn deine "unattend.xml" aus?