1. 以滑鼠右鍵點選「Windows PowerShell」。
2. 輸入「Set-ExecutionPolicy RemoteSigned」,執行原則變更輸入「A」。
3. 輸入「$UserCredential = Get-Credential」,接著輸入 Exchange Online 管理員帳號密碼,最後點選「確定」。
4. 輸入「$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection」。
5. 輸入「Import-PSSession $Session -DisableNameChecking」,正在建立模組。
6. 建立完成,即可依照需求使用管理指令。