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?
 
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
 
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
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
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
 
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:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.