K2000 SI Set Local Account to Never Expire
Hello All,
I have a scripted install which uses a local admin account to login to the machine during the image process. However, I had to go back to a machine today that was imaged a long time ago and the password on the account created by the K2000 had expired. Is there a command that can be added to the setup configuration file of the SI to specify that the password on the account being created should never expire? I know that I could do this through a script on a postinstall task or the K1000 using "wmic useraccount where"name='Administrator'"setPasswordExpires=false", but it would be nice to keep it all within the SI.
Any advice would be appreciated!
Answers (1)
Why not just put the postinstall task on your SI?
Comments:
-
I can do it that way, but I thought it would be cleaner to use a command at the time of creation instead of having to run a batch file that calls wmic. - horstj 11 years ago
-
I believe that's the only way to do it, I use a batch file to accomplish this when I build my gold master. - nheyne 11 years ago