none
Problem mit WDS-Antwortdatei zur automatischen Installation von Windows 7 RRS feed

  • Frage

  • Hallo,

    ich beginne gerade, eine automatische Installation für Windows 7-Clients über WDS zu erstellen. Ich habe die Deployment Services auf Windows Server 2008 R2 installiert, das WAIK auf einem Win7-Adminrechner und dort eine Antwortdatei erstellt.

    Soweit funktioniert nach einiger Bastelei auch alles ganz gut, die Rechner erhalten automatisch den korrekten Namen, werden in die Domäne eingebunden und der lokale Admin-Account wird aktiviert und mit Kennwort versehen.

    Jetzt habe ich noch ein Problem - nach dem Setup läuft noch der OOBE-Teil und will partout, dass ich nochmal ein lokales Admin-Konto einrichte - das ich ja nicht brauche, da der lokale Admin ja schon da ist und funktioniert... Wir bekomme ich diese letzte Abfrage noch weg? Ich weiß, das ist vielleicht eher ein "kosmetisches Problem", aber das muss doch irgendwie gehen?!

    Unten meine bisherige Antwortdatei...

    Vielen Dank schonmal!

    Marco

    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="windowsPE">
            <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="xxxxxxxxxxxxxxxxxxxx" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DiskConfiguration>
                    <Disk wcm:action="add">
                        <CreatePartitions>
                            <CreatePartition wcm:action="add">
                                <Order>2</Order>
                                <Type>Primary</Type>
                                <Extend>true</Extend>
                            </CreatePartition>
                            <CreatePartition wcm:action="add">
                                <Order>1</Order>
                                <Size>300</Size>
                                <Type>Primary</Type>
                            </CreatePartition>
                        </CreatePartitions>
                        <ModifyPartitions>
                            <ModifyPartition wcm:action="add">
                                <Active>true</Active>
                                <Format>NTFS</Format>
                                <Label>System</Label>
                                <Order>1</Order>
                                <PartitionID>1</PartitionID>
                            </ModifyPartition>
                            <ModifyPartition wcm:action="add">
                                <Format>NTFS</Format>
                                <Label>Windows</Label>
                                <Order>2</Order>
                                <PartitionID>2</PartitionID>
                            </ModifyPartition>
                        </ModifyPartitions>
                        <DiskID>0</DiskID>
                        <WillWipeDisk>true</WillWipeDisk>
                    </Disk>
                    <WillShowUI>OnError</WillShowUI>
                </DiskConfiguration>
                <ImageInstall>
                    <OSImage>
                        <InstallTo>
                            <DiskID>0</DiskID>
                            <PartitionID>2</PartitionID>
                        </InstallTo>
                        <InstallToAvailablePartition>false</InstallToAvailablePartition>
                        <WillShowUI>OnError</WillShowUI>
                    </OSImage>
                </ImageInstall>
                <UserData>
                    <ProductKey>
                        <WillShowUI>OnError</WillShowUI>
                        <Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key>
                    </ProductKey>
                    <AcceptEula>true</AcceptEula>
                    <FullName>Unser Name</FullName>
                    <Organization>Unser Name</Organization>
                </UserData>
            </component>
            <component name="Microsoft-Windows-International-Core-WinPE" 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">
                <SetupUILanguage>
                    <UILanguage>de-de</UILanguage>
                </SetupUILanguage>
                <InputLocale>de-de</InputLocale>
                <SystemLocale>de-de</SystemLocale>
                <UILanguage>de-de</UILanguage>
                <UserLocale>de-de</UserLocale>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <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">
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                    <NetworkLocation>Work</NetworkLocation>
                    <ProtectYourPC>1</ProtectYourPC>
                </OOBE>
                <WindowsFeatures>
                    <ShowMediaCenter>false</ShowMediaCenter>
                </WindowsFeatures>
                <TimeZone>W. Europe Standard Time</TimeZone>
                <AutoLogon>
                    <Password>
                        <Value>Passwort=</Value>
                        <PlainText>false</PlainText>
                    </Password>
                    <Enabled>true</Enabled>
                    <LogonCount>1</LogonCount>
                    <Username>Administrator</Username>
                </AutoLogon>
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>Passwort</Value>
                        <PlainText>false</PlainText>
                    </AdministratorPassword>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>Passwort</Value>
                                <PlainText>false</PlainText>
                            </Password>
                            <Description>Local Administrator</Description>
                            <DisplayName>Administrator</DisplayName>
                            <Group>Administratoren</Group>
                            <Name>Administrator</Name>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
            </component>
            <component name="Microsoft-Windows-International-Core" 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">
                <InputLocale>de-de</InputLocale>
                <SystemLocale>de-de</SystemLocale>
                <UILanguage>de-de</UILanguage>
                <UserLocale>de-de</UserLocale>
            </component>
        </settings>
        <settings pass="specialize">
            <component name="Microsoft-Windows-International-Core" 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">
                <InputLocale>de-de</InputLocale>
                <SystemLocale>de-de</SystemLocale>
                <UILanguage>de-de</UILanguage>
                <UserLocale>de-de</UserLocale>
            </component>
            <component name="Security-Malware-Windows-Defender" 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">
                <DisableAntiSpyware>true</DisableAntiSpyware>
            </component>
            <component name="Microsoft-Windows-Deployment" 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">
                <RunSynchronous>
                    <RunSynchronousCommand wcm:action="add">
                        <Order>1</Order>
                        <Path>sc config RemoteRegistry start= auto</Path>
                        <Description>Remoteregistrierungsdienst auf Auto</Description>
                    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Order>2</Order>
                        <Path>net user administrator /active:yes</Path>
                        <Description>Lokalen Administrator-Account wieder aktivieren</Description>
                    </RunSynchronousCommand>
                </RunSynchronous>
            </component>
            <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="x86" publicKeyToken="xxxxxxxxxxxxxxxxx" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <Identification>
                    <JoinDomain>%MACHINEDOMAIN%</JoinDomain>
                    <UnsecureJoin>true</UnsecureJoin>
                    <DebugJoin>true</DebugJoin>
                </Identification>
            </component>
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="xxxxxxxxxxxxxxxxxxxxx" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <ComputerName>%MACHINENAME%</ComputerName>
            </component>
        </settings>
        <settings pass="offlineServicing">
            <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="x86" publicKeyToken="xxxxxxxxxxxxxxxxxxx" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <EnableLUA>false</EnableLUA>
            </component>
        </settings>
        <settings pass="auditSystem">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="xxxxxxxxxxxxxxxxxxxxx" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <AutoLogon>
                    <Password>
                        <Value>Passwort</Value>
                        <PlainText>false</PlainText>
                    </Password>
                    <Enabled>true</Enabled>
                    <LogonCount>1</LogonCount>
                    <Username>Administrator</Username>
                </AutoLogon>
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>Passwort</Value>
                        <PlainText>false</PlainText>
                    </AdministratorPassword>
                </UserAccounts>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="wim:c:/work/win7/install.wim#Windows 7 PROFESSIONAL" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

    Dienstag, 28. Februar 2012 07:37

Antworten

  •  
    >
    > Die Anlage eines weiteren Admins? Aber es gibt doch auch
    > Zero-Touch-Installationen... Müsste ich dann über die Unattend nochmal
    > einen Admin-Account anlegen, damit die Abfrage wegbleibt?
    >
     
    Ja, mußt Du. Kannst hinterher wieder löschen :-)
     

    NO THEY ARE NOT EVIL, if you know what you are doing: Good or bad GPOs?
    Wenn meine Antwort hilfreich war, freue ich mich über eine Bewertung! If my answer was helpful, I'm glad about a rating!
    • Als Antwort markiert Marco Gubitzer Mittwoch, 29. Februar 2012 08:40
    Dienstag, 28. Februar 2012 13:28

Alle Antworten

  • Wenn ich das richtig interpretiere: Mit Deinem Unattend überschreibst Du
    quasi nur den Builtin Administrator. Win Vista und neuer verlangen aber
    zwingend die Anlage eines zweiten Accounts, der ebenfalls in
    Administrators sein muß - der Builtin ist ja ab Werk normalerweise
    deaktiviert...
     
    mfg Martin
     

    NO THEY ARE NOT EVIL, if you know what you are doing: Good or bad GPOs?
    Wenn meine Antwort hilfreich war, freue ich mich über eine Bewertung! If my answer was helpful, I'm glad about a rating!
    Dienstag, 28. Februar 2012 12:36
  • Richtig, ich aktiviere den Builtin-Admin und verpasse ihm ein Kennwort.

    Die Anlage eines weiteren Admins? Aber es gibt doch auch Zero-Touch-Installationen... Müsste ich dann über die Unattend nochmal einen Admin-Account anlegen, damit die Abfrage wegbleibt?

    Gruß Marco

    Dienstag, 28. Februar 2012 13:03
  •  
    >
    > Die Anlage eines weiteren Admins? Aber es gibt doch auch
    > Zero-Touch-Installationen... Müsste ich dann über die Unattend nochmal
    > einen Admin-Account anlegen, damit die Abfrage wegbleibt?
    >
     
    Ja, mußt Du. Kannst hinterher wieder löschen :-)
     

    NO THEY ARE NOT EVIL, if you know what you are doing: Good or bad GPOs?
    Wenn meine Antwort hilfreich war, freue ich mich über eine Bewertung! If my answer was helpful, I'm glad about a rating!
    • Als Antwort markiert Marco Gubitzer Mittwoch, 29. Februar 2012 08:40
    Dienstag, 28. Februar 2012 13:28
  • Hallo Martin,

    super, vielen Dank! So funktioniert's! :-)

    Gruß Marco

    Mittwoch, 29. Februar 2012 08:40
  • Fein fein ;-)
     

    NO THEY ARE NOT EVIL, if you know what you are doing: Good or bad GPOs?
    Wenn meine Antwort hilfreich war, freue ich mich über eine Bewertung! If my answer was helpful, I'm glad about a rating!
    Mittwoch, 29. Februar 2012 12:22