Jump to content

Recommended Posts

Posted (edited)

I've been trying to use W7Toolkit to automate certain complicated installations, but I've run into a really bad problem with Windows 7 SP1 and the Autounattend.xml not doing %UserProfiles% correctly.

 

System installs just fine, but on first boot it's unusable reporting all User Profiles are inaccessible. So it's definitely not being set correctly. And installing them to the right drive is critically important - if they go on the wrong drive, bad things happen. This is occurring with DiskConfiguration settings and with partially manual installation which guarantees the correct disk letters.

 

Here's the relevant portions from my Autounattend.xml

 

 <FolderLocations>
    <ProfilesDirectory>D:\Users\</ProfilesDirectory>
</FolderLocations>

 

For all users, it just throws "The User Profile Service failed the logon". This includes Administrator and created users. Checking disk contents reveals that there is a D:\Users\Administrator and so on. Any ideas?

 

(Derp: typing by hand leads to silly mistakes. Fixed typo that is not present in autounattend.xml.)

Edited by RootWyrm
Posted

Oh, and probably also a relevant element, the disk setup portion of the autounattend.xml  - yes, manually added. Should also note, this is only occurring with W7TK prepared images.

 

<DiskConfiguration>
    <!--Debugging-->
    <WillShowUI>Always</WillShowUI>
    <Disk>
        <!-- C602_SAS0,0 -->
        <DiskID>0</DiskID>
        <CreatePartitions>
            <CreatePartition wcm:action="add">
                <!--Recovery Partition-->
                <Order>1</Order>
                <Type>Primary</Type>
                <Size>128</Size>
            </CreatePartition>
            <CreatePartition wcm:action="add">
                <!-- C:, %SystemDrive% -->
                <Order>2</Order>
                <Type>Primary</Type>
                <Extend>true</Extend>
            </CreatePartition>
        </CreatePartitions>
        <ModifyPartitions>
            <ModifyPartition wcm:action="modify">
                <Active>true</Active>
                <Extend>true</Extend>
                <Format>NTFS</Format>
                <Label>LocalSSD</Label>
                <Letter>C</Letter>
                <PartitionID>2</PartitionID>
                <Order>2</Order>
        </ModifyPartitions>
        <!-- C602_RAID5,0 -->
        <DiskID>1</DiskID>
        <CreatePartitions>
            <CreatePartition wcm:action="add">
                <!-- D:, %UserProfiles%, $VMTGT -->
                <Order>1</Order>
                <Type>Primary</Type>
                <Size>768000</Size>
            </CreatePartition>
            <CreatePartition wcm:action="add">
                <!-- E:, $DBSTOR -->
                <Order>2</Order>
                <Type>Primary</Type>
                <Size>1048576</Size>
            </CreatePartition>
        </CreatePartitions>
        <ModifyPartitions>
            <ModifyPartition wcm:action="modify">
                <Active>false</Active>
                <Format>NTFS</Format>
                <Label>RAID5_0</Label>
                <Letter>D</Letter>
                <Order>1</Order>
                <PartitionID>1</PartitionID>
            </ModifyPartition>
            <ModifyPartition wcm:action="modify">
                <Active>false</Active>
                <Format>NTFS</Format>
                <Label>RAID5_1</Label>
                <Letter>E</Letter>
                <Order>2</Order>
                <PartitionID>2</PartitionID>
        </ModifyPartitions>
    </Disk>
</DiskConfiguration>
<WindowsDeploymentServices>
<ImageSelection>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
</ImageSelection>

 

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...