Tripredacus Posted September 12, 2011 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?
uid0 Posted September 13, 2011 Posted September 13, 2011 Could try calling wmic from <FirstLogonCommands> ?wmic path Win32_UserAccount where Name="tripredacus" set PasswordExpires=false
maxXPsoft Posted September 13, 2011 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>
JFX Posted September 13, 2011 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>
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now