O365 passwords

Does antone know powershell command to set passwords to never expire for ALL users.
Office 365
Who is Participating?
SubsunConnect With a Mentor Commented:
Check this article..

For all users..
Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.