Tripredacus Posted September 12, 2011 Share Posted September 12, 2011 Here's a question I've been wondering about but haven't really cared about finding out the answer. So I'll throw it in here and see what you guys think.I have an answer file that creates 1 or 2 accounts during the oobe phase, it also sets a logon count for one of them. One complaint I hear about is that the Password will expire on any of the accounts after a certain amount of time. This can be fixed manually by checking the Password never expires box on the Account Properties, but how can this be done with the answer file? Link to comment Share on other sites More sharing options...
uid0 Posted September 13, 2011 Share Posted September 13, 2011 Could try calling wmic from <FirstLogonCommands> ?wmic path Win32_UserAccount where Name="tripredacus" set PasswordExpires=false Link to comment Share on other sites More sharing options...
maxXPsoft Posted September 13, 2011 Share Posted September 13, 2011 Firstlogon is where I do it also with this<CommandLine>cmd /C wmic useraccount where "name='MyName'" set PasswordExpires=FALSE</CommandLine> Link to comment Share on other sites More sharing options...
JFX Posted September 13, 2011 Share Posted September 13, 2011 Im using this in my unattend.xml files: <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <CommandLine>net accounts /maxpwage:unlimited</CommandLine> <Order>1</Order> </SynchronousCommand> </FirstLogonCommands> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now