Since Events2HVAC will be using a continuous connection to Exchange Web Services, it is important that the login account that you use is configured as a service account so that the password will never expire. If you don't do this, you get errors when Events2HVAC tries to update the schedules from Office365 until that account password is changed.
Set a password to never expire
The Use Windows PowerShell cmdlets to manage your Windows Azure AD tenant topic tells you how to install Windows Powershell and gives you more information about Windows Powershell and cmdlets.
-
Connect to Windows PowerShell by using your company admin credentials. Run the following cmdlet:
Connect-MsolService
-
Do one of the following:
-
To set the password of one user to never expire, run the following cmdlet by using the UPN or the user ID of the user:
Set-MsolUser -UserPrincipalName <user ID> -PasswordNeverExpires $true
-
To set the passwords to never expire for all the users in an organization, run the following cmdlet:
Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true
-
Check out Set a user's password expiration policy to set user passwords to expire after a specified amount of time.
Find out whether a password is set to never expire
-
Connect to Windows PowerShell by using your company admin credentials. Run the following cmdlet:
Connect-MsolService
-
Do one of the following:
-
To see whether a single user’s password is set to never expire, run the following cmdlet by using the user principal name (UPN) (for example, april@contoso.onmicrosoft.com) or the user ID of the user you want to check:
Get-MSOLUser -UserPrincipalName <user ID> | Select PasswordNeverExpires
-
To see the "Password never expires" setting for all users, run the following cmdlet:
Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires
-
What else to I need to know?
If you’re an admin of an Office 365 Small Business organization, you can't configure your user's passwords to never expire. However you can specify the number of days before your user's passwords expire. Check out Change how often passwords expire for details on how to do it.
Related:
0 Comments