Giter Site home page Giter Site logo

Comments (3)

BladeFireLight avatar BladeFireLight commented on July 24, 2024

In what case is having both architecture causing you an issue?

None of my testing has ever shown an bad side effect to having both.

from windowsimagetools.

drstonephd avatar drstonephd commented on July 24, 2024

I think it's been working, but Microsoft warns about using both in the same file. (See the end of the documentation at the following link.) I do not know how this all works, but it if x86 works for both x86 and amd64, then why bother with defining a section for amd64?

https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-7/dd799255%28v%3dws.10%29

I will try just x86. My attempt to add letters to the extra partitions was ignored. Probably because the drives are offline. I added a section to change the SAN policy that prevents them from coming online, but it was ignored. I used amd64, but the documentation indicated x86. Maybe that's the issue. If the oflineServicing pass is after the windowsPE pass, then perhaps this can't work. I have never tried this before. You're module inspired me to see if I can write a script to built a SQL Server unattended.

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <settings pass="offlineServicing">
    <component name="Microsoft-Windows-PartitionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
      <SanPolicy>1</SanPolicy>
    </component>
  </settings>
  <settings pass="windowsPE">
    <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral">
      <DiskConfiguration>
        <Disk wcm:action="add">
          <DiskID>0</DiskID>
          <ModifyPartitions>
            <ModifyPartition wcm:action="add">
              <Order>1</Order>
              <PartitionID>3</PartitionID>
              <Label>OS</Label>
              <Letter>C</Letter>
            </ModifyPartition>
          </ModifyPartitions>
        </Disk>
        <Disk wcm:action="add">
          <DiskID>1</DiskID>
          <ModifyPartitions>
            <ModifyPartition wcm:action="add">
              <Order>1</Order>
              <PartitionID>2</PartitionID>
              <Label>SQL</Label>
              <Letter>G</Letter>
            </ModifyPartition>
          </ModifyPartitions>
        </Disk>
        <Disk wcm:action="add">
          <DiskID>2</DiskID>
          <ModifyPartitions>
            <ModifyPartition wcm:action="add">
              <Order>1</Order>
              <PartitionID>2</PartitionID>
              <Label>BACKUP</Label>
              <Letter>H</Letter>
            </ModifyPartition>
          </ModifyPartitions>
        </Disk>
        <Disk wcm:action="add">
          <DiskID>3</DiskID>
          <ModifyPartitions>
            <ModifyPartition wcm:action="add">
              <Order>1</Order>
              <PartitionID>2</PartitionID>
              <Label>DATA</Label>
              <Letter>I</Letter>
            </ModifyPartition>
          </ModifyPartitions>
        </Disk>
        <Disk wcm:action="add">
          <DiskID>4</DiskID>
          <ModifyPartitions>
            <ModifyPartition wcm:action="add">
              <Order>1</Order>
              <PartitionID>2</PartitionID>
              <Label>LOG</Label>
              <Letter>J</Letter>
            </ModifyPartition>
          </ModifyPartitions>
        </Disk>
        <Disk wcm:action="add">
          <DiskID>5</DiskID>
          <ModifyPartitions>
            <ModifyPartition wcm:action="add">
              <Order>1</Order>
              <PartitionID>2</PartitionID>
              <Label>TEMPDB</Label>
              <Letter>T</Letter>
            </ModifyPartition>
          </ModifyPartitions>
        </Disk>
      </DiskConfiguration>
    </component>
  </settings>
etc.

Also, here is a link to the SAN policy bit.

https://support.microsoft.com/en-us/help/973834/microsoft-hyper-v-server-san-policy-is-set-to-automatically-mount-volu

from windowsimagetools.

drstonephd avatar drstonephd commented on July 24, 2024

I changed the san policy and disk config components to x86 and they are still ignored. I might end up using Set-Disk and Set-Partition to bring them online and set the label and letter.

from windowsimagetools.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.