question

DavidTorgerson-1011 avatar image
0 Votes"
DavidTorgerson-1011 asked ·

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

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
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Annabooks avatar image
1 Vote"
Annabooks answered ·

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


· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JennyFeng-8985 avatar image
0 Votes"
JennyFeng-8985 answered ·

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 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the help. I added the NetworkLocation, SkipMachineOOBE and SkipUserOOBE to my answer file and the problem disappeared. However the ADK flagged all three of these as deprecated in the image and the documentation warned against using them. So I assume I need to find another solution.

osd-issue-with-windows-10-1703.htm


0 Votes 0 · ·
Annabooks avatar image Annabooks DavidTorgerson-1011 ·

Even though these items are considered deprecated by the SIM tool, they are still valid. The are usefully in a sysprep unattended file so the minisetup doesn't ask for a user account when one or more already exists.

0 Votes 0 · ·
Annabooks avatar image
0 Votes"
Annabooks answered ·

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

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DavidTorgerson-1011 avatar image
0 Votes"
DavidTorgerson-1011 answered ·

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

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DavidTorgerson-1011 avatar image
0 Votes"
DavidTorgerson-1011 answered ·

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>

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Annabooks avatar image
0 Votes"
Annabooks answered ·

If you create the partitions manually during installation of the OS, does the error occur?

Are you using SIM to create the answer file? If so, why not add the Foundation package and enable Shell Launcher and UWF features from that package?

Also, the settings for Shell Launcher and UWF do not get applied to the image. This is a known issue.
Power settings can be setup using a power plan: https://annabooks.com/Articles/Articles_WE8S/WES-WEI-CustomPowerSettingsRev1.2.pdf


· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I haven't tried to create the partitions manually. Do you have a reference to an issue related to it?

I am using SIM to create the autounattend.xml file. I added the package as you suggested. Thanks for the hint. I assume I have to write my own scripts to enable the shell launcher and UWF. Do you have a reference to that issue?

I'll look at the power plan. BTW, I am upgrading our device from Windows 7 to 10 and am trying to keep the same or similar configuration. So many of the settings are taken from that answer file.

0 Votes 0 · ·