MSFN Forum: Windows 7 Unattended DiskConfiguration - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Windows 7 Unattended DiskConfiguration

#1 User is offline   b1nb4sh 

  • Group: Members
  • Posts: 9
  • Joined: 18-April 12
  • OS:none specified
  • Country: Country Flag

Posted 18 April 2012 - 06:17 AM

Hello,

I could cry :/ I tried to unattended my windows setup but at the part where it should partition my harddisk it shows me the harddisk with unallocated space.

My unattened setup should create 3 partitions (1. System Reserved, 2. System (Win+Programs), 3. Data).

Can any1 help me find my mistake.


<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
        <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">
            <UserData>
                <AcceptEula>true</AcceptEula>
            </UserData>
            <DiskConfiguration>
                <Disk wcm:action="add">
                    <CreatePartitions>
                        <CreatePartition wcm:action="add">
                            <Order>1</Order>
                            <Size>200</Size>
                            <Type>Primary</Type>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">
                            <Size>20480</Size>
                            <Order>2</Order>
                            <Type>Primary</Type>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">
                            <Extend>true</Extend>
                            <Order>3</Order>
                            <Type>Primary</Type>
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <ModifyPartition wcm:action="add">
                            <Active>true</Active>
                            <Format>NTFS</Format>
                            <Label>System Reserved</Label>
                            <Order>1</Order>
                            <PartitionID>1</PartitionID>
                            <Extend>false</Extend>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Active>false</Active>
                            <Extend>false</Extend>
                            <Format>NTFS</Format>
                            <Label>System</Label>
                            <Letter>C</Letter>
                            <Order>2</Order>
                            <PartitionID>2</PartitionID>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Active>false</Active>
                            <Extend>false</Extend>
                            <Format>NTFS</Format>
                            <Label>Daten</Label>
                            <Letter>D</Letter>
                            <Order>3</Order>
                            <PartitionID>3</PartitionID>
                        </ModifyPartition>
                    </ModifyPartitions>
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                </Disk>
                <WillShowUI>OnError</WillShowUI>
            </DiskConfiguration>
        </component>
        <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>en-US</UILanguage>
            </SetupUILanguage>
            <InputLocale>de-DE</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UILanguageFallback>en-US</UILanguageFallback>
            <UserLocale>de-DE</UserLocale>
        </component>
    </settings>
    <settings pass="specialize">
        <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">
            <ProductKey>key</ProductKey>
            <ComputerName>*</ComputerName>
            <RegisteredOrganization>.</RegisteredOrganization>
            <RegisteredOwner>.</RegisteredOwner>
        </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">
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <NetworkLocation>Home</NetworkLocation>
                <ProtectYourPC>3</ProtectYourPC>
            </OOBE>
            <RegisteredOrganization>.</RegisteredOrganization>
            <RegisteredOwner>.</RegisteredOwner>
            <TimeZone>W. Europe Standard Time</TimeZone>
            <FolderLocations>
                <ProfilesDirectory>D:\Users\</ProfilesDirectory>
            </FolderLocations>
        </component>
</unattend>



#2 User is offline   b1nb4sh 

  • Group: Members
  • Posts: 9
  • Joined: 18-April 12
  • OS:none specified
  • Country: Country Flag

Posted 18 April 2012 - 06:26 AM

OS: Windows 7 Ent SP1 x64

#3 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,690
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 18 April 2012 - 09:17 AM

How much space? Can you show a result?

#4 User is offline   b1nb4sh 

  • Group: Members
  • Posts: 9
  • Joined: 18-April 12
  • OS:none specified
  • Country: Country Flag

Posted 18 April 2012 - 03:05 PM

What do you mean? Space of the Partitions?

Refer to the autounattend.xml my partitions are

1. System Reserved 200MB
2. System 20GB
3. extend

The harddisk is a vdi file with 40 GB size.


best regards

#5 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,690
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 18 April 2012 - 03:11 PM

Yes, I can read it in the unattend what you want to do, but you are saying you are not getting the correct results, but do not tell us what results you are getting.

Can you post specifics on what results you do get? You can either put in a picture of how it appears in Disk Management, or run Detail Disk/Part/Vol with Diskpart to get some numbers.

#6 User is offline   b1nb4sh 

  • Group: Members
  • Posts: 9
  • Joined: 18-April 12
  • OS:none specified
  • Country: Country Flag

Posted 18 April 2012 - 03:22 PM

It's easy after some time it shows the Partition Window with Disk 0 unallocated Space and that's all nothing more.

#7 User is offline   b1nb4sh 

  • Group: Members
  • Posts: 9
  • Joined: 18-April 12
  • OS:none specified
  • Country: Country Flag

Posted 18 April 2012 - 03:23 PM

View Postb1nb4sh, on 18 April 2012 - 03:22 PM, said:

It's easy after some time it shows the Partition Window with Disk 0 unallocated Space and that's all nothing more.


It looks like the xml file is corrupt or something but the xml validation of the wsim shows me no problems.

#8 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,690
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 19 April 2012 - 07:48 AM

Well try it without any of the Extend objects you are using.

#9 User is offline   TheWalrus 

  • N.W.O.
  • PipPipPipPipPip
  • Group: Members
  • Posts: 911
  • Joined: 11-August 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 19 April 2012 - 02:34 PM

Does the order of the lines matter?

This works like a charm for me:


            <DiskConfiguration>
                <Disk wcm:action="add">
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                    <CreatePartitions>
                        <CreatePartition wcm:action="add">
                            <Order>1</Order>
                            <Type>Primary</Type>
                            <Size>100</Size>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">
                            <Order>2</Order>
                            <Type>Primary</Type>
                            <Size>100000</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>
                            <Active>true</Active>
                            <Format>NTFS</Format>
                            <Label>Boot</Label>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Order>2</Order>
                            <PartitionID>2</PartitionID>
                            <Format>NTFS</Format>
                            <Letter>C</Letter>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Order>3</Order>
                            <PartitionID>3</PartitionID>
                            <Format>NTFS</Format>
                            <Letter>D</Letter>
                        </ModifyPartition>
                    </ModifyPartitions>
                </Disk>
            </DiskConfiguration>







#10 User is offline   b1nb4sh 

  • Group: Members
  • Posts: 9
  • Joined: 18-April 12
  • OS:none specified
  • Country: Country Flag

Posted 19 April 2012 - 02:43 PM

Sorry for my delayed response I had some exams but now I'm finished.

I try the step with removing the extend options and replace it with a fixed size -> doesn't work.

@TheWalrus

I'll test your file to verify if the error comes from the orders of the lines.

#11 User is offline   b1nb4sh 

  • Group: Members
  • Posts: 9
  • Joined: 18-April 12
  • OS:none specified
  • Country: Country Flag

Posted 19 April 2012 - 03:02 PM

I use Virtualbox to test my windows 7 setup here a some information

vCPU:1
Ram: 1024 MB
HD: 40 GB

Sata0: Optical Drive
Sata1: Harddisk 0

The Harddisk on Sata1 is correctly recognized as Disk0.


VirtualBox 4.1.12 (newest)

This post has been edited by b1nb4sh: 19 April 2012 - 03:03 PM


#12 User is offline   b1nb4sh 

  • Group: Members
  • Posts: 9
  • Joined: 18-April 12
  • OS:none specified
  • Country: Country Flag

Posted 19 April 2012 - 03:18 PM

I found some solution. When the harddisk is unallocated (means no partions on it) the autopartition doesn't work but when I format the disk and restart the setup it works. The Disks are formatted and the setup runs through.

Maybe I should change this section to modify?

<Disk wcm:action="add">

#13 User is offline   b1nb4sh 

  • Group: Members
  • Posts: 9
  • Joined: 18-April 12
  • OS:none specified
  • Country: Country Flag

Posted 19 April 2012 - 03:28 PM

Ok, I change the add to modify and now it format my unallocated disk but it says the partition is not correctly formatted.

#14 User is offline   ankitgoenka 

  • Group: Members
  • Posts: 1
  • Joined: 04-May 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 04 May 2012 - 12:53 PM

I am a newbi to the idea of making custom/automated windows 7 installer - Can someone please guide me
my objectives are
complete automated installation
1. Auto accept - Install Now
2. Auto accept - EULA
3. Auto partition - 100MB - SYSTEM / 100GB - Windows/ and remainder into 3 partitions (this should be auto - should automatically device remainder of 250gb/500gb and so on)
4. Auto accept time zone
5. Choose security settings to Ask Me Later

Can some one please help

#15 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,396
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 04 May 2012 - 01:40 PM

Remember to change the size for the partition C:\ when you use with VirtualBox or on a real HDD!

 <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="[url="http://schemas.microsoft.com/WMIConfig/2002/State"]http://schemas.microsoft.com/WMIConfig/2002/State[/url]" xmlns:xsi="[url="http://www.w3.org/2001/XMLSchema-instance"]http://www.w3.org/2001/XMLSchema-instance[/url]"> 
            <Diagnostics>
                <OptIn>false</OptIn>
            </Diagnostics>
            <DiskConfiguration>
                <WillShowUI>OnError</WillShowUI>
                <Disk wcm:action="add">
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                    <CreatePartitions>
                        <CreatePartition wcm:action="add">
                            <Order>1</Order>
                            <Type>Primary</Type>
                            <Size>100</Size>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">
                            <Order>2</Order>
                            <Size>10000</Size>
                            <Type>Primary</Type>
                        </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>NTFS</Format>
                            <Active>true</Active>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Order>2</Order>
                            <PartitionID>2</PartitionID>
                            <Letter>C</Letter>
                            <Label>SEVEN</Label>
                            <Format>NTFS</Format>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Order>3</Order> 
                            <Format>NTFS</Format> 
                            <PartitionID>3</PartitionID> 
                            <Label>DATA</Label> 
                            <Letter>D</Letter> 
                        </ModifyPartition> 
                    </ModifyPartitions>
                </Disk>
            </DiskConfiguration>



Example here with: C:\ partition with 10GB. When you want use with a real HDD, adapt the size to suit your needs!

More help about Autounattend.xml file:

http://www.msfn.org/...seven-xml-here/

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy