hi guys, how to prompt users in outlook to change their password after specified date? is it possible in outlook or how to do it? thanks...

Dani AI

Generated

Outlook itself does not have a built-in feature to force or schedule an account password change. As hinted, the correct place to control password expiry is the authentication server. If your users are domain/Active Directory accounts (you said "connected directly from the domain" ), enforce expiry with domain account policies. If mail accounts are hosted by a third party or on a non-AD server, the mail server/provider must enforce password rules.

For Active Directory: set the domain password policy (Maximum password age) in the domain GPO (Group Policy Management Console -> edit the domain GPO) under Computer Configuration -> Policies -> Windows Settings -> Security Settings -> Account Policies -> Password Policy. Control how many days before expiry users are prompted with the policy "Interactive logon: Prompt user to change password before expiration" under Computer Configuration -> Policies -> Windows Settings -> Security Settings -> Local Policies -> Security Options. Account policies must be applied at the domain level (Default Domain Policy) to take effect. To show an advance warning at logon or on the desktop, deploy a logon script or scheduled task that checks expiry and displays a message.

A simple PowerShell approach (requires the ActiveDirectory module / permissions) to compute days left:

Import-Module ActiveDirectory
$user = Get-ADUser -Identity $env:USERNAME -Properties 'msDS-UserPasswordExpiryTimeComputed'
$expiry = [datetime]::FromFileTime($user.'msDS-UserPasswordExpiryTimeComputed')
Write-Output "Password expires in $((($expiry - (Get-Date)).Days)) days (on $expiry)"

Test changes carefully and remind users to update credentials on mobile devices and any cached Outlook profiles after a password change.

Recommended Answers

All 2 Replies

What server is outlook connecting to? Is the password change on a specific date or after a specific amount of time?

thanks airbourne, i think i can't do the task i want, because we're not using any exchange server..connected directly from the domain... or is there a way to do it even though don't have any exchange server? ;)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.