Jump to content

Unattend.xml - how to create 500GB or less partition


Recommended Posts

When using a Win7 xml file, I want it to create a single partition for Win7 OS. The size of the the target disk is unknown (the xml will be used on many different systems).

It seems I can

1. Specify an exact size

2. Extend the partition to maximum size

 

However, what I want is that the OS partition should be a maximum of 500GB - if the disk is any larger than this then the remaining space should be left unpartitioned.

 

e.g. a 250GB HDD will have a 250GB OS partition, a 1TB HDD will have a 500GB OS partition and the rest of the space left alone.

 

Is this possible?

Edited by steve6375
Link to comment
Share on other sites


It is possible, but not using Setup and an unattend alone. You'd need to use some form of wrapper to do the following:

1. If Disk 0 exist, determine the disk size.

2. If disk size 500GB or lower, use XML#1

3. If disk size 501GB or larger, use XML#2

4. Launch setup.exe with unattend switch pointing to the desired XML file.

For the two different XML files, #1 will be the type to create full disk partition, #2 will only create 500GB partition.

This is the first thing I can think of. You'd need to use some sort of programming or scripting language (maybe even batch can do it) for the wrapper.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...