您的位置:首页 > 运维架构 > Shell

Office 365 Powershell 连接命令

2017-04-08 21:31 351 查看
国内版
第一步:
Import-Module msonline
Connect-MsolService
输入用户名密码
第二步:
Get-MsolUser”
第三步:
Set-ExecutionPolicy unrestricted
$cred = Get-Credential
$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://partner.outlook.cn/PowerShell -Credential $cred -Authentication Basic -AllowRedirection
Import-PSSession $session
 
国际版
第一步:
Import-Module msonline
Connect-MsolService
输入用户名密码
第二步:
Get-MsolUser”
第三步:
Set-ExecutionPolicy unrestricted
$cred = Get-Credential
$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri “https://outlook.office365.com/powershell-liveid/" -Credential $cred -Authentication Basic -AllowRedirection
Import-PSSession $session
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐