rehbar Posted February 27, 2017 Share Posted February 27, 2017 any one know how to set user password to never expir in autounattand.xml. Link to comment Share on other sites More sharing options...
Tripredacus Posted February 27, 2017 Share Posted February 27, 2017 I don't think it can be done. I will use FirstLogonCommnands to run a .cmd, with this inside: wmic useraccount where "name='UserName'" set PasswordExpires=false Link to comment Share on other sites More sharing options...
rehbar Posted August 23, 2017 Author Share Posted August 23, 2017 On 28-02-2017 at 0:52 AM, Tripredacus said: I don't think it can be done. I will use FirstLogonCommnands to run a .cmd, with this inside: wmic useraccount where "name='UserName'" set PasswordExpires=false how can I add first login command in unattanded.xml & where I add batch script in it. Link to comment Share on other sites More sharing options...
Tripredacus Posted August 24, 2017 Share Posted August 24, 2017 I put the .cmd in the image, or deploy it after it but before the first reboot, then just put the path to the .cmd in the XML. 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