Question
How to Download and install Microsoft Azure Active Directory Module for Windows PowerShell?
Answer
Before you can run the cmdlet to set the password to never expire, you must download and install a module that will let you talk to your Office 365 organization.
- Download and install the Microsoft Online Services Sign-In Assistant for IT Professionals RTW from the Microsoft Download Centre. Download the 64bit version.
- Download and install the Azure Active Directory Module for Windows PowerShell (64-bit version). Click Run download and install.
Set a user's password to never expire
Run the following cmdlet to set the user password to never expire
- Connect to Windows PowerShell by using your company admin credentials. Run the following cmdlet:
Connect-MsolService
- In the Enter Credentials page, enter your Office 365 global admin credentials. See Assigning admin roles for more info on roles in Office 365.
- After you enter your Office 365 credentials, do the following:
- To set the password of one user to never expire, run the following cmdlet:
Set-MsolUser -UserPrincipalName <username@domain.local> -PasswordNeverExpires $true
Comments
0 comments
Please sign in to leave a comment.