none
Windows ADK for Windows 10 Version 1703のWindows構成デザイナーのCLIビルド時のエラー RRS feed

  • 質問

  • はじめまして。
    Windows構成デザイナーを使用して作成したcustomizations.xmlをCLIでビルドしようとするとエラーが出るのですが、何か対処法はありますか?
    具体的には

    1. Windows 10 Version 1703上にWindows ADK for Windows 10 Version 1703をインストールする
    2. Windows構成デザイナーでデスクトップデバイスのプロビジョニングプロファイルを作成する
    3. 展開及びイメージングツール環境(コマンドプロンプト)を開き下記のようにプロファイルをビルドする

    C:\Users\user1\Documents\Windows Imaging and Configuration Designer (WICD)\Project_2>icd.exe /Build-ProvisioningPackage /CustomizationXML:customizations.xml /PackagePath:test.ppkg

    の手順で、下記の通りエラーが出てビルドができません。

    コマンドプロンプト

    ICD.exe : ERROR: The following errors were detected in customizations:
    ICD.exe : ERROR: Settings were not found in the store file.
    ICD.exe : ERROR: Parse error (0x80070490): 'ComputerAccount' is not a valid child node for /Accounts
    ICD.exe : ERROR: C:\Users\user1\Documents\Windows Imaging and Configuration Designer (WICD)\Common\ICDCommon_20171012-004900-775_3516.log
    

    エラーファイル

    10/12/2017 12:49:00 AM Info ICD Started
    10/12/2017 12:49:00 AM Info Command line input: icd.exe  /Build-ProvisioningPackage /CustomizationXML:customizations.xml /PackagePath:test.ppkg
    10/12/2017 12:49:00 AM Info Current directory: C:\Users\nayuta\Documents\Windows Imaging and Configuration Designer (WICD)\Project_2
    10/12/2017 12:49:01 AM Info Attempting to DPAPI decrypt customization XML C:\Users\nayuta\Documents\Windows Imaging and Configuration Designer (WICD)\Project_2\customizations.xml.
    10/12/2017 12:49:01 AM Info Customization XML could not be decrypted as it's most likely not encrypted. The data is invalid.
    10/12/2017 12:49:01 AM Info StoreFile path: C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Imaging and Configuration Designer\x86\Microsoft-Common-Provisioning.dat
    10/12/2017 12:49:01 AM Info Loaded Knobs schema hive at C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Imaging and Configuration Designer\x86\Microsoft-Common-Provisioning.dat
    10/12/2017 12:49:01 AM Error WpxGetFileEdition (onecore\base\ntsetup\wpx\core\store.cpp:103) - 0x80070002:
    10/12/2017 12:49:01 AM Error     No SKU information file C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Imaging and Configuration Designer\x86\Microsoft-Common-Provisioning.sku.xml available for store file C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Imaging and Configuration Designer\x86\Microsoft-Common-Provisioning.dat
    10/12/2017 12:49:01 AM Info Loaded settings from Windows Unknown Unknown
    10/12/2017 12:49:01 AM Error WpxConfig::FindSchema (onecore\base\ntsetup\wpx\core\config.cpp:162) - 0x80070490:
    10/12/2017 12:49:01 AM Error     Couldn't find schema path for ComputerAccount under /Accounts
    10/12/2017 12:49:01 AM Error WpxSetting::GetChild (onecore\base\ntsetup\wpx\core\setting.cpp:249) - 0x80070490:
    10/12/2017 12:49:01 AM Error     Couldn't find schema for answer path /Accounts/ComputerAccount
    10/12/2017 12:49:01 AM Error WpxWpafReader::ReadSettingsTree (onecore\base\ntsetup\wpx\file\wpafreader.cpp:628) - 0x8007000d:
    10/12/2017 12:49:01 AM Error     Unrecognized child ComputerAccount specified for tree setting /Accounts
    10/12/2017 12:49:01 AM Error WpxWpafReader::ReadSettingsTree (onecore\base\ntsetup\wpx\file\wpafreader.cpp:639) - 0x8007000d:
    10/12/2017 12:49:01 AM Error     Couldn't read answers under /Accounts
    10/12/2017 12:49:01 AM Error WpxWpafReader::ReadCommonSettings (onecore\base\ntsetup\wpx\file\wpafreader.cpp:197) - 0x8007000d:
    10/12/2017 12:49:01 AM Error     Couldn't read common settings
    10/12/2017 12:49:01 AM Error WpxWpafReader::Read (onecore\base\ntsetup\wpx\file\wpafreader.cpp:78) - 0x8007000d:
    10/12/2017 12:49:01 AM Error     Failed to read common settings node
    10/12/2017 12:49:01 AM Error WpxConfig::ReadAnswerFile (onecore\base\ntsetup\wpx\core\config.cpp:598) - 0x8007000d:
    10/12/2017 12:49:01 AM Error     Failed to load answer file
    10/12/2017 12:49:01 AM Error The following errors were detected in customizations:
    Settings were not found in the store file.
    Parse error (0x80070490): 'ComputerAccount' is not a valid child node for /Accounts
    10/12/2017 12:49:01 AM Error Microsoft.Windows.ICD.Common.Exceptions.CustomizationsException: The following errors were detected in customizations:
    Settings were not found in the store file.
    Parse error (0x80070490): 'ComputerAccount' is not a valid child node for /Accounts
       at Microsoft.Windows.ICD.Provisioning.ImageCustomization.ImageCustomizations.ReadAndValidateWPXAnswerFile(Config wpxConfig, XDocument wpxDocument, Boolean ignoreWpxParseErrors)
       at Microsoft.Windows.ICD.Provisioning.ImageCustomization.ImageCustomizations.Load(XDocument customizationsXDoc, Boolean onlySettings, Boolean ignoreWpxParseErrors)
       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.CreateFromStoreFile(IEnumerable`1 storeFilePaths, String location, XDocument customizationsXDoc, InvocationMode invocationMode)
       at Microsoft.Windows.ICD.Core.CLI.BuildPackageCmdHandler.Execute()

    よろしくお願いします。

    2017年10月13日 3:35

回答

  • Failed to Build Provisioning Package with Windows 10 ADK で問題が解決しました。

    もともと、デスクトップデバイスのプロビジョニングを前提としていたのですが、その場合はdatファイルを /StorePath オプションに設定しないといけないようです。

    dat ファイルは icd.exe と同じパス( C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Imaging and Configuration Designer\x86 )にあり、

    • Microsoft-Common-Provisioning.dat
    • Microsoft-Desktop-Provisioning.dat
    • Microsoft-HoloLends-Provisioning.dat
    • Microsoft-IoTAP-Provisioning.dat
    • Microsoft-Mobile-Provisioning.dat
    • Microsoft-Team-Provisioning.dat

    が存在します。

    デフォルトでは Common が使用されるため、デスクトップのデバイスをプロビジョニングするパッケージを作成するときは2番目の Microsoft-Desktop-Provisioning.dat を使用する必要があります。

    みなさまありがとうございました。

    • 回答としてマーク Nayuta Ishii 2017年11月20日 2:46
    2017年11月20日 2:46

すべての返信

  • エラー内容を見る限り、customizations.xml で設定されている /Accounts /Accounts/ComputerAccount  がスキーマとして正常に読み込めずにエラーが発生している様です。

    Windows構成デザイナーについてはあまり詳しくありませんが、ADK OS 展開関連のツールでこの様なエラーになるケースですと、コマンドプロンプト (今回で言えば ”展開及びイメージングツール環境”) を管理者権限に昇格せずに実行している為に、権限が不足していて読み込めない等が考えられます。

    試しに、”展開及びイメージングツール環境” を右クリックから管理者として実行で起動した上で、再度コマンドを実行してみて下さい。

    2017年10月13日 4:34
  • ご返信ありがとうございます。

    "展開及びイメージングツール環境"を管理者権限で起動してみましたが、やはり同じエラーとなりました。

    icd.exeのCLIがicd.exeのGUIで作ったプロファイルをビルドできない仕様という可能性はあるのでしょうか?


    2017年10月17日 4:25
  • 英語でTechnet Forumに相談したほうがいいなどあるのでしょうか?こちらについてもお伺いできると助かります。
    2017年10月17日 4:26
  • MSの技術情報を見る限りは、その様な仕様が有る様には見受けられません。

     

    英語のフォーラムについては、日本語のフォーラムよりアクティブなユーザーが多いので、英語で質問可能なら選択肢の1つとして有りでしょう。

     

    あと私に思いつく切り分けとしては、カスタムしていない XML を用いてビルドを実行してみる等でしょうか。( /Accounts のスキーマ読み込みに問題が有る様なので)

    2017年10月18日 1:00
  • ありがとうございます。

    Accounts 要素を削除しても、他の要素が同じようにエラーになり、ほぼ全ての要素を削除するとビルドが可能です。

    また、XMLファイル内を見ると Common 要素内に各カスタマイズ内容が入っているので、Commonタグを削除すればビルドは通るのですが、今度はプロビジョニング時にエラーが出てしまいます。

    また進展があればこちらに追記したいと思います!

    2017年10月19日 8:42
  • Failed to Build Provisioning Package with Windows 10 ADK で問題が解決しました。

    もともと、デスクトップデバイスのプロビジョニングを前提としていたのですが、その場合はdatファイルを /StorePath オプションに設定しないといけないようです。

    dat ファイルは icd.exe と同じパス( C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Imaging and Configuration Designer\x86 )にあり、

    • Microsoft-Common-Provisioning.dat
    • Microsoft-Desktop-Provisioning.dat
    • Microsoft-HoloLends-Provisioning.dat
    • Microsoft-IoTAP-Provisioning.dat
    • Microsoft-Mobile-Provisioning.dat
    • Microsoft-Team-Provisioning.dat

    が存在します。

    デフォルトでは Common が使用されるため、デスクトップのデバイスをプロビジョニングするパッケージを作成するときは2番目の Microsoft-Desktop-Provisioning.dat を使用する必要があります。

    みなさまありがとうございました。

    • 回答としてマーク Nayuta Ishii 2017年11月20日 2:46
    2017年11月20日 2:46