steve6375 Posted May 14, 2015 Share Posted May 14, 2015 (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 can1. Specify an exact size2. 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 May 14, 2015 by steve6375 Link to comment Share on other sites More sharing options...
Tripredacus Posted May 14, 2015 Share Posted May 14, 2015 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 More sharing options...
steve6375 Posted May 14, 2015 Author Share Posted May 14, 2015 Thanks for the reply. I had thought of using two different XML files. I just wondered if it could be done within the XML.cheersSteve Link to comment Share on other sites More sharing options...
Tripredacus Posted May 14, 2015 Share Posted May 14, 2015 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now