Password is expired after first reboot
Hi,
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:
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd /C wmic useraccount where name="admin" set PasswordExpires="false"</CommandLine>
<Description>Password Never Expires</Description>
<Order>1</Order>
<RequiresUserInput>false</RequiresUserInput>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd /C net user "admin" /logonpasswordchg:no</CommandLine>
<Order>2</Order>
<RequiresUserInput>false</RequiresUserInput>
</SynchronousCommand>
</FirstLogonCommands>
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.
Any ideas?
Sincerly
Erik
Answers (0)
Be the first to answer this question