0
Skype For Business 사용자 구성을 관리하는 응용 프로그램을 개발했습니다. 이 명령을 사용하여 I 스카이프 사용자의 등록 풀을 설정해야 실행하는 데 필요한 작업
하나 : 나는 명령 줄에서 명령을 실행할 때
Skype for Business 쉘 명령어 코드
Move-CsUser -Identity [UserName] -Target [RegistrarPool] -Confirm:$false
지금 - 그것은 잘 작동합니다.
그러나, 내 응용 프로그램에서 내가 사용하는 다른 스카이프 쉘 명령과는 달리, 내 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 작동합니다! 이유를 이해할 수 없다 ... 고마워! –