Microsoft small business knowledge base

Article ID: 2723716 - Last Review: July 9, 2014 - Revision: 12.0


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],
+ FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.Inter
nalServiceException,Microsoft.Online.Administration.Automation.SetPassword Policy


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


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


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 the Office 365 Community ( website.

Applies to
  • Office 365 User and Domain Management
  • Office 365 Identity Management
o365 o365a o365m o365e o365p o365022013 KB2723716
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support