Windowsアップデート適用後、Initialize-CSSiteコマンドが失敗する


説明

最新のWindowsアップデートを適用した後、Sitecore Commerceのデプロイ中にInitialize-CSSite Powershellコマンドを実行すると、下記のエラー メッセージが表示される場合があります。

Granting the identity '.\CSFndRuntimeUser' access to the IIS WAMREG admin Service DCOM application...
System.Management.Automation.RuntimeException: The property 'Dacl' cannot be found on this object. Verify that the property exists and can be set.
   at CallSite.Target(Closure , CallSite , Object , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
   at System.Management.Automation.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Failed to grant the identity '.\CSFndRuntimeUser' access to the DCOM application 'IIS WAMREG admin Service' (ID = {61738644-F196-11D0-9953-00C04FD919C1}).
Granting the identity '.\CSFndRuntimeUser' access to the CSS Replication Server DCOM application...
System.Management.Automation.RuntimeException: The property 'Dacl' cannot be found on this object. Verify that the property exists and can be set.
   at CallSite.Target(Closure , CallSite , Object , Object )
   at System.Management.Automation.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Failed to grant the identity '.\CSFndRuntimeUser' access to the DCOM application 'CSS Replication Server' (ID = {7E95698D-CD3C-4C98-93C7-6510C31F7DDF}).

解決策

この問題を解決するには、Sitecoreのアプリケーション プールID用のCSSのレプリケーション サーバーの「起動」および「アクティブ化」の権限を手動で付与してください:

  1. コントロール パネルにて、システムとセキュリティをクリックし、次に管理ツールをクリックしコンポーネント サービス アプリケーションを起動します。
  2. /Component Services/Computers/My Computer/DCOM Configに移動します。
  3. CSSレプリケーション サーバーのエントリーを確認します。Windowsバージョンによっては、このエントリーは、{7E95698D-CD3C-4C98-93C7-6510C31F7DDF}で表示されることがあります。
  4. プロパティ」をクリックし、「セキュリティ」タブの「起動とアクティブ化のアクセス許可」セクションで「カスタマイズ」をクリックし、次に「編集」をクリックします。
  5. Sitecoreのアプリケーション プールのユーザーに下記の権限を付与します:
    • ローカルからの起動
    • ローカルからのアクティブ化
  6. OK」をクリックし、変更を保存します。

備考