Exchange Online PowerShell への接続

Exchange Online PowerShell 接続

docs.microsoft.com

 

パワーシェル を 管理者権限実行して、以下を張り付けて実施します。

Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session