Set Office 365 Passwords to Never Expire

Knowledge Base

Set Office 365 Passwords to Never Expire

in ,

Set Office 365 Passwords to Never Expire

Overview:

  • This procedure will describe how to install the Office 365 cmdlets and set user passwords to ever expire.

Install the Office 365 cmdlets

To begin using the Office 365 cmdlets, you first need to install them. The requirements for installing the Office 365 cmdlets are as follows:

  • You can install the cmdlets on a Windows 7 or Windows Server 2008 R2 computer.
  • You must have Windows PowerShell and the .NET Framework 3.5.1 enabled.
  • You must install the Microsoft Online Services Sign-in Assistant. Download and install one of the following from the Microsoft Download Center:
    • Microsoft Online Services Sign-In Assistant (IDCRL7) – 32 bit version
      Microsoft Online Services Sign-In Assistant (IDCRL7) – 64 bit version

To install the cmdlets, perform the following steps:

  1. Download one of the following from the Microsoft Download Center:
    • Microsoft Online Services Module for Windows PowerShell (32-bit version)
    • Microsoft Online Services Module for Windows PowerShell (64-bit version)
  2. To install the cmdlets, double-click the AdministrationConfig.msi file. The installer adds the program to your Start menu and a shortcut to your desktop.

Connect Windows PowerShell to the service

Click the Microsoft Online Services Module shortcut to open a Windows PowerShell workspace that has the cmdlets. Alternatively, you can load the Office 365 cmdlets manually by typing import-module MSOnline at the Windows PowerShell command prompt.

Set a password to never expire

  1. Open the Microsoft PowerShell window and type in Connect-MSOLService
  2. Connect to Windows PowerShell using your company administrator credentials.
  3. Do one of the following:
    • To set the password of one user to never expire, run the following cmdlet by using the user principal name (UPN) or the user ID of the user:
      Set-MsolUser -UserPrincipalName -PasswordNeverExpires $true
    • To set the passwords of all the users in an organization to never expire, run the following cmdlet:
      Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true
FacebookTwitterGoogle+LinkedInTumblrEmailShare

REQUEST A
FREE QUOTE

Contact Form