x23piracy Posted July 28, 2014 Share Posted July 28, 2014 Hi, i have for months a good working autounattend.xml:<?xml version="1.0" encoding="utf-8"?><unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="specialize"> <component name="Microsoft-Windows-IE-InternetExplorer" 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"> <AllowedSites></AllowedSites> <BlockPopups>yes</BlockPopups> <PlaySound>false</PlaySound> <FavoritesDelete>true</FavoritesDelete> <ShowInformationBar>true</ShowInformationBar> <DisableFirstRunWizard>true</DisableFirstRunWizard> <DisableOOBAccelerators>true</DisableOOBAccelerators> <DisableWelcomePage>true</DisableWelcomePage> <LockToolbars>true</LockToolbars> <Home_Page>http://www.google.de</Home_Page> <LocalIntranetSites></LocalIntranetSites> <SearchScopes> <Scope wcm:action="add"> <ScopeDefault>true</ScopeDefault> <ScopeDisplayName>Google</ScopeDisplayName> <ScopeKey>SearchProvider1</ScopeKey> <ScopeUrl>http://www.google.de/search?q={searchTerms}</ScopeUrl> <FaviconURL>http://www.google.de/favicon.ico</FaviconURL> </Scope> </SearchScopes> <FavoritesList> <FavoriteItem wcm:action="add"> <FavID>1</FavID> <FavTitle>bla</FavTitle> <FavURL>http://www.bla.de</FavURL> </FavoriteItem> </FavoritesList> </component> <component name="Microsoft-Windows-International-Core" 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"> <SystemLocale>de-DE</SystemLocale> <UILanguage>de-DE</UILanguage> <UserLocale>de-DE</UserLocale> <InputLocale>0407:00000407</InputLocale> </component> <component name="Microsoft-Windows-UnattendedJoin" 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"> <Identification> <JoinWorkgroup>ARBEITSGRUPPE</JoinWorkgroup> <Credentials> <Domain>domain.local</Domain> <Password>password</Password> <Username>Administrator</Username> </Credentials> <JoinDomain>haan.local</JoinDomain> </Identification> </component> <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"> <ComputerName>*</ComputerName> <TimeZone>W. Europe Standard Time</TimeZone> </component> </settings> <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"> <UserLocale>de-DE</UserLocale> <UILanguage>de-DE</UILanguage> <SystemLocale>de-DE</SystemLocale> <InputLocale>0407:00000407</InputLocale> </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"> <ImageInstall> <OSImage> <InstallFrom> <MetaData wcm:action="add"> <Key>/IMAGE/INDEX</Key> <Value>3</Value> </MetaData> </InstallFrom> </OSImage> </ImageInstall> <Display> <ColorDepth>32</ColorDepth> <HorizontalResolution>1280</HorizontalResolution> <VerticalResolution>800</VerticalResolution> <RefreshRate>60</RefreshRate> </Display> <UserData> <ProductKey> <Key>HYF8J-CVRMY-XXXXX-RPHKF-XXXXX</Key> </ProductKey> <AcceptEula>true</AcceptEula> <Organization>bla</Organization> <FullName>bla</FullName> </UserData> </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"> <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <Order>1</Order> <CommandLine>%Systemdrive%\Install\WPI.cmd</CommandLine> </SynchronousCommand> </FirstLogonCommands> <OOBE> <HideEULAPage>true</HideEULAPage> <ProtectYourPC>3</ProtectYourPC> <NetworkLocation>Work</NetworkLocation> </OOBE> <UserAccounts> <AdministratorPassword> <Value>password</Value> <PlainText>true</PlainText> </AdministratorPassword> <LocalAccounts> <LocalAccount wcm:action="add"> <Password> <Value>password</Value> <PlainText>true</PlainText> </Password> <Name>retsch</Name> <Group>Administrators</Group> </LocalAccount> </LocalAccounts> </UserAccounts> <AutoLogon> <Password> <Value>password</Value> <PlainText>true</PlainText> </Password> <Enabled>true</Enabled> <LogonCount>3</LogonCount> <Username>Administrator</Username> </AutoLogon> <ShowWindowsLive>false</ShowWindowsLive> </component> <component name="Microsoft-Windows-Sidebar" 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"> <Gadget1>%PROGRAMFILES%\windows sidebar\shared gadgets\Leo.gadget,true</Gadget1> <Gadget2>%PROGRAMFILES%\windows sidebar\gadgets\Clock.Gadget,true</Gadget2> </component> </settings></unattend>I am trying to add the following parts: <DiskConfiguration> <Disk wcm:action="add"> <CreatePartitions> <CreatePartition wcm:action="add"> <Type>Primary</Type> <Size>100</Size> <------------------------- 100 MB <Order>1</Order> </CreatePartition> <CreatePartition wcm:action="add"> <Type>Primary</Type> <Order>2</Order> <Extend>true</Extend> <---------------------- rest of HDD </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Label>Windows 7</Label> <Letter>C</Letter> <Active>true</Active> <Extend>false</Extend> <Format>NTFS</Format> <Order>1</Order> <PartitionID>1</PartitionID> </ModifyPartition> <ModifyPartition wcm:action="add"> <Order>2</Order> <PartitionID>2</PartitionID> <Letter>D</Letter> <Label>Data</Label> <Format>NTFS</Format> <Active>false</Active> <Extend>false</Extend> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> <WillShowUI>OnError</WillShowUI> </DiskConfiguration> <ImageInstall> <OSImage> <InstallTo> <DiskID>0</DiskID> <PartitionID>1</PartitionID> </InstallTo> <WillShowUI>OnError</WillShowUI> </OSImage> </ImageInstall>This is my result and it is not working, i get error messages when windows setup is trying to pass the file, i cannot find the error. Is someone here with an eagle eye or more knowledge about autounattend.xml? The complete XML with added Disk Configuration is like that:<?xml version="1.0" encoding="utf-8"?><unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="specialize"> <component name="Microsoft-Windows-IE-InternetExplorer" 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"> <AllowedSites></AllowedSites> <BlockPopups>yes</BlockPopups> <PlaySound>false</PlaySound> <FavoritesDelete>true</FavoritesDelete> <ShowInformationBar>true</ShowInformationBar> <DisableFirstRunWizard>true</DisableFirstRunWizard> <DisableOOBAccelerators>true</DisableOOBAccelerators> <DisableWelcomePage>true</DisableWelcomePage> <LockToolbars>true</LockToolbars> <Home_Page>http://www.google.de</Home_Page> <LocalIntranetSites></LocalIntranetSites> <SearchScopes> <Scope wcm:action="add"> <ScopeDefault>true</ScopeDefault> <ScopeDisplayName>Google</ScopeDisplayName> <ScopeKey>SearchProvider1</ScopeKey> <ScopeUrl>http://www.google.de/search?q={searchTerms}</ScopeUrl> <FaviconURL>http://www.google.de/favicon.ico</FaviconURL> </Scope> </SearchScopes> <FavoritesList> <FavoriteItem wcm:action="add"> <FavID>1</FavID> <FavTitle>bla</FavTitle> <FavURL>http://www.bla.de</FavURL> </FavoriteItem> </FavoritesList> </component> <component name="Microsoft-Windows-International-Core" 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"> <SystemLocale>de-DE</SystemLocale> <UILanguage>de-DE</UILanguage> <UserLocale>de-DE</UserLocale> <InputLocale>0407:00000407</InputLocale> </component> <component name="Microsoft-Windows-UnattendedJoin" 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"> <Identification> <JoinWorkgroup>ARBEITSGRUPPE</JoinWorkgroup> <Credentials> <Domain>domain.local</Domain> <Password>password</Password> <Username>Administrator</Username> </Credentials> <JoinDomain>haan.local</JoinDomain> </Identification> </component> <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"> <ComputerName>*</ComputerName> <TimeZone>W. Europe Standard Time</TimeZone> </component> </settings> <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"> <UserLocale>de-DE</UserLocale> <UILanguage>de-DE</UILanguage> <SystemLocale>de-DE</SystemLocale> <InputLocale>0407:00000407</InputLocale> </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"> <DiskConfiguration> <Disk wcm:action="add"> <CreatePartitions> <CreatePartition wcm:action="add"> <Type>Primary</Type> <Size>100</Size> <------------------------- 100 MB <Order>1</Order> </CreatePartition> <CreatePartition wcm:action="add"> <Type>Primary</Type> <Order>2</Order> <Extend>true</Extend> <---------------------- rest of HDD </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Label>Windows 7</Label> <Letter>C</Letter> <Active>true</Active> <Extend>false</Extend> <Format>NTFS</Format> <Order>1</Order> <PartitionID>1</PartitionID> </ModifyPartition> <ModifyPartition wcm:action="add"> <Order>2</Order> <PartitionID>2</PartitionID> <Letter>D</Letter> <Label>Data</Label> <Format>NTFS</Format> <Active>false</Active> <Extend>false</Extend> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> <WillShowUI>OnError</WillShowUI> </DiskConfiguration> <ImageInstall> <OSImage> <InstallFrom> <MetaData wcm:action="add"> <Key>/IMAGE/INDEX</Key> <Value>3</Value> </MetaData> </InstallFrom> <InstallTo> <DiskID>0</DiskID> <PartitionID>1</PartitionID> </InstallTo> <WillShowUI>OnError</WillShowUI> </OSImage> </ImageInstall> <Display> <ColorDepth>32</ColorDepth> <HorizontalResolution>1280</HorizontalResolution> <VerticalResolution>800</VerticalResolution> <RefreshRate>60</RefreshRate> </Display> <UserData> <ProductKey> <Key>HYF8J-CVRMY-XXXXX-RPHKF-XXXXX</Key> </ProductKey> <AcceptEula>true</AcceptEula> <Organization>bla</Organization> <FullName>bla</FullName> </UserData> </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"> <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <Order>1</Order> <CommandLine>%Systemdrive%\Install\WPI.cmd</CommandLine> </SynchronousCommand> </FirstLogonCommands> <OOBE> <HideEULAPage>true</HideEULAPage> <ProtectYourPC>3</ProtectYourPC> <NetworkLocation>Work</NetworkLocation> </OOBE> <UserAccounts> <AdministratorPassword> <Value>password</Value> <PlainText>true</PlainText> </AdministratorPassword> <LocalAccounts> <LocalAccount wcm:action="add"> <Password> <Value>password</Value> <PlainText>true</PlainText> </Password> <Name>retsch</Name> <Group>Administrators</Group> </LocalAccount> </LocalAccounts> </UserAccounts> <AutoLogon> <Password> <Value>password</Value> <PlainText>true</PlainText> </Password> <Enabled>true</Enabled> <LogonCount>3</LogonCount> <Username>Administrator</Username> </AutoLogon> <ShowWindowsLive>false</ShowWindowsLive> </component> <component name="Microsoft-Windows-Sidebar" 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"> <Gadget1>%PROGRAMFILES%\windows sidebar\shared gadgets\Leo.gadget,true</Gadget1> <Gadget2>%PROGRAMFILES%\windows sidebar\gadgets\Clock.Gadget,true</Gadget2> </component> </settings></unattend>Regards X23 Quote Link to comment Share on other sites More sharing options...
ricktendo Posted July 28, 2014 Share Posted July 28, 2014 Maybe its failing because 100MB is not big enough to install windows on Quote Link to comment Share on other sites More sharing options...
Pink_Freud Posted August 6, 2014 Share Posted August 6, 2014 Maybe its failing because 100MB is not big enough to install windows on :doh: this should work... <DiskConfiguration> <Disk wcm:action="add"> <CreatePartitions> <CreatePartition wcm:action="add"> <Type>Primary</Type> <Size>100</Size> <Order>1</Order> </CreatePartition> <CreatePartition wcm:action="add"> <Type>Primary</Type> <Order>2</Order> <Extend>true</Extend> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Label>Windows 7</Label>---------------------Change to "System" <Letter>C</Letter>---------------------------Remove this <Active>true</Active> <Extend>false</Extend> <Format>NTFS</Format> <Order>1</Order> <PartitionID>1</PartitionID> </ModifyPartition> <ModifyPartition wcm:action="add"> <Order>2</Order> <PartitionID>2</PartitionID> <Letter>D</Letter>--------------------------------Change to "C" <Label>Data</Label>-------------------------------Change to "Windows 7" <Format>NTFS</Format> <Active>false</Active>-----------------------------Remove this <Extend>false</Extend>-----------------------------Remove this, you already defined as Extend=true under </CreatePartition> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> <WillShowUI>OnError</WillShowUI> </DiskConfiguration> <ImageInstall> <OSImage> <InstallTo> <DiskID>0</DiskID> <PartitionID>1</PartitionID>-------------------------Change to "2" </InstallTo> <WillShowUI>OnError</WillShowUI> </OSImage> </ImageInstall> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.