Windows Deployment

I'm trying to automate the Boot image portion of a deployment service rollout.  I have everything else working but I can't figure out how to Delete Disk 0 Partition 1 (only) and install on the unallocated left over space.

There are 3 patritions craeted on the drive and I want to keep the other 2 intact.
S FoxTechnicianAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

merowingerCommented:
use an own diskpart script
http://technet.microsoft.com/en-us/library/cc766465(WS.10).aspx
e.g.

select disk 0
select partition 0
delete partition
create partition primary
select partition 0
format fs=ntfs quick
...
0
S FoxTechnicianAuthor Commented:
Where does the script get placed in the xml file?  And what type of script file bat, vbs...  are the lines above what appears in teh script and nothing else?

select disk 0
select partition 0
delete partition
create partition primary
select partition 0
format fs=ntfs quick
0
merowingerCommented:
I think you're using Windows System Image Manager (WISM) from the WAIK package to create your unattend.xml?
Add a RunSynchronous Command into the WindowsPE phase
The command which sould be executed could look like:
diskpart.exe /s hddconfigure.txt

The above listed commands should be in the hddconfigure.txt. But you've to check which commands you need depending on your clients.
Mount the WindowsPE image and copy the hddconfigure.txt into the root. Unmount and apply changes
0
Acronis Data Cloud 7.8 Enhances Cyber Protection

A closer look at five essential enhancements that benefit end-users and help MSPs take their cloud data protection business further.

S FoxTechnicianAuthor Commented:
that is correct I am using System Image Manager.  I'm using the default Boot.WIM from the Win7 DVD to start the deploy.  I will try what you have suggested and get back to you.  Thanks alot for the help!
0
S FoxTechnicianAuthor Commented:
Where can I find RunSynchronous under components?
0
S FoxTechnicianAuthor Commented:
I found  RunSynchronous but it's only available on the Specialize Pass; Correct me if I'm wrong but shoudl it look like the following?  And I shouldn't need credentials should I?


Diskpart.jpg
0
merowingerCommented:
ok can you add the RunAsynchronous to PE Phase? Yes you typed it in correctly. No credentials.
0
S FoxTechnicianAuthor Commented:
It's not an option to add it to the PE phase.  I'm guessing ti should be?  

Could it just be moved up in the file?

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
            <WindowsDeploymentServices>
                <Login>
                    <WillShowUI>OnError</WillShowUI>
                    <Credentials>
                        <Username>1900install</Username>
                        <Domain>nbed</Domain>
                        <Password>P@ssw0rd</Password>
                    </Credentials>
                </Login>
                <ImageSelection>
                    <WillShowUI>OnError</WillShowUI>
                    <InstallImage>
                        <ImageName>Teacher</ImageName>
                        <ImageGroup>Windows 7</ImageGroup>
                        <Filename>Teacher 4510s.wim</Filename>
                    </InstallImage>
                    <InstallTo>
                        <DiskID>0</DiskID>
                        <PartitionID>1</PartitionID>
                    </InstallTo>
                </ImageSelection>
            </WindowsDeploymentServices>
        </component>
        <component name="Microsoft-Windows-International-Core-WinPE" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
            <SetupUILanguage>
                <WillShowUI>OnError</WillShowUI>
                <UILanguage>en-US</UILanguage>
            </SetupUILanguage>
            <UILanguage>en-US</UILanguage>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Credentials>
                        <Domain></Domain>
                        <Password></Password>
                        <Username></Username>
                    </Credentials>
                    <Description>Diskpart</Description>
                    <Path>diskpart.exe /s hddconfigure.txt</Path>
                    <Order>1</Order>
                </RunSynchronousCommand>
            </RunSynchronous>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:i:/sources/install.wim#Windows 7 ENTERPRISE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
0
merowingerCommented:
No don't do this - the RunAsynchronousCommand should be available for Win PE
http://technet.microsoft.com/de-de/library/cc765964(WS.10).aspx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
merowingerCommented:
You can also add RunSynchronousCommand in the Windows PE Phase.
This will be the better option as the Sequence waits until the command is completed.
0
S FoxTechnicianAuthor Commented:
When does the command run before or after the gui disk manager?  As the gui disk parttitiom still pops up.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Software

From novice to tech pro — start learning today.