darora2
18th June 2007 19:58 UTC
Password Never Expires
While installing my application using NSIS installer, I am creating a local admin user for the application for whom I want to set the password to never expire.
Is there any API that I can use to set the 'Password Never Expires' option in NSIS.
Any help is greatly appreciated.
Thanks
darora2
CancerFace
18th June 2007 20:17 UTC
I translated a bunch of API calls to system plugin commands which can be found on the wiki.
If you have already created the user, you can call NetUserSetInfo from advapi32, using a USER_INFO_1008 structure which contains the UF_DONT_EXPIRE_PASSWD attribute.
Hope this helps
CF