MSFN Forum: Run diskpart before install - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Run diskpart before install

#1 User is offline   AlexCeed 

  • Newbie
  • Group: Members
  • Posts: 22
  • Joined: 11-April 11
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 09 September 2012 - 03:35 PM

I'm using an unattended sheet in order to install windows 8. I'm fairly new in unattended procedures ans was wondering if I could integrate in my sheet a way to launch a batch in order to create partitions.

Here is my unattended sheet:
<?xml version="1.0" encoding="utf-8"?> 
<unattend xmlns="urn:schemas-microsoft-com:unattend"> 
    <settings pass="windowsPE"> 
        <component name="Microsoft-Windows-Setup" 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"> 
            <UserData> 
                <ProductKey> 
                    <WillShowUI>OnError</WillShowUI> 
                    <Key></Key> 
                </ProductKey> 
                <AcceptEula>true</AcceptEula> 
                <FullName></FullName> 
                <Organization></Organization> 
            </UserData> 
        </component> 
        <component name="Microsoft-Windows-International-Core-WinPE" 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"> 
            <SetupUILanguage> 
                <UILanguage>en-US</UILanguage> 
            </SetupUILanguage> 
            <InputLocale>0409:00000409</InputLocale> 
            <UserLocale>en-US</UserLocale> 
            <SystemLocale>en-US</SystemLocale> 
            <UILanguage>en-US</UILanguage> 
        </component> 
    </settings> 
    <settings pass="specialize"> 
        <component name="Microsoft-Windows-Shell-Setup" 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"> 
            <ComputerName></ComputerName> 
            <RegisteredOwner></RegisteredOwner> 
            <RegisteredOrganization></RegisteredOrganization> 
        </component> 
    </settings> 
    <settings pass="oobeSystem"> 
        <component name="Microsoft-Windows-Shell-Setup" 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"> 
            <OOBE> 
                <HideEULAPage>true</HideEULAPage> 
                <NetworkLocation>Work</NetworkLocation> 
                <ProtectYourPC>3</ProtectYourPC> 
            </OOBE> 
            <TimeZone>GTB Standard Time</TimeZone>
        </component> 
    </settings> 
</unattend> 


Is it possible to do it this way?


#2 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,690
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 10 September 2012 - 08:42 AM

Windows Setup can do it. No need for diskpart. Not sure if Setup uses Diskpart or what. Here is an example of an MBR setup:
http://www.msfn.org/...post__p__944807

If you are doing an EFI deployment, I can find that too.

#3 User is offline   MrJinje 

  • Tool™ Developer
  • Group: Developers
  • Posts: 942
  • Joined: 14-October 09
  • OS:none specified
  • Country: Country Flag

Posted 10 September 2012 - 10:35 PM

Or in case the built in disk configuration is not granular enough for your needs, can easily launch a batch during the windowsPE pass by using a RunSynchronous command. Greater details can be found inside your unattend.chm from the W8 ADK.

Microsoft-Windows-Setup | RunSynchronous


<RunSynchronous>
   <!-- First synchronous command to execute -->
   <RunSynchronousCommand>
      <Order>1</Order>
      <Path>\\MyNetworkShare\MyApplication.bat</Path>
      <Description>DescriptionOfMyApplication</Description>
      <Credentials>
         <Domain>FabrikamDomain</Domain>
         <UserName>MyUserName</UserName>
         <Password>MyPassword</Password>
      </Credentials>
   </RunSynchronousCommand>
<!-- Second synchronous command to execute -->
   <RunSynchronousCommand>
      <Order>2</Order>
      <Path>C:\AnotherApplication.cmd</Path>
      <Description>DescriptionOfMyApplication</Description>
   </RunSynchronousCommand>
</RunSynchronous>


This post has been edited by MrJinje: 10 September 2012 - 10:37 PM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy