Aaron Stebner's WebLog

Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio

How to update an XP Embedded user account to prevent the password from expiring

How to update an XP Embedded user account to prevent the password from expiring

  • Comments 4

Hey all, I have seen this question internally a few times - how can I configure a user account that I add to my XP Embedded image to have a non-expiring password?  This topic has been added to the XP Embedded SP2 documentation, but in the meantime I thought I would go ahead and post the information here for anyone who needs it in the meantime:

_____________________________________________________________________________________________________________________

By default, when you add user accounts to your image, the user is prompted to change the password 15 days before it will expire. In some types of deployments, it is not feasible or desirable for end-users to change passwords.  You can create a custom security template that turns off password expiration and add it to your image so that it runs during First Boot Agent.

Note   Weak passwords are a potential security vulnerability and can allow hackers access to your system. It is always advised to configure all user accounts with strong passwords.

To remove password expiration from User Accounts

  1. Create a custom security template. For more information, see Creating a Custom Security Template Using the MMC Snap-in.
  2. In the MMC main window, under the new security template node, expand the Account Policies node.
  3. Expand the Password Policy node.
  4. In the right pane, right-click Maximum Password Age Policy.
  5. Select the Define this policy setting in the template checkbox.
  6. Set Password will not expire to 0 days.
  7. Click OK and save the template.
  8. Create a component for this security template and add it to your image, by following the steps to Create a Component for a Custom Security Template and to Include a Custom Security Template in your Runtime Image

_____________________________________________________________________________________________________________________

  • I'm using following command for this (requires net.exe in image):

    net accounts /maxpwage:unlimited

  • The described method in "To remove password expiration from User Accounts" rerurn succes, but does nothing for me. In short it doesn't work, any suggestions?

    Thijs
  • Hi Thijs - You might want to also try the command line option described at http://blogs.msdn.com/astebner/archive/2004/09/10/228042.aspx and see if that helps here.
Page 1 of 1 (4 items)
Leave a Comment
  • Please add 5 and 2 and type the answer here:
  • Post