Office365에 있는 Exchange Server, SharePoint를 로컬 컴퓨터에서 Powershell로 관리하기


다음과 같이 하면 로컬 컴퓨터에서 나의 Office365를 관리할 수 있다.
즉, PowerShell module을 다운로드하여 Exchagne, SharePoint를 PowerShell로 관리할 수 있다.
0) 관리자 권한으로 PowerShell console을 실행한다.
1) Office365 계정을 변수로 작성하기
$cred = Get-Credential
2) Office365로 Remote Session을 연결한다
$session = New-PSSession -ConfigurationName microsoft.exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $cred -Authentication basic -AllowRedirection
3) Module 다운로드하기
Import-PSSession $session
4) Mailbox 확인하기
Get-Mailbox
Get-Mailbox -Identity jesuswithme
Get-Mailbox -Identity jesuswithme | fl
 
Get-Mailbox -Identity jesuswithme | fl Alias, PrimarySmtpAddress, EmailAddresses, WindowsLiveID