question

abdessattarhayouni-9674 avatar image
0 Votes"
abdessattarhayouni-9674 asked JennyFeng-MSFT commented

ICD.exe : ERROR: Unexpected error occurred. Failed to load setting store

I am trying to use the ICD tool to build a W10 1607 image , but I am stumbling into this error, Failed to load setting store: here is the detailed Log report:

5/21/2021 7:44:07 AM Info ICD Started
5/21/2021 7:44:07 AM Info Command line input: "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Imaging and Configuration Designer\x86\icd.exe" /Build-ImageFromWIM /MediaPath:"C:\Jenkins\workspace\gerrit\bc\prod\EnGo_Output\Win10IoT" /SourceImage:"\\dejero-files\IMAGES\Windows10Base\X21_05293_SW_Win10_IoT_Enterprise_LTSB_1607\sources\install.wim" /ImageIndex:1 /DeploymentConfigXml:"C:\Jenkins\workspace\gerrit\bc\prod\EnGo_Output\DeploymentConfig.xml" /CustomizationXML:"C:\Jenkins\workspace\gerrit\bc\prod\EnGo_Output\customizations.xml"
5/21/2021 7:44:07 AM Info Current directory: C:\
5/21/2021 7:44:07 AM Info Attempting to DPAPI decrypt customization XML C:\Jenkins\workspace\gerrit\bc\prod\EnGo_Output\customizations.xml.
5/21/2021 7:44:07 AM Info Customization XML could not be decrypted as it's most likely not encrypted. The data is invalid.

5/21/2021 7:44:08 AM Info InitializeDism: Dism session initialized.
5/21/2021 7:44:08 AM Info CloseDismSession: Dism session closed.
5/21/2021 7:44:08 AM Info Loaded WIM file \\dejero-files\IMAGES\Windows10Base\X21_05293_SW_Win10_IoT_Enterprise_LTSB_1607\sources\install.wim
5/21/2021 7:44:08 AM Info Loaded image 1 from WIM file \\dejero-files\IMAGES\Windows10Base\X21_05293_SW_Win10_IoT_Enterprise_LTSB_1607\sources\install.wim
5/21/2021 7:44:08 AM Error WpxSmiOpenWimStore (onecore\base\ntsetup\wpx\smi\smistore.cpp:1718) - 0x80070522:
5/21/2021 7:44:08 AM Error Couldn't extract SMI hive \Windows\System32\SMI\Store\Machine\SCHEMA.DAT from WIM image to C:\Users\JENKIN~1\AppData\Local\Temp\WPX70BD.tmp
5/21/2021 7:44:08 AM Error WpxOpenWimStore (onecore\base\ntsetup\wpx\core\store.cpp:391) - 0x80070522:
5/21/2021 7:44:08 AM Error Unable to load SMI schema hive
5/21/2021 7:44:08 AM Error WpxConfig::LoadWimStore (onecore\base\ntsetup\wpx\core\store.cpp:996) - 0x80070522:
5/21/2021 7:44:08 AM Error Couldn't open schema store from \\dejero-files\IMAGES\Windows10Base\X21_05293_SW_Win10_IoT_Enterprise_LTSB_1607\sources\install.wim image 1
5/21/2021 7:44:08 AM Error Microsoft::Windows::ProvisioningXml::Config::LoadWimStore (onecore\base\ntsetup\wpx\managed\config.cpp:228) - 0x80070522:
5/21/2021 7:44:08 AM Error Failed to load store from image 1 in \\dejero-files\IMAGES\Windows10Base\X21_05293_SW_Win10_IoT_Enterprise_LTSB_1607\sources\install.wim
5/21/2021 7:44:08 AM Error Failed to load setting store
5/21/2021 7:44:08 AM Error Microsoft.Windows.ICD.Common.Exceptions.StoreConfigException: Failed to load setting store ---> System.ComponentModel.Win32Exception: Failed to load store from image 1 in \\dejero-files\IMAGES\Windows10Base\X21_05293_SW_Win10_IoT_Enterprise_LTSB_1607\sources\install.wim
at Microsoft.Windows.ProvisioningXml.Config.LoadWimStore(String wimFilePath, Int32 wimImageIndex)
at Microsoft.Windows.ICD.Provisioning.ImageCustomization.StoreConfig.Load(ITargetSku targetSku)
--- End of inner exception stack trace ---
at Microsoft.Windows.ICD.Provisioning.ImageCustomization.StoreConfig.Load(ITargetSku targetSku)
at Microsoft.Windows.ICD.Provisioning.ImageCustomization.StoreConfig.LoadStores()
at Microsoft.Windows.ICD.Provisioning.ImageCustomization.ImageCustomizations.Create(StoreConfig storeConfig, IPackageConfig packageConfig, Boolean isMobile)
at Microsoft.Windows.ICD.Provisioning.ImageCustomization.ImageCustomizations.CreateImageCustomizations(StoreConfig storeConfig, IPackageConfig packageConfig, Boolean isMobile)
at Microsoft.Windows.ICD.Provisioning.ImageCustomization.ImageCustomizations.CreateAndLoadAnswers(XDocument customizationsXDoc, IStoreConfig storeConfig, Boolean ignoreWpxParseErrors, Boolean isMobile)
at Microsoft.Windows.ICD.Core.Common.Project.LoadCustomizations(XDocument customizationsXDoc)
at Microsoft.Windows.ICD.Core.Common.Project.Create(String location, String pathToWim, Int32 wimImageIndex, XDocument customizationsXDoc)
at Microsoft.Windows.ICD.Core.CLI.BuildWimImageCmdHandler.Execute()
at Microsoft.Windows.ICD.Core.CLI.BuildCmdHandlerBase.DoExecution()
at Microsoft.Windows.ICD.Core.CLI.CmdHandler.Execute(String cmdParams, String applicationName)
at Microsoft.Windows.ICD.Core.CLI.MultiCmdHandler.Run(String[] args)
at Microsoft.Windows.ICD.Core.CLI.MultiCmdHandler.Run()
at Microsoft.Windows.ICD.Core.CLI.ICDConsoleCommands.Run()
System.ComponentModel.Win32Exception (0x80004005): Failed to load store from image 1 in \\dejero-files\IMAGES\Windows10Base\X21_05293_SW_Win10_IoT_Enterprise_LTSB_1607\sources\install.wim
at Microsoft.Windows.ProvisioningXml.Config.LoadWimStore(String wimFilePath, Int32 wimImageIndex)
at Microsoft.Windows.ICD.Provisioning.ImageCustomization.StoreConfig.Load(ITargetSku targetSku)



Here is the command I used, which I have been using before, but I had to reimage my unit and then I started to have this issue ( which means there are no issues with customization.xml):
"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Imaging and Configuration Designer\x86\icd.exe" /Build-ImageFromWIM /MediaPath:"C:\Jenkins\workspace\gerrit\bc\prod\EnGo_Output\Win10IoT" /SourceImage:"C:\Jenkins\install.wim" /ImageIndex:1 /DeploymentConfigXml:"C:\Jenkins\workspace\gerrit\bc\prod\EnGo_Output\DeploymentConfig.xml" /CustomizationXML:"C:\Jenkins\workspace\gerrit\bc\prod\EnGo_Output\customizations.xml"

windows-10-setup
· 1
5 |1600 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.

@abdessattarhayouni-9674
Hi,

Just checking in to see if the information provided was helpful.

If the reply helped you, please remember to accept as answer.
If no, please reply and tell us the current situation in order to provide further help.

0 Votes 0 ·

1 Answer

JennyFeng-MSFT avatar image
0 Votes"
JennyFeng-MSFT answered

@abdessattarhayouni-9674
Hi,
Did you use or try VL media?
You will need VL for imaging rights, this is a necessity to Windows ICD.
The device must be licensed for that same version of Windows you’re installing using your VL media/key. Volume licensing media may only be used to reimage if the device is licensed for the same product version, same components and same language.
Hope above information can help you.
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 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.