国内版

第一步:

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

相关文章:

  • 2022-12-23
  • 2022-02-10
  • 2021-07-30
  • 2021-09-23
  • 2021-11-01
  • 2022-03-03
  • 2021-12-18
  • 2021-12-14
猜你喜欢
  • 2022-12-23
  • 2021-07-28
  • 2022-12-23
  • 2021-10-23
  • 2022-01-05
  • 2021-09-09
  • 2021-09-02
相关资源
相似解决方案