"Why did my PC restart" error setting FolderLocations in AutoUnattend.xml

David Torgerson 101 Reputation points
2020-05-21T17:39:48.53+00:00

I am installing Windows 10 IoT 1809 with an AutoUnattend.xml which installs the OS and my application successfully However when I try to set FolderLocations to D:\ProgramData and d:\Users I get an error dialog "Why did my PC restart". When I click next it just returns to this dialog. When I select Shift-F10, the folders are created.

8582-annotation-2020-05-21-114844.png

Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,899 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sean Liming 4,511 Reputation points
    2020-05-27T18:25:08.097+00:00

    The error that you are running into and the solution seems a little odd. I don't normally setup the drives in my answer files since I don't want a live disk that can wipe out any machine without a safety stop. There is a screen that appears during installation that lets you partition and format the disks prior to install. I am asking to test to see if by chance the problem is related to the disk setup in the answer file.

    My book covers some of the details on UWF and Shell Launcher setup: https://annabooks.com/Book_SGWin10IoTE.html. I have developed some utilities based on the WMI API sets to help with setup for Shell Launcher and Keyboard filter: https://annabooks.com/Software.html. The Shell Launcher command line utility can be called with a Pass 7 command to setup Shell Launcher.

    Understood about going from WES7 to Windows 10. As you are finding there are some differences between WES7 and Windows 10 IoT Enterprise settings. Make sure to take a closer look at the power setting to see if there are any additional items for your platform.

    Regards,

    Sean Liming

    1 person found this answer helpful.
    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Jenny Feng 706 Reputation points
    2020-05-22T07:18:47.667+00:00

    Hi,

    Based on my search, the installation of Windows 10 may end up in a "Why did my PC restart" loop when there's anything blocking the diagnostics communication with Microsoft, maybe a policy, a blocked service or either a network firewall.

    In addition, here are some posts with the similar issue with yours, just for your reference, you can try the method mentioned in them:

    https://sccmentor.com/2018/08/13/why-did-my-pc-restart-windows-10-post-configmgr-osd/

    Note: This is a third-party link and we do not have any guarantees on this website. And Microsoft does not make any guarantees about the content.

    Hope above information can help you.


  2. Sean Liming 4,511 Reputation points
    2020-05-25T17:44:53.3+00:00

    Are you setting the folder locations in the distribution share or by a sync command in the answer (autounattend.xml) file?

    0 comments No comments

  3. David Torgerson 101 Reputation points
    2020-05-25T18:23:35.583+00:00

    I’m setting FolderLocations in the autounattend.xml file. I’m redirecting the folders to D: I am not using a cmd to redirect.

    0 comments No comments

  4. David Torgerson 101 Reputation points
    2020-05-26T16:26:32.867+00:00

    Apparently only the SkipMachineOOBE setting is needed to fix the problem. I suspect there is another setting in my answer file is the actual issue. Is there any documentation as to what it is actually doing? I haven't found any detail.

    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>&quot;%configsetroot%\$oem$\Packages\SQLExpress2012\SQLEXPRADV_x64_ENU.exe&quot; /HIDECONSOLE /CONFIGURATIONFILE=&quot;%configsetroot%\$oem$\Packages\SQLExpress2012\ConfigurationFile.ini&quot;</CommandLine>
                        <Order>4</Order>
                        <Description>SQL Express 2012 </Description>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>&quot;%configsetroot%\$oem$\Packages\Aries\Setup.exe&quot; /S /v/qb</CommandLine>
                        <Description>Aries Install</Description>
                        <RequiresUserInput>false</RequiresUserInput>
                        <Order>10</Order>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>20</Order>
                        <CommandLine>&quot;%configsetroot%\$oem$\Packages\Shell\Setup.exe&quot; /S /v/qb</CommandLine>
                        <Description>Shell Setup</Description>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>22</Order>
                        <CommandLine>%windir%\regedit.exe /S &quot;%configsetroot%\$oem$\Packages\Shell\AriesRegistryUpdate.reg&quot;</CommandLine>
                        <Description>Registry settings</Description>
                        <RequiresUserInput>false</RequiresUserInput>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>51</Order>
                        <CommandLine>%windir%\powercfg.exe -change -monitor-timeout-ac 0</CommandLine>
                        <Description>Power setting</Description>
                        <RequiresUserInput>false</RequiresUserInput>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>53</Order>
                        <CommandLine>%windir%\powercfg.exe -change -disk-timeout-ac 0</CommandLine>
                        <Description>Power setting</Description>
                        <RequiresUserInput>false</RequiresUserInput>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>55</Order>
                        <CommandLine>%windir%\powercfg.exe -change -standby-timeout-ac 0</CommandLine>
                        <Description>Power setting</Description>
                        <RequiresUserInput>false</RequiresUserInput>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>57</Order>
                        <CommandLine>%windir%\powercfg.exe -change -hibernate-timeout-ac 0</CommandLine>
                        <Description>Power setting</Description>
                        <RequiresUserInput>false</RequiresUserInput>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>59</Order>
                        <CommandLine>powercfg.exe -SETACVALUEINDEX 381b4222-f694-41f0-9685-ff5bb260df2e 7516b95f-f776-4464-8c53-06167f40cc99 17aaa29b-8b43-4b94-aafe-35f64daaf1ee 1</CommandLine>
                        <Description>Power setting</Description>
                        <RequiresUserInput>false</RequiresUserInput>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>2</Order>
                        <CommandLine>&quot;%configsetroot%\$oem$\Packages\SQLExpress2012\SQLSUPPORT.MSI&quot; /passive /forcerestart</CommandLine>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>6</Order>
                        <Description>SQL Express 2012 Second pass to fix an install problem</Description>
                        <CommandLine>&quot;%configsetroot%\$oem$\Packages\SQLExpress2012\SQLEXPRADV_x64_ENU.exe&quot; /HIDECONSOLE /CONFIGURATIONFILE=&quot;%configsetroot%\$oem$\Packages\SQLExpress2012\ConfigurationFile.ini&quot;</CommandLine>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>DISM /online /Enable-Feature /FeatureName:Client-EmbeddedShellLauncher </CommandLine>
                        <Order>1</Order>
                    </SynchronousCommand>
                </FirstLogonCommands>
                <AutoLogon>
                    <Password>
                        <Value>PABMAHUAbQBpAG4AZQB4ADEAPgBQAGEAcwBzAHcAbwByAGQA</Value>
                        <PlainText>false</PlainText>
                    </Password>
                    <Username>User</Username>
                    <Enabled>true</Enabled>
                </AutoLogon>
                <DesktopOptimization>
                    <ShowWindowsStoreAppsOnTaskbar>false</ShowWindowsStoreAppsOnTaskbar>
                </DesktopOptimization>
                <Display>
                    <ColorDepth>32</ColorDepth>
                    <RefreshRate>60</RefreshRate>
                    <VerticalResolution>768</VerticalResolution>
                    <HorizontalResolution>1024</HorizontalResolution>
                </Display>
                <OEMInformation>
                    <Manufacturer>Corporation</Manufacturer>
                    <Model>ARIES</Model>
                    <SupportURL>www.xxxcorp.com/support</SupportURL>
                </OEMInformation>
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <HideLocalAccountScreen>true</HideLocalAccountScreen>
                    <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                    <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                    <ProtectYourPC>3</ProtectYourPC>
                    <SkipMachineOOBE>true</SkipMachineOOBE>
                </OOBE>
                <Themes>
                    <WindowColor>Slate</WindowColor>
                    <DesktopBackground>%WINDIR%\Background\backgroundDefault.jpg</DesktopBackground>
                </Themes>
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>PABMAHUAbQBpAG4AZQB4ADEAPgBBAGQAbQBpAG4AaQBzAHQAcgBhAHQAbwByAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                        <PlainText>false</PlainText>
                    </AdministratorPassword>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>PABMAHUAbQBpAG4AZQB4ADEAPgBQAGEAcwBzAHcAbwByAGQA</Value>
                                <PlainText>false</PlainText>
                            </Password>
                            <Name>User</Name>
                            <DisplayName>User</DisplayName>
                            <Description>User</Description>
                            <Group>Administrators</Group>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
                <RegisteredOrganization> Inc.</RegisteredOrganization>
                <RegisteredOwner> Inc.</RegisteredOwner>
                <TimeZone>Central Standard Time</TimeZone>
                <FolderLocations>
                    <ProfilesDirectory>d:\Users</ProfilesDirectory>
                    <ProgramData>d:\ProgramData</ProgramData>
                </FolderLocations>
            </component>
            <component name="Microsoft-Windows-Embedded-BootExp" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <HideBootLogo>1</HideBootLogo>
            </component>
            <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <InputLocale>en-US</InputLocale>
                <SystemLocale>en-US</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UILanguageFallback>en-US</UILanguageFallback>
                <UserLocale>en-US</UserLocale>
            </component>
            <component name="Microsoft-Windows-Embedded-ShellLauncher" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <Shell>%windir%\Shell\Shell.exe</Shell>
            </component>
        </settings>
        <settings pass="specialize">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <Display>
                    <ColorDepth>32</ColorDepth>
                    <RefreshRate>60</RefreshRate>
                    <HorizontalResolution>1024</HorizontalResolution>
                    <VerticalResolution>768</VerticalResolution>
                </Display>
                <ProductKey>XXXXXXXXXXXXXXXXXXXXXXXXX</ProductKey>
                <TimeZone>Central Standard Time</TimeZone>
                <ComputerName>ARIES13001301</ComputerName>
                <RegisteredOwner>Windows User</RegisteredOwner>
            </component>
            <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <InputLocale>en-US</InputLocale>
                <SystemLocale>en-US</SystemLocale>
                <UserLocale>en-US</UserLocale>
                <UILanguage>en-US</UILanguage>
                <UILanguageFallback>en-US</UILanguageFallback>
            </component>
            <component name="Microsoft-Windows-powercpl" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <PreferredPlan>8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c</PreferredPlan>
            </component>
            <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <Identification>
                    <JoinDomain>INSTRUMENT</JoinDomain>
                </Identification>
            </component>
            <component name="Microsoft-Windows-Embedded-UnifiedWriteFilter" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <ProtectedVolumeList>
                    <ProtectedVolumeEntry wcm:action="add">
                        <DriveLetter>C:</DriveLetter>
                    </ProtectedVolumeEntry>
                </ProtectedVolumeList>
            </component>
        </settings>
        <settings pass="windowsPE">
            <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" 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>
                <UserLocale>en-US</UserLocale>
                <UILanguageFallback>en-US</UILanguageFallback>
                <SystemLocale>en-US</SystemLocale>
                <InputLocale>en-US</InputLocale>
                <UILanguage>en-US</UILanguage>
            </component>
            <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DiskConfiguration>
                    <Disk wcm:action="add">
                        <CreatePartitions>
                            <CreatePartition wcm:action="add">
                                <Order>1</Order>
                                <Type>Primary</Type>
                                <Size>300</Size>
                            </CreatePartition>
                            <CreatePartition wcm:action="add">
                                <Order>2</Order>
                                <Type>EFI</Type>
                                <Size>100</Size>
                            </CreatePartition>
                            <CreatePartition wcm:action="add">
                                <Order>4</Order>
                                <Type>Primary</Type>
                                <Extend>true</Extend>
                            </CreatePartition>
                            <CreatePartition wcm:action="add">
                                <Order>3</Order>
                                <Size>128</Size>
                                <Type>MSR</Type>
                            </CreatePartition>
                        </CreatePartitions>
                        <DiskID>0</DiskID>
                        <WillWipeDisk>true</WillWipeDisk>
                        <ModifyPartitions>
                            <ModifyPartition wcm:action="add">
                                <Order>1</Order>
                                <Format>NTFS</Format>
                                <PartitionID>1</PartitionID>
                                <Label>WINRE</Label>
                                <TypeID>de94bba4-06d1-4d40-a16a-bfd50179d6ac</TypeID>
                            </ModifyPartition>
                            <ModifyPartition wcm:action="add">
                                <PartitionID>2</PartitionID>
                                <Order>2</Order>
                                <Label>System</Label>
                                <Format>FAT32</Format>
                            </ModifyPartition>
                            <ModifyPartition wcm:action="add">
                                <PartitionID>3</PartitionID>
                                <Order>3</Order>
                            </ModifyPartition>
                            <ModifyPartition wcm:action="add">
                                <PartitionID>4</PartitionID>
                                <Order>4</Order>
                                <Label>Windows</Label>
                                <Letter>C</Letter>
                                <Format>NTFS</Format>
                            </ModifyPartition>
                        </ModifyPartitions>
                    </Disk>
                    <WillShowUI>OnError</WillShowUI>
                    <Disk wcm:action="add">
                        <CreatePartitions>
                            <CreatePartition wcm:action="add">
                                <Extend>true</Extend>
                                <Order>1</Order>
                                <Type>Primary</Type>
                            </CreatePartition>
                        </CreatePartitions>
                        <ModifyPartitions>
                            <ModifyPartition wcm:action="add">
                                <PartitionID>1</PartitionID>
                                <Order>1</Order>
                                <Letter>D</Letter>
                                <Format>NTFS</Format>
                                <Label>DATA</Label>
                            </ModifyPartition>
                        </ModifyPartitions>
                        <DiskID>1</DiskID>
                        <WillWipeDisk>true</WillWipeDisk>
                    </Disk>
                </DiskConfiguration>
                <Display>
                    <HorizontalResolution>1024</HorizontalResolution>
                    <ColorDepth>32</ColorDepth>
                    <RefreshRate>60</RefreshRate>
                    <VerticalResolution>768</VerticalResolution>
                </Display>
                <ImageInstall>
                    <OSImage>
                        <InstallTo>
                            <PartitionID>4</PartitionID>
                            <DiskID>0</DiskID>
                        </InstallTo>
                        <WillShowUI>Never</WillShowUI>
                        <InstallToAvailablePartition>false</InstallToAvailablePartition>
                    </OSImage>
                </ImageInstall>
                <UserData>
                    <ProductKey>
                        <Key>XXXXXXXXXXXXXXXXXXXXXXXXX</Key>
                    </ProductKey>
                    <AcceptEula>true</AcceptEula>
                </UserData>
                <UseConfigurationSet>true</UseConfigurationSet>
            </component>
        </settings>
        <settings pass="offlineServicing">
            <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <EnableLUA>false</EnableLUA>
            </component>
            <component name="Microsoft-Windows-Embedded-KeyboardFilterService" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <AltF4>Blocked</AltF4>
                <AltTab>Blocked</AltTab>
                <AltSpace>Blocked</AltSpace>
                <ControlAltDelete>Blocked</ControlAltDelete>
                <WindowsL>Blocked</WindowsL>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="catalog:c:/users/admin/desktop/windows iot/ces_x64freo_en-us-dv5/sources/install_windows 10 enterprise ltsc 2019.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
    
    0 comments No comments