c# - Interactive logon: Prompt user to change password before expiration -


how can "interactive logon: prompt user change password before expiration" days c# active directory properties?

refer screenshot http://i.stack.imgur.com/96ugm.png

group policy applies registry settings computer or user. in case:

passwordexpirywarning in hklm\software\microsoft\windows nt\currentversion\winlogon

https://technet.microsoft.com/en-us/library/cc957396.aspx

you can read using:

int expiry = (int)microsoft.win32.registry.localmachine              .opensubkey(@"software\microsoft\windows nt\currentversion\winlogon")              .getvalue("passwordexpirywarning"); 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -