Jump to content

Recommended Posts

Posted (edited)

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

Posted

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.

Posted

Thanks for the reply. I had thought of using two different XML files. I just wondered if it could be done within the XML.

cheers

Steve

Posted

I don't think you can do it with just the XML. The documentation does not make any sort of mention about that capability.

I wonder if MDT can do this.

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...