5단계: Lync Online에 연결

 

마지막으로 수정된 항목: 2013-12-13

Lync Online 및 Exchange Online에 연결하는 것은 어렵지 않지만 Office 365 또는 SharePoint Online에 연결하는 것보다는 약간 까다롭습니다. Lync 및 Exchange cmdlet은 Office 365 및 SharePoint cmdlet처럼 컴퓨터에 설치되지 않으며 로그온할 때마다 해당 cmdlet이 컴퓨터에 임시로 복사되기 때문입니다. 로그오프하면 이러한 cmdlet은 컴퓨터에서 제거됩니다.

Lync Online에 연결하려면 Lync 모듈을 가져와야 합니다. 이렇게 하려면 다음 명령을 실행합니다.

Import-Module LyncOnlineConnector

모듈을 가져온 후에는 다음 명령을 실행합니다.

$lyncSession = New-CsOnlineSession -Credential $credential

명령이 완료되면 다음과 비슷한 결과가 화면에 표시됩니다.

Id Name       ComputerName    State  ConfigurationName    Availability
-- ----       ------------    -----  -----------------    ------------
1  Session1   webdir0a.onl... Opened Microsoft.PowerShell Available

이 결과는 원격 PowerShell 세션이 작성되었음을 의미합니다. 여기서는 Office 365 서버 중 하나에서 실행 중인 Windows PowerShell 인스턴스에 연결된 것입니다. 그러나 해당 세션을 만드는 것만으로는 별다른 의미가 없습니다. 예를 들어 다음 Lync Online 명령을 실행하면

Get-CsMeetingConfiguration

명령이 실패하고 다음 오류 메시지가 표시됩니다.

Get-CsMeetingConfiguration : The term 'Get-CsMeetingConfiguration' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Get-CsMeetingConfiguration 호출이 실패한 이유는 컴퓨터에 Get-CsMeetingConfiguration cmdlet이 없기 때문입니다. Office 365에 연결하기는 했지만 Lync Online을 관리하는 데 필요한 스크립트, cmdlet 및 기타 항목을 다운로드하지는 않았습니다. 이러한 항목을 다운로드하려면 다음 명령을 실행해야 합니다.

Import-PSSession $lyncSession

Windows PowerShell 세션을 가져올 때는 다음과 같은 진행률 표시줄이 표시되어야 합니다. 이 진행률 표시줄은 컴퓨터로 가져오고 있는 모든 Lync Online 관리 항목을 보고합니다.

Lync Online 진행률 표시줄

진행률 표시줄이 사라지면 다음과 비슷한 출력이 표시됩니다.

ModuleType Version    Name               ExportedCommands
---------- -------    ----               ----------------
Script     1.0        tmp_swc5mp4v.1ck  {Copy-CsVoicePolicy, Disabl...

이제 Get-CsMeetingConfiguration을 실행하고 결과를 확인합니다. 다음과 비슷한 결과가 반환됩니다.

Identity                        : Global
PstnCallersBypassLobby          : True
EnableAssignedConferenceType    : False
DesignateAsPresenter            : Company
AssignedConferenceTypeByDefault : True
AdmitAnonymousUsersByDefault    : True
RequireRoomSystemsAuthorization : False
LogoURL                         :
LegalURL                        :
HelpURL                         :
CustomFooterText                :
AllowConferenceRecording        : True

이제는 Exchange를 Windows PowerShell 세션에 추가하기만 하면 됩니다.

6단계: Exchange Online에 연결

참고 항목

개념

단일 Windows PowerShell 창을 사용하여 Office 365에 연결