|
|
#1 |
|
Junior Member
Join Date: Mar 2007
Posts: 12
|
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 |
|
|
|
|
|
#2 |
|
Senior Member
|
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 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|