0
Skype For Businessユーザの設定を管理するアプリケーションを開発しました。私は実行する必要がある操作の
一つは、このコマンドを使用して、Skypeのユーザーのレジストラープールを設定する必要があります。
Skype for Businessシェルコマンドfrom code
Move-CsUser -Identity [UserName] -Target [RegistrarPool] -Confirm:$false
今、私はコマンドラインからコマンドを実行するとき - それは素晴らしい作品。
しかし、私は自分のアプリケーション内で使用する他のSkypeのシェルコマンドとは異なり、 私はC#のコードを使用して、そのコマンドを実行したときに、私はこの恐ろしいエラーが発生します。
Move-CsUser : Unable to cast COM object of type 'System.__ComObject' to interface type \r\n
'Microsoft.Rtc.Interop.User.ICsUserManagement'. This operation failed because the QueryInterface call on the COM \r\n
component for the interface with IID '{D5ADD966-BDC3-4A8F-BFE8-6A59A9F74CB2}' failed due to the following error: Class \r\n
not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).\r\nAt line:1 char:1\r\n+
Move-CsUser -Identity 'testuser' -Target 'XXX' -Confirm: ...\r\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\r\n +
CategoryInfo : InvalidOperation: (CN=Agent Develo...DC=il,DC=tleumi:OCSADUser) [Move-CsUser], InvalidCa \r\n stException\r\n
+ FullyQualifiedErrorId : MoveError,Microsoft.Rtc.Management.AD.Cmdlets.MoveOcsUserCmdlet\r\n \r\n"
私は、COMオブジェクトのエラーを克服することを明らかにひどいですよ、それを解決するための私の最高の試みにもかかわらず。
誰も私に手を差し伸べることはできますか?
どうすれば動作させることができますか?
OMG動作します!理由を理解できない... ありがとう! –