Solved

Which UserPrincipal property to set after enabling an AD user account so that user have to change the log in password?

Posted on 2014-12-22
3
161 Views
Last Modified: 2014-12-23
Hi, I'm using VS2012.

In my code, after enabling a disabled user account, I also set the password to a default password.  Which attribute and how to set it so that user would need to change their password after they log in?

Thank you.
0
Comment
Question by:lapucca
3 Comments
 
LVL 12

Accepted Solution

by:
SreRaj earned 500 total points
ID: 40514426
Hi,

You should be setting pwdLastSet to 0. Please refer following article for more information.

http://technet.microsoft.com/en-us/library/ee198797.aspx
0
 
LVL 7

Expert Comment

by:Deadman
ID: 40514427
Check User must change password at next logon

ad.JPG
0
 

Author Closing Comment

by:lapucca
ID: 40515362
Performing this by code.
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question