用PowerShell管理Office 365

1.安装Office 365相关的PowerShell模块:

PS> Install-Module MsOnline

PS> Install-Module MicrosoftTeams

下载SharePoint Online Management Shell 并安装:

https://www.microsoft.com/zh-CN/download/details.aspx?id=35588

 

Import-Module MsOnline

$credential = Get-Credential

Connect-MsolService -Credential $credential -AzureEnvironment AzureChinaCloud

上一篇:记一次QP渗透测试实战


下一篇:解决Win10 PowerShell无法激活Anaconda虚拟环境的问题