Password is expired after first reboot
we are using the SDA to automate the installation of Windows 10 (skripted installation). Everything is working fine without one little detail: After installing Windows after the reboot and the autologon we are asked to change the password of the admin user which has been created whilst the installation. After changing the password the installation continues. That's a bit annoying since we will distribute new notebooks for all of our users. So we'd like to have it fully automated.
What we have done so far:
- a new KBE has been set up
- the source media has been downloaded again from MS server
- the deployment has been created again from the scratch
- the user name and the password has been changed (passwords are complex)
Also we have added some code to the unattend.xml:
<CommandLine>cmd /C wmic useraccount where name="admin" set PasswordExpires="false"</CommandLine>
<Description>Password Never Expires</Description>
<CommandLine>cmd /C net user "admin" /logonpasswordchg:no</CommandLine>
Nothing worked. We are always asked to renew the password since it has been expired even though after the installation the password never expires flag is set.
Be the first to answer this question