Error message when you run the Set-MsolPasswordPolicy cmdlet in Office 365: "Unable to complete this action"

PROBLEM

When you run the Set-MsolPasswordPolicy Windows PowerShell cmdlet in Microsoft Office 365 to set the password policy, you receive the following error message:
Set-MsolPasswordPolicy : Unable to complete this action. Try again later.
At line:1 char:23
+ Set-MsolPasswordPolicy <<<< -NotificationDays 30
+ CategoryInfo : OperationStopped: (:) [Set-MsolPasswordPolicy],
MicrosoftOnlineException
+ FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.Inter
nalServiceException,Microsoft.Online.Administration.Automation.SetPassword Policy

CAUSE

This issue occurs if the one or more of following required parameters are missing when you run the cmdlet:
  • DomainName
  • NotificationDays
  • ValidityPeriod

SOLUTION

To resolve this issue, run the Set-MsolPasswordPolicy cmdlet together with the required parameters. For example:
Set-MsolPasswordPolicy -DomainName contoso.com -NotificationDays 15 -ValidityPeriod 180 

MORE INFORMATION

The Windows PowerShell commands in this article require the Microsoft Azure Active Directory Module for Windows PowerShell. For more information about Azure Active Directory Module for Windows PowerShell, go to the following Microsoft website:
Still need help? Go to Microsoft Community.
Свойства

Номер статьи: 2723716 — последний просмотр: 16 дек. 2016 г. — редакция: 1

Отзывы и предложения