cloudbase / windows-imaging-tools

Tools to automate the creation of a Windows image for OpenStack, supporting KVM, Hyper-V, ESXi and more.
Apache License 2.0
680 stars 227 forks source link

Windows 10 Image with Auto Logon #353

Closed spoer78 closed 1 year ago

spoer78 commented 3 years ago

Hi there,

we are using the imaging tools successfully for Window Server 2016, 2019 and Windows 10 Enterprise with password injection and retrieval via Horizon.

Now we want to introduce Leostream as VDI solution and we need to create Windows 10 Enterprise images with no password and auto-login at first boot. Then the Leostream agent takes over and does its thing.

But till now we weren't successful. The first time the image is booting in Openstack, you are required to login and change the password for the "Admin" user.

Is there a way to create an image that has autologin enabled?

bye SP

ader1990 commented 3 years ago

Hello,

You need to create your custom Unattend.xml which you have to use to sysprep the machine manually after installing Cloudbase-Init. That Unattend.xml needs to be created in order to set the auto logon. Also, you need to configure Cloudbase-Init not to execute the UserCreate and SetUserPassword plugins.

You can use the RunAfterCloudbaseInitInstall.ps1 hook to configure the Cloudbase-Init config file and the used Unattend.xml for sysprep.

Thank you, Adrian Vladu

ader1990 commented 1 year ago

Closing the issue, as there were no more replies from the issue creator.