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
158 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
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 …

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now