小编shi*_*jai的帖子

不能将 UPN 凭据与 New-MoveRequest 一起使用?

我们采用的是混合设置(本地 Exchange 2013),并且 MRSproxy 已启用并正常工作。我们希望在用户离开公司时将其邮箱存档。因此,我们希望将这些邮箱从 O​​ffice 365 迁移回我们的内部部署服务器。我一直在尝试创建一个离开脚本,并且New-MoveRequestcmdlet 不断给出以下错误:

The Mailbox Replication Service was unable to connect to the remote server using the credentials provided. Please check the credentials and try again. The call to 'https://webmail.blah.com/EWS/mrsproxy.svc' failed.
Error details: The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate,NTLM'. --> The remote server returned an error:
(401) Unauthorized.. --> The HTTP request is unauthorized with client authentication scheme 'Negotiate'. …
Run Code Online (Sandbox Code Playgroud)

powershell microsoft-office-365 exchange-2013

6
推荐指数
1
解决办法
2752
查看次数

使用 PowerShell 修改 O365 服务计划

对于 Office 365 的推出,我们不想让所有用户都可以访问所有可用的应用程序/计划。所以我们只启用了 Exchange 和 Skype。

现在我们要启用 Yammer 和 Office Online,但我们遇到了问题。

$LicSKU = "<Hidden>:STANDARDPACK"
$ServicePlans = ((Get-MsolAccountSku | Where-Object {$_.AccountSkuId -eq $LicSKU}).ServiceStatus | Select-Object ServicePlan -ExpandProperty ServicePlan).ServiceName
$EnabledPlans = 'EXCHANGE_S_STANDARD','YAMMER_ENTERPRISE', 'SHAREPOINTWAC', 'MCOSTANDARD'
$DisabledPlans = @()
foreach($Plan in $ServicePlans) {
    if($EnabledPlans -notcontains $Plan) {
        $DisabledPlans += $Plan
    }
}
$LicOption = New-MsolLicenseOptions -AccountSkuId $LicSKU -DisabledPlans $DisabledPlans
try {
    $UserLicense = @{
        UserPrincipalName = $UserPrincipalName
        AddLicenses = $LicSKU
        LicenseOptions = $LicOption
    }
    Set-MsolUserLicense @UserLicense -ErrorAction Stop
}
catch [Microsoft.Online.Administration.Automation.MicrosoftOnlineException] {
    $UserLicense.Remove('AddLicenses') …
Run Code Online (Sandbox Code Playgroud)

powershell microsoft-office-365

4
推荐指数
1
解决办法
1340
查看次数