rambojay
Goto Top

Win 10 22h2 WDS unattend.xml

Hallo zusammen,

ich bin mit verzweifel bald an der u.a. unattend.xml, die Partitionen werden erstellt, aber der Rest wird schön ignoriert.

Was habe ich falsch gemacht?


<?xml version="1.0" encoding="utf-8"?>  
<unattend xmlns="urn:schemas-microsoft-com:unattend">  
    <settings pass="windowsPE">  
        <component name="Microsoft-Windows-International-Core-WinPE" 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">  
            <SetupUILanguage>
                <UILanguage>de-DE</UILanguage>
				<WillShowUI>Never</WillShowUI>
			</SetupUILanguage>
            <InputLocale>0407:00000407</InputLocale>
            <SystemLocale>de-DE</SystemLocale>
            <UILanguage>de-DE</UILanguage>
            <UserLocale>de-DE</UserLocale>
            <UILanguageFallback>de-DE</UILanguageFallback>
        </component>
        <component name="Microsoft-Windows-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">  
            <WindowsDeploymentServices>
                <Login>
                    <Credentials>
						<Username>wdskonto</Username>
						<Domain>xyz.de</Domain>
						<Password>XXXXXXXXXXX</Password>
                    </Credentials>
                </Login>
                <ImageSelection>
                    <InstallImage>
						<ImageGroup>Windows 10</ImageGroup>
						<ImageName>Windows 10 Pro 22H2</ImageName>
						<Filename>install.wim</Filename>
                    </InstallImage>
					
                    <InstallTo>
                        <DiskID>0</DiskID>
                        <PartitionID>3</PartitionID>
                    </InstallTo>
                </ImageSelection>
            </WindowsDeploymentServices>
            <DiskConfiguration>
                <WillShowUI>OnError</WillShowUI>
                <Disk wcm:action="add">  
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                    <CreatePartitions>
                        <CreatePartition wcm:action="add">  
                            <Order>1</Order>
                            <Size>100</Size>
                            <Type>EFI</Type>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">  
                            <Order>2</Order>
                            <Type>MSR</Type>
                            <Size>16</Size>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">  
                            <Order>3</Order>
                            <Type>Primary</Type>
                            <Extend>true</Extend>
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <ModifyPartition wcm:action="add">  
                            <Order>1</Order>
                            <PartitionID>1</PartitionID>
                            <Label>System</Label>
                            <Format>FAT32</Format>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">  
                            <Order>2</Order>
                            <PartitionID>2</PartitionID>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">  
                            <Order>3</Order>
                            <PartitionID>3</PartitionID>
                            <Label>Windows</Label>
                            <Letter>C</Letter>
                            <Format>NTFS</Format>
                        </ModifyPartition>
                    </ModifyPartitions>
                </Disk>
            </DiskConfiguration>
			<ComplianceCheck>
				<DisplayReport>OnError</DisplayReport>
			</ComplianceCheck>
			<UserData>
				<AcceptEula>true</AcceptEula>
			</UserData>
        </component>
		</settings>
	<settings pass="specialize">  
		<component name="Microsoft-Windows-Security-SPP-UX" 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">  
			<SkipAutoActivation>true</SkipAutoActivation>
		</component>
	</settings>
	<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>W. Europe Standard Time</TimeZone>
		<UserAccounts>
			<LocalAccount wcm:action="add">  
				<Password>
				<Value></Value>
					<PlainText>true</PlainText>
				</Password>
				<Description>it</Description>
				<DisplayName>it</DisplayName>
				<Group>Administrators</Group>
				<Name>it</Name>
			</LocalAccount>	
		</UserAccounts>
		<ComputerName>%MACHINENAME%</ComputerName>
		<OOBE>
			<HideEULAPage>true</HideEULAPage>
			<HideLocalAccountScreen>true</HideLocalAccountScreen>
			<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
			<HideOnlineAccountScreens>true</HideOnlineAccountScreens>
			<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
			<ProtectYourPC>1</ProtectYourPC>
			<SkipMachineOOBE>true</SkipMachineOOBE>
			<SkipUserOOBE>true</SkipUserOOBE>
			<NetworkLocation>Work</NetworkLocation>	
		</OOBE>
		</component>
		</settings>
</unattend>

Content-Key: 7500229800

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

Printed on: April 27, 2024 at 19:04 o'clock

Member: evgnbz
evgnbz Jun 12, 2023 at 13:24:05 (UTC)
Goto Top
https://www.windowsafg.com/win10x86_x64_uefi.html da fällt mir nur sowas wie hier ein , vtl nochmal damit generieren und dann nach unterschied schauen
Member: Franz-Josef-II
Franz-Josef-II Jun 12, 2023 at 13:57:52 (UTC)
Goto Top
Servas

Verwende einmal die DiskKonfiguration von Microsoft:
<DiskConfiguration>

  <Disk wcm:action="add">  
    <DiskID>0</DiskID> 
    <WillWipeDisk>true</WillWipeDisk> 
    <CreatePartitions>

      <!-- System partition -->
      <CreatePartition wcm:action="add">  
        <Order>1</Order> 
        <Type>Primary</Type> 
        <Size>350</Size> 
      </CreatePartition>

      <!-- Windows partition -->
      <CreatePartition wcm:action="add">  
        <Order>2</Order> 
        <Type>Primary</Type> 
        <Extend>true</Extend> 
      </CreatePartition>

    </CreatePartitions>
    <ModifyPartitions>

      <!-- System partition -->
      <ModifyPartition wcm:action="add">  
        <Order>1</Order> 
        <PartitionID>1</PartitionID> 
        <Label>System</Label> 
        <Format>NTFS</Format> 
        <Active>true</Active> 
      </ModifyPartition>

      <!-- Windows partition -->
      <ModifyPartition wcm:action="add">  
        <Order>2</Order> 
        <PartitionID>2</PartitionID> 
        <Label>Windows</Label> 

        <Format>NTFS</Format> 
      </ModifyPartition>
    </ModifyPartitions>
  </Disk>


  <WillShowUI>OnError</WillShowUI> 
</DiskConfiguration>


<ImageInstall>
  <OSImage>
    <InstallTo>
      <DiskID>0</DiskID> 
      <PartitionID>2</PartitionID> 
    </InstallTo>
  </OSImage>
</ImageInstall>

Ein paar Unterschiede sehe ich 😊
Member: RamboJay
RamboJay Jun 12, 2023 at 14:08:48 (UTC)
Goto Top
Zitat von @evgnbz:

https://www.windowsafg.com/win10x86_x64_uefi.html da fällt mir nur sowas wie hier ein , vtl nochmal damit generieren und dann nach unterschied schauen

Danke, das werde ich mal probieren...
Member: RamboJay
RamboJay Jun 12, 2023 at 14:12:21 (UTC)
Goto Top
Zitat von @Franz-Josef-II:

Servas

Verwende einmal die DiskKonfiguration von Microsoft:
<DiskConfiguration>

  <Disk wcm:action="add">  
    <DiskID>0</DiskID> 
    <WillWipeDisk>true</WillWipeDisk> 
    <CreatePartitions>

      <!-- System partition -->
      <CreatePartition wcm:action="add">  
        <Order>1</Order> 
        <Type>Primary</Type> 
        <Size>350</Size> 
      </CreatePartition>

      <!-- Windows partition -->
      <CreatePartition wcm:action="add">  
        <Order>2</Order> 
        <Type>Primary</Type> 
        <Extend>true</Extend> 
      </CreatePartition>

    </CreatePartitions>
    <ModifyPartitions>

      <!-- System partition -->
      <ModifyPartition wcm:action="add">  
        <Order>1</Order> 
        <PartitionID>1</PartitionID> 
        <Label>System</Label> 
        <Format>NTFS</Format> 
        <Active>true</Active> 
      </ModifyPartition>

      <!-- Windows partition -->
      <ModifyPartition wcm:action="add">  
        <Order>2</Order> 
        <PartitionID>2</PartitionID> 
        <Label>Windows</Label> 

        <Format>NTFS</Format> 
      </ModifyPartition>
    </ModifyPartitions>
  </Disk>


  <WillShowUI>OnError</WillShowUI> 
</DiskConfiguration>


<ImageInstall>
  <OSImage>
    <InstallTo>
      <DiskID>0</DiskID> 
      <PartitionID>2</PartitionID> 
    </InstallTo>
  </OSImage>
</ImageInstall>

Ein paar Unterschiede sehe ich 😊

Der Diskpart Teil wird einwadnfrei umgesetzt, nur im nächsten Schritt wird das vordefinierte OOBE ignoriert (Sprache, Name des User etc.).
Member: potshock
potshock Jun 12, 2023 at 18:47:36 (UTC)
Goto Top
Hi RamboJay,

Da in deiner Datei "<Username>wdskonto</Username>" vorkommt gehe ich von einem WDS-Server aus.
Ein paar Infos dazu wären natürlich hilfreich gewesen face-wink.
Du brauchst für einen WDS (zumindest war dies bei Server 2012/2016 so) zwei unattend.xml.
Eine, welche u.a. Partitionen auf dem Client angelegt und bestimmt auf welche Festplatte und Partition Windows installiert werden soll. Dieser Teil wird bei Dir ja scheinbar abgearbeitet.

Und eine Antwortdatei für die eigentliche unbeaufsichtigte Installation von Windows, u.a. für Computername und einen lokalen Account. Diese speicherst Du dann unter z.B.: D:\RemoteInstall\WdsClientUnattend\UnattendWin10 (so, war zumindest damals unter server 2012 mein Pfad)

Viele Grüße
Potshock
Member: RamboJay
Solution RamboJay Jun 13, 2023 at 07:37:48 (UTC)
Goto Top
Zitat von @potshock:

Hi RamboJay,

Da in deiner Datei "<Username>wdskonto</Username>" vorkommt gehe ich von einem WDS-Server aus.
Ein paar Infos dazu wären natürlich hilfreich gewesen face-wink.
Du brauchst für einen WDS (zumindest war dies bei Server 2012/2016 so) zwei unattend.xml.
Eine, welche u.a. Partitionen auf dem Client angelegt und bestimmt auf welche Festplatte und Partition Windows installiert werden soll. Dieser Teil wird bei Dir ja scheinbar abgearbeitet.

Und eine Antwortdatei für die eigentliche unbeaufsichtigte Installation von Windows, u.a. für Computername und einen lokalen Account. Diese speicherst Du dann unter z.B.: D:\RemoteInstall\WdsClientUnattend\UnattendWin10 (so, war zumindest damals unter server 2012 mein Pfad)

Viele Grüße
Potshock

Wo du Recht hast hast du Recht!
Ja, ich möchte per WDS das ganze Verteilen...
Vielen Dank für den Hinweis, ich werde mich jetzt mal bzwgl. der 2ten Antwortdatei schlau machen.

Viele Grüße
Jay
Member: Franz-Josef-II
Franz-Josef-II Jun 13, 2023 at 08:00:12 (UTC)
Goto Top
Okay ..... ich hätte es so gelesen, daß die Partitionen erstellt werden, aber dann weder formatiert etc werden.

WDS ..... auch nicht so unwichtig, da gibt's doch zwei Möglichkeiten für die unattended ..... für alle und für jedes Image. Dann gab's da doch auch den Beschriftungsfehler von Microsoft, die x64 unattended und, ich glaube die arm64 waren vertauscht, anders zugewiesen und läuft.

Ist schon zulange her, aber irgendwie so war's.