Setting the Administrator's Password to Never Expire

To perform this instruction, you must have a Windows client or server machine with Azure Active Directory PowerShell module Version 2 installed. You can use the same machine that you used in Preparing CSP Account Information.

Perform the following steps:

  1. Log on to the Windows machine as Administrator.
  2. Run Windows PowerShell.
  3. Run the following cmdlet to connect to the Azure Active Directory:

    Connect-AzureAD -AzureEnvironment "AzureGermanyCloud"

    Type your administrative credentials when prompted.

  4. Run the command:

    Get-AzureADUser -Filter "userPrincipalName eq 'oa_account@<partnersubdomain>.onmicrosoft.de'"

    Make sure that only one user is present in the list:

    ObjectId	DisplayName	UserPrincipalName				UserType
    --------- ------------ ------------------------------------------- ---------
    11111111 Demo Name Set oa_account@<partnersubdomain>.onmicrosoft.de Member

  5. Set the password to never expire:

    Get-AzureADUser -Filter "userPrincipalName eq 'oa_account@<partnersubdomain>.onmicrosoft.de'" | Set-AzureADUser -PasswordPolicies DisablePasswordExpiration

Important: If your security policies do not allow setting passwords to never expire, you must regularly set a new admin user password in the Microsoft cloud and the global settings of the application instance before the old admin user password expires.